ETH Price: $3,122.21 (-0.73%)
Gas: 9.73 Gwei

Dream Seeds NFT (DREAMSEED)
 

Overview

TokenID

349

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
DreamSeedsNFT

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 20 : DreamSeedsNFT.sol
// SPDX-License-Identifier: MIT
//                _                                  
//               (`  ).                   _           
//              (     ).              .:(`  )`.       
// )           _(       '`.          :(   .    )      
//         .=(`(      .   )     .--  `.  (    ) )      
//        ((    (..__.:'-'   .+(   )   ` _`  ) )                 
// `.     `(       ) )       (   .  )     (   )  ._   
//   )      ` __.:'   )     (   (   ))     `-'.-(`  ) 
// )  )  ( )       --'       `- __.'         :(      )) 
// .-'  (_.'          .')                    `(    )  ))
//                   (_  )  dream seeds        ` __.:'          
//                                         
// --..,___.--,--'`,---..-.--+--.,,-,,..._.--..-._.-a:f--.
//
// by @eddietree

pragma solidity ^0.8.0;

import "./ERC721TradableBurnable.sol";
import "./Base64.sol";

contract DreamSeedsNFT is ERC721TradableBurnable {

  uint256 public constant MAX_SUPPLY = 1300;
  uint256 public constant PRICE_PER_TOKEN = 0.04 ether;

  // reveal
  bool public isRevealed = false;
  uint256 public maxPublicMintPerTransaction = 4;
  string private _prerevealMetaURI = "https://gateway.pinata.cloud/ipfs/QmPJN5t944PSZK3vLeff8EP2za2bgHd7eafs5U6kbjCmCt";
  string private _revealedMetaURI = "https://gateway.pinata.cloud/ipfs/QmRA71NveXF5EFUSds873WqxkVuT8HvvATgz65ev3ea9d5/";
  
  // sale states
  bool public saleIsActive = false;
  bool public presaleIsActive = false;
  mapping(address => uint8) private _allowList; // for presale minting

  // burnable -- used when minting gardeners or landscapes
  mapping(address => bool) private _allowListBurn;
  bool public dreamSeedsBurnableThruAllowlist = true;

  constructor(address _proxyRegistryAddress) ERC721TradableBurnable("Dream Seeds NFT", "DREAMSEED", _proxyRegistryAddress) {  
  }

  function setSaleState(bool newState) external onlyOwner {
      saleIsActive = newState;
  }

  function setMaxPublicMintPerTransaction(uint256 newState) external onlyOwner {
      maxPublicMintPerTransaction = newState;
  }

  function setPresaleState(bool newState) external onlyOwner {
      presaleIsActive = newState;
  }

  function setAllowList(address[] calldata addresses, uint8 numAllowedToMint) external onlyOwner {
      for (uint256 i = 0; i < addresses.length; i++) {
          _allowList[addresses[i]] = numAllowedToMint;
      }
  }

  function setAllowListBurn(address[] calldata addresses, bool allowBurn) external onlyOwner {
      for (uint256 i = 0; i < addresses.length; i++) {
          _allowListBurn[addresses[i]] = allowBurn;
      }
  }

  function allowListNumAvailableToMint(address addr) external view returns (uint8) {
      return _allowList[addr];
  }

  function allowListBurn(address addr) external view returns (bool) {
      return _allowListBurn[addr];
  }

  function revealAll(bool state) external onlyOwner {
      isRevealed = state;
  }

  ///////////////////// URI
  function setPreRevealURI(string memory _value) external onlyOwner {
    _prerevealMetaURI = _value;
  }

  function setRevealedURI(string memory _value) external onlyOwner {
    _revealedMetaURI = _value;
  }

  function tokenURI(uint256 _tokenId) override public view returns (string memory) {
    require(_tokenId >= 1 && _tokenId <= MAX_SUPPLY, "Not valid token range");

    if (!isRevealed) { // prereveal
      string memory json = Base64.encode(
          bytes(string(
              abi.encodePacked(
                  '{"name": ', '"Dream Seed #',Strings.toString(_tokenId),'",',
                  '"description": "Inside the seed lingers a world of possibility, endless beating hearts of regenerative dreams...",',
                  '"attributes":[{"trait_type":"Status", "value":"Unrevealed"}],',
                  '"image": "', _prerevealMetaURI, '"}' 
              )
          ))
      );
      return string(abi.encodePacked('data:application/json;base64,', json));
    }  else { // revealed
      return string(abi.encodePacked(_revealedMetaURI, Strings.toString(_tokenId), ".json"));
    }
  }

  ///////////////  mint
  function reserveSeed(uint numberOfTokens) external onlyOwner {
    uint256 ts = totalSupply();
    require(ts + numberOfTokens <= MAX_SUPPLY, "Mint would exceed max tokens");

    for (uint256 i = 0; i < numberOfTokens; i++) {
      mintTo(msg.sender);
    }
  }

  function reserveSeedGift(uint numberOfTokens, address addr) external onlyOwner {
    uint256 ts = totalSupply();
    require(ts + numberOfTokens <= MAX_SUPPLY, "Mint would exceed max tokens");

    for (uint256 i = 0; i < numberOfTokens; i++) {
      mintTo(addr);
    }
  }

  function mintSeedAllowlist(uint8 numberOfTokens) external payable {
    uint256 ts = totalSupply();

    require(presaleIsActive, "Presale not active yet!");
    require(numberOfTokens > 0, "Need to mint at least 1 token");
    require(numberOfTokens <= _allowList[msg.sender], "Exceeded max available to purchase");
    require(ts + numberOfTokens <= MAX_SUPPLY, "Purchase would exceed max tokens");
    require(PRICE_PER_TOKEN * numberOfTokens <= msg.value, "Ether value sent is not correct");

    _allowList[msg.sender] -= numberOfTokens;

    for (uint256 i = 0; i < numberOfTokens; i++) {
        mintTo(msg.sender);
    }
  }

  function mintSeed(uint numberOfTokens) external payable {
    uint256 ts = totalSupply();

    require(saleIsActive, "Sale must be active to mint tokens");
    require(numberOfTokens <= maxPublicMintPerTransaction, "Exceeded max token purchase");
    require(ts + numberOfTokens <= MAX_SUPPLY, "Purchase would exceed max tokens");
    require(PRICE_PER_TOKEN * numberOfTokens <= msg.value, "Ether value sent is not correct");

    for (uint256 i = 0; i < numberOfTokens; i++) {
        mintTo(msg.sender);
    }
  }

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

  // used externally for phase 2 minting of characters + landscapes
  function burnDreamSeed(uint256 tokenId) external {
    require(dreamSeedsBurnableThruAllowlist == true, "unable to burn");
    require(tokenId >= 1 && tokenId <= MAX_SUPPLY, "Not valid token range");
    require(_allowListBurn[msg.sender], "ERC721Burnable: caller is not owner nor approved");

    _burn(tokenId);
  }

  // will disable burning mechanics once phase 2 is complete
  function permanentlyDisableAllowlistBurn() external onlyOwner {
      dreamSeedsBurnableThruAllowlist = false;
  }
}

File 2 of 20 : ERC721TradableBurnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";


import "./common/meta-transactions/ContentMixin.sol";
import "./common/meta-transactions/NativeMetaTransaction.sol";

contract OwnableDelegateProxy {}

/**
 * Used to delegate ownership of a contract to another address, to save on unneeded transactions to approve contract use for users
 */
contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

/**
 * @title ERC721TradableBurnable
 * ERC721TradableBurnable - ERC721 contract that whitelists a trading address, and has minting functionality.
 */
abstract contract ERC721TradableBurnable is ERC721, ContextMixin, ERC721Burnable, NativeMetaTransaction, Ownable {
    using SafeMath for uint256;
    using Counters for Counters.Counter;


    Counters.Counter private _nextTokenId;
    address proxyRegistryAddress;

    constructor(
        string memory _name,
        string memory _symbol,
        address _proxyRegistryAddress
    ) ERC721(_name, _symbol) {
        proxyRegistryAddress = _proxyRegistryAddress;
        // nextTokenId is initialized to 1, since starting at 0 leads to higher gas cost for the first minter
        _nextTokenId.increment();
        _initializeEIP712(_name);
    }

    /**
     * @dev Mints a token to an address with a tokenURI.
     * @param _to address of the future owner of the token
     */
    function mintTo(address _to) internal {
        uint256 currentTokenId = _nextTokenId.current();
        _nextTokenId.increment();
        _safeMint(_to, currentTokenId);
    }

    /**
        @dev Returns the total tokens minted so far.
        1 is always subtracted from the Counter since it tracks the next available tokenId.
     */
    function totalSupply() public view returns (uint256) {
        return _nextTokenId.current() - 1;
    }

    /**
     * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings.
     */
    function isApprovedForAll(address owner, address operator)
        override
        public
        view
        returns (bool)
    {
        // Whitelist OpenSea proxy contract for easy trading.
        ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress);
        if (address(proxyRegistry.proxies(owner)) == operator) {
            return true;
        }

        return super.isApprovedForAll(owner, operator);
    }

    /**
     * This is used instead of msg.sender as transactions won't be sent by the original token owner, but by OpenSea.
     */
    function _msgSender()
        internal
        override
        view
        returns (address sender)
    {
        return ContextMixin.msgSender();
    }
}

File 3 of 20 : Base64.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Provides a set of functions to operate with Base64 strings.
 */
library Base64 {
    /**
     * @dev Base64 Encoding/Decoding Table
     */
    string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /**
     * @dev Converts a `bytes` to its Bytes64 `string` representation.
     */
    function encode(bytes memory data) internal pure returns (string memory) {
        /**
         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
         */
        if (data.length == 0) return "";

        // Loads the table into memory
        string memory table = _TABLE;

        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
        // and split into 4 numbers of 6 bits.
        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
        // - `data.length + 2`  -> Round up
        // - `/ 3`              -> Number of 3-bytes chunks
        // - `4 *`              -> 4 characters for each chunk
        string memory result = new string(4 * ((data.length + 2) / 3));

        assembly {
            // Prepare the lookup table (skip the first "length" byte)
            let tablePtr := add(table, 1)

            // Prepare result pointer, jump over length
            let resultPtr := add(result, 32)

            // Run over the input, 3 bytes at a time
            for {
                let dataPtr := data
                let endPtr := add(data, mload(data))
            } lt(dataPtr, endPtr) {

            } {
                // Advance 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // To write each character, shift the 3 bytes (18 bits) chunk
                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
                // and apply logical AND with 0x3F which is the number of
                // the previous character in the ASCII table prior to the Base64 Table
                // The result is then added to the table to get the character to write,
                // and finally write it in the result pointer but with a left shift
                // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits

                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance
            }

            // When data `bytes` is not exactly 3 bytes long
            // it is padded with `=` characters at the end
            switch mod(mload(data), 3)
            case 1 {
                mstore8(sub(resultPtr, 1), 0x3d)
                mstore8(sub(resultPtr, 2), 0x3d)
            }
            case 2 {
                mstore8(sub(resultPtr, 1), 0x3d)
            }
        }

        return result;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 8 of 20 : 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 9 of 20 : ERC721Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Burnable.sol)

pragma solidity ^0.8.0;

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

/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        _burn(tokenId);
    }
}

File 10 of 20 : ContentMixin.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

abstract contract ContextMixin {
    function msgSender()
        internal
        view
        returns (address payable sender)
    {
        if (msg.sender == address(this)) {
            bytes memory array = msg.data;
            uint256 index = msg.data.length;
            assembly {
                // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those.
                sender := and(
                    mload(add(array, index)),
                    0xffffffffffffffffffffffffffffffffffffffff
                )
            }
        } else {
            sender = payable(msg.sender);
        }
        return sender;
    }
}

File 11 of 20 : NativeMetaTransaction.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import {SafeMath} from  "@openzeppelin/contracts/utils/math/SafeMath.sol";
import {EIP712Base} from "./EIP712Base.sol";

contract NativeMetaTransaction is EIP712Base {
    using SafeMath for uint256;
    bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256(
        bytes(
            "MetaTransaction(uint256 nonce,address from,bytes functionSignature)"
        )
    );
    event MetaTransactionExecuted(
        address userAddress,
        address payable relayerAddress,
        bytes functionSignature
    );
    mapping(address => uint256) nonces;

    /*
     * Meta transaction structure.
     * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas
     * He should call the desired function directly in that case.
     */
    struct MetaTransaction {
        uint256 nonce;
        address from;
        bytes functionSignature;
    }

    function executeMetaTransaction(
        address userAddress,
        bytes memory functionSignature,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) public payable returns (bytes memory) {
        MetaTransaction memory metaTx = MetaTransaction({
            nonce: nonces[userAddress],
            from: userAddress,
            functionSignature: functionSignature
        });

        require(
            verify(userAddress, metaTx, sigR, sigS, sigV),
            "Signer and signature do not match"
        );

        // increase nonce for user (to avoid re-use)
        nonces[userAddress] = nonces[userAddress].add(1);

        emit MetaTransactionExecuted(
            userAddress,
            payable(msg.sender),
            functionSignature
        );

        // Append userAddress and relayer address at the end to extract it from calling context
        (bool success, bytes memory returnData) = address(this).call(
            abi.encodePacked(functionSignature, userAddress)
        );
        require(success, "Function call not successful");

        return returnData;
    }

    function hashMetaTransaction(MetaTransaction memory metaTx)
        internal
        pure
        returns (bytes32)
    {
        return
            keccak256(
                abi.encode(
                    META_TRANSACTION_TYPEHASH,
                    metaTx.nonce,
                    metaTx.from,
                    keccak256(metaTx.functionSignature)
                )
            );
    }

    function getNonce(address user) public view returns (uint256 nonce) {
        nonce = nonces[user];
    }

    function verify(
        address signer,
        MetaTransaction memory metaTx,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) internal view returns (bool) {
        require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER");
        return
            signer ==
            ecrecover(
                toTypedMessageHash(hashMetaTransaction(metaTx)),
                sigV,
                sigR,
                sigS
            );
    }
}

File 12 of 20 : 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 13 of 20 : 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 14 of 20 : 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 15 of 20 : 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 16 of 20 : 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 17 of 20 : 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 18 of 20 : 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 19 of 20 : EIP712Base.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import {Initializable} from "./Initializable.sol";

contract EIP712Base is Initializable {
    struct EIP712Domain {
        string name;
        string version;
        address verifyingContract;
        bytes32 salt;
    }

    string constant public ERC712_VERSION = "1";

    bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256(
        bytes(
            "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)"
        )
    );
    bytes32 internal domainSeperator;

    // supposed to be called once while initializing.
    // one of the contracts that inherits this contract follows proxy pattern
    // so it is not possible to do this in a constructor
    function _initializeEIP712(
        string memory name
    )
        internal
        initializer
    {
        _setDomainSeperator(name);
    }

    function _setDomainSeperator(string memory name) internal {
        domainSeperator = keccak256(
            abi.encode(
                EIP712_DOMAIN_TYPEHASH,
                keccak256(bytes(name)),
                keccak256(bytes(ERC712_VERSION)),
                address(this),
                bytes32(getChainId())
            )
        );
    }

    function getDomainSeperator() public view returns (bytes32) {
        return domainSeperator;
    }

    function getChainId() public view returns (uint256) {
        uint256 id;
        assembly {
            id := chainid()
        }
        return id;
    }

    /**
     * Accept message hash and returns hash message in EIP712 compatible form
     * So that it can be used to recover signer from signature signed using EIP712 formatted data
     * https://eips.ethereum.org/EIPS/eip-712
     * "\\x19" makes the encoding deterministic
     * "\\x01" is the version byte to make it compatible to EIP-191
     */
    function toTypedMessageHash(bytes32 messageHash)
        internal
        view
        returns (bytes32)
    {
        return
            keccak256(
                abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash)
            );
    }
}

File 20 of 20 : Initializable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

contract Initializable {
    bool inited = false;

    modifier initializer() {
        require(!inited, "already inited");
        _;
        inited = true;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"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":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","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":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE_PER_TOKEN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"allowListBurn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"allowListNumAvailableToMint","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"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":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burnDreamSeed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dreamSeedsBurnableThruAllowlist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"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":[],"name":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPublicMintPerTransaction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintSeed","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint8","name":"numberOfTokens","type":"uint8"}],"name":"mintSeedAllowlist","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":"permanentlyDisableAllowlistBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"presaleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"reserveSeed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"address","name":"addr","type":"address"}],"name":"reserveSeedGift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"state","type":"bool"}],"name":"revealAll","outputs":[],"stateMutability":"nonpayable","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":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint8","name":"numAllowedToMint","type":"uint8"}],"name":"setAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"bool","name":"allowBurn","type":"bool"}],"name":"setAllowListBurn","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":"uint256","name":"newState","type":"uint256"}],"name":"setMaxPublicMintPerTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_value","type":"string"}],"name":"setPreRevealURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newState","type":"bool"}],"name":"setPresaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_value","type":"string"}],"name":"setRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newState","type":"bool"}],"name":"setSaleState","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":[],"name":"totalSupply","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"}]

6006805460ff19169055600b805460ff60a01b191690556004600c5561010060405260506080818152906200405760a03980516200004691600d9160209091019062000366565b50604051806080016040528060518152602001620040066051913980516200007791600e9160209091019062000366565b50600f805461ffff191690556012805460ff191660011790553480156200009d57600080fd5b50604051620040a7380380620040a7833981016040819052620000c0916200041f565b6040518060400160405280600f81526020016e111c99585b4814d959591cc8139195608a1b81525060405180604001604052806009815260200168111491505354d1515160ba1b81525082828281600090805190602001906200012592919062000366565b5080516200013b90600190602084019062000366565b5050506200015862000152620001a060201b60201c565b620001bd565b600b80546001600160a01b0319166001600160a01b0383161790556200018b600a6200020f602090811b620017b617901c565b620001968362000218565b5050505062000574565b6000620001b76200026260201b620017bf1760201c565b90505b90565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80546001019055565b60065460ff1615620002475760405162461bcd60e51b81526004016200023e90620004e6565b60405180910390fd5b6200025281620002c0565b506006805460ff19166001179055565b600033301415620002bb57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150620001ba9050565b503390565b6040518060800160405280604f815260200162003fb7604f913980516020918201208251838301206040805180820190915260018152603160f81b930192909252907fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6306200032e62000362565b6040516200034495949392919060200162000490565b60408051601f19818403018152919052805160209091012060075550565b4690565b828054620003749062000513565b90600052602060002090601f016020900481019282620003985760008555620003e3565b82601f10620003b357805160ff1916838001178555620003e3565b82800160010185558215620003e3579182015b82811115620003e3578251825591602001919060010190620003c6565b50620003f1929150620003f5565b5090565b5b80821115620003f15760008155600101620003f6565b805162000419816200055a565b92915050565b6000602082840312156200043257600080fd5b60006200044084846200040c565b949350505050565b620004538162000501565b82525050565b6200045381620001ba565b600062000473600e83620004f8565b6d185b1c9958591e481a5b9a5d195960921b815260200192915050565b60a08101620004a0828862000459565b620004af602083018762000459565b620004be604083018662000459565b620004cd606083018562000448565b620004dc608083018462000459565b9695505050505050565b60208082528101620004198162000464565b90815260200190565b60006001600160a01b03821662000419565b6002810460018216806200052857607f821691505b602082108114156200053e576200053e62000544565b50919050565b634e487b7160e01b600052602260045260246000fd5b620005658162000501565b81146200057157600080fd5b50565b613a3380620005846000396000f3fe6080604052600436106102885760003560e01c806342966c681161015a57806395d89b41116100c1578063c4e370951161007a578063c4e370951461072f578063c87b56dd1461074f578063e71741af1461076f578063e985e9c514610782578063eb8d2444146107a2578063f2fde38b146107b757610288565b806395d89b41146106875780639d19f0ac1461069c578063a22cb465146106af578063a914a626146106cf578063b88d4fde146106ef578063bce4d6ae1461070f57610288565b8063715018a611610113578063715018a6146105e8578063794d9d4e146105fd5780638059cbac1461061d5780638295784d1461063d578063833b94991461065d5780638da5cb5b1461067257610288565b806342966c681461054957806354214f69146105695780635ec593d41461057e5780636299b0bb146105935780636352211e146105a857806370a08231146105c857610288565b806323b872dd116101fe57806332cb6b0c116101b757806332cb6b0c146104aa5780633408e470146104bf57806338b3c0e2146104d45780633ccfd60b146104f45780633f3fc0da1461050957806342842e0e1461052957610288565b806323b872dd146103f557806327bd869c146104155780632a85db55146104355780632d0335ab1461045557806330f72cd414610475578063326d43881461048a57610288565b8063095ea7b311610250578063095ea7b3146103615780630c53c51c146103815780630f7e59701461039457806318160ddd146103a95780631c025064146103cb57806320379ee5146103e057610288565b806301ffc9a71461028d578063069443e6146102c357806306fdde03146102e557806307f3e9e514610307578063081812fc14610334575b600080fd5b34801561029957600080fd5b506102ad6102a83660046126e9565b6107d7565b6040516102ba919061342b565b60405180910390f35b3480156102cf57600080fd5b506102e36102de366004612778565b61081f565b005b3480156102f157600080fd5b506102fa6108c9565b6040516102ba91906134a4565b34801561031357600080fd5b5061032761032236600461242a565b61095c565b6040516102ba9190613685565b34801561034057600080fd5b5061035461034f366004612778565b61097a565b6040516102ba91906133ac565b34801561036d57600080fd5b506102e361037c366004612605565b6109bd565b6102fa61038f366004612578565b610a50565b3480156103a057600080fd5b506102fa610bd2565b3480156103b557600080fd5b506103be610bef565b6040516102ba9190613439565b3480156103d757600080fd5b506102e3610c0c565b3480156103ec57600080fd5b506103be610c57565b34801561040157600080fd5b506102e3610410366004612482565b610c5d565b34801561042157600080fd5b506102ad61043036600461242a565b610c95565b34801561044157600080fd5b506102e3610450366004612743565b610cb3565b34801561046157600080fd5b506103be61047036600461242a565b610d09565b34801561048157600080fd5b506102ad610d24565b34801561049657600080fd5b506102e36104a5366004612743565b610d32565b3480156104b657600080fd5b506103be610d84565b3480156104cb57600080fd5b506103be610d8a565b3480156104e057600080fd5b506102e36104ef3660046126cb565b610d8e565b34801561050057600080fd5b506102e3610deb565b34801561051557600080fd5b506102e3610524366004612635565b610e59565b34801561053557600080fd5b506102e3610544366004612482565b610f1d565b34801561055557600080fd5b506102e3610564366004612778565b610f38565b34801561057557600080fd5b506102ad610f6b565b34801561058a57600080fd5b506103be610f7b565b34801561059f57600080fd5b506102ad610f81565b3480156105b457600080fd5b506103546105c3366004612778565b610f8a565b3480156105d457600080fd5b506103be6105e336600461242a565b610fbf565b3480156105f457600080fd5b506102e3611003565b34801561060957600080fd5b506102e3610618366004612796565b61104e565b34801561062957600080fd5b506102e3610638366004612778565b6110ea565b34801561064957600080fd5b506102e3610658366004612680565b61112e565b34801561066957600080fd5b506103be6111ef565b34801561067e57600080fd5b506103546111fa565b34801561069357600080fd5b506102fa611209565b6102e36106aa3660046127b5565b611218565b3480156106bb57600080fd5b506102e36106ca366004612548565b611369565b3480156106db57600080fd5b506102e36106ea366004612778565b61137b565b3480156106fb57600080fd5b506102e361070a3660046124cf565b611400565b34801561071b57600080fd5b506102e361072a3660046126cb565b611439565b34801561073b57600080fd5b506102e361074a3660046126cb565b611492565b34801561075b57600080fd5b506102fa61076a366004612778565b6114e4565b6102e361077d366004612778565b6115b7565b34801561078e57600080fd5b506102ad61079d366004612448565b611689565b3480156107ae57600080fd5b506102ad61173f565b3480156107c357600080fd5b506102e36107d236600461242a565b611748565b60006001600160e01b031982166380ac58cd60e01b148061080857506001600160e01b03198216635b5e139f60e01b145b8061081757506108178261181b565b90505b919050565b610827611834565b6001600160a01b03166108386111fa565b6001600160a01b0316146108675760405162461bcd60e51b815260040161085e906135d5565b60405180910390fd5b6000610871610bef565b90506105146108808383613701565b111561089e5760405162461bcd60e51b815260040161085e90613505565b60005b828110156108c4576108b23361183e565b806108bc81613870565b9150506108a1565b505050565b6060600080546108d890613843565b80601f016020809104026020016040519081016040528092919081815260200182805461090490613843565b80156109515780601f1061092657610100808354040283529160200191610951565b820191906000526020600020905b81548152906001019060200180831161093457829003601f168201915b505050505090505b90565b6001600160a01b031660009081526010602052604090205460ff1690565b600061098582611860565b6109a15760405162461bcd60e51b815260040161085e906135c5565b506000908152600460205260409020546001600160a01b031690565b60006109c882610f8a565b9050806001600160a01b0316836001600160a01b031614156109fc5760405162461bcd60e51b815260040161085e90613615565b806001600160a01b0316610a0e611834565b6001600160a01b03161480610a2a5750610a2a8161079d611834565b610a465760405162461bcd60e51b815260040161085e90613585565b6108c4838361187d565b60408051606081810183526001600160a01b03881660008181526008602090815290859020548452830152918101869052610a8e87828787876118eb565b610aaa5760405162461bcd60e51b815260040161085e906135f5565b6001600160a01b038716600090815260086020526040902054610ace906001611991565b6001600160a01b0388166000908152600860205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610b1e90899033908a906133ba565b60405180910390a1600080306001600160a01b0316888a604051602001610b469291906132ba565b60408051601f1981840301815290829052610b60916132ae565b6000604051808303816000865af19150503d8060008114610b9d576040519150601f19603f3d011682016040523d82523d6000602084013e610ba2565b606091505b509150915081610bc45760405162461bcd60e51b815260040161085e906134e5565b925050505b95945050505050565b604051806040016040528060018152602001603160f81b81525081565b60006001610bfd600a6119a4565b610c07919061378e565b905090565b610c14611834565b6001600160a01b0316610c256111fa565b6001600160a01b031614610c4b5760405162461bcd60e51b815260040161085e906135d5565b6012805460ff19169055565b60075490565b610c6e610c68611834565b826119a8565b610c8a5760405162461bcd60e51b815260040161085e90613665565b6108c4838383611a25565b6001600160a01b031660009081526011602052604090205460ff1690565b610cbb611834565b6001600160a01b0316610ccc6111fa565b6001600160a01b031614610cf25760405162461bcd60e51b815260040161085e906135d5565b8051610d0590600d90602084019061229c565b5050565b6001600160a01b031660009081526008602052604090205490565b600f54610100900460ff1681565b610d3a611834565b6001600160a01b0316610d4b6111fa565b6001600160a01b031614610d715760405162461bcd60e51b815260040161085e906135d5565b8051610d0590600e90602084019061229c565b61051481565b4690565b610d96611834565b6001600160a01b0316610da76111fa565b6001600160a01b031614610dcd5760405162461bcd60e51b815260040161085e906135d5565b600b8054911515600160a01b0260ff60a01b19909216919091179055565b610df3611834565b6001600160a01b0316610e046111fa565b6001600160a01b031614610e2a5760405162461bcd60e51b815260040161085e906135d5565b6040514790339082156108fc029083906000818181858888f19350505050158015610d05573d6000803e3d6000fd5b610e61611834565b6001600160a01b0316610e726111fa565b6001600160a01b031614610e985760405162461bcd60e51b815260040161085e906135d5565b60005b82811015610f17578160116000868685818110610ec857634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610edd919061242a565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580610f0f81613870565b915050610e9b565b50505050565b6108c483838360405180602001604052806000815250611400565b610f43610c68611834565b610f5f5760405162461bcd60e51b815260040161085e90613675565b610f6881611b52565b50565b600b54600160a01b900460ff1681565b600c5481565b60125460ff1681565b6000818152600260205260408120546001600160a01b0316806108175760405162461bcd60e51b815260040161085e906135a5565b60006001600160a01b038216610fe75760405162461bcd60e51b815260040161085e90613595565b506001600160a01b031660009081526003602052604090205490565b61100b611834565b6001600160a01b031661101c6111fa565b6001600160a01b0316146110425760405162461bcd60e51b815260040161085e906135d5565b61104c6000611bf9565b565b611056611834565b6001600160a01b03166110676111fa565b6001600160a01b03161461108d5760405162461bcd60e51b815260040161085e906135d5565b6000611097610bef565b90506105146110a68483613701565b11156110c45760405162461bcd60e51b815260040161085e90613505565b60005b83811015610f17576110d88361183e565b806110e281613870565b9150506110c7565b6110f2611834565b6001600160a01b03166111036111fa565b6001600160a01b0316146111295760405162461bcd60e51b815260040161085e906135d5565b600c55565b611136611834565b6001600160a01b03166111476111fa565b6001600160a01b03161461116d5760405162461bcd60e51b815260040161085e906135d5565b60005b82811015610f1757816010600086868581811061119d57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906111b2919061242a565b6001600160a01b031681526020810191909152604001600020805460ff191660ff92909216919091179055806111e781613870565b915050611170565b668e1bc9bf04000081565b6009546001600160a01b031690565b6060600180546108d890613843565b6000611222610bef565b600f54909150610100900460ff1661124c5760405162461bcd60e51b815260040161085e906134b5565b60008260ff161161126f5760405162461bcd60e51b815260040161085e90613645565b3360009081526010602052604090205460ff90811690831611156112a55760405162461bcd60e51b815260040161085e90613635565b6105146112b560ff841683613701565b11156112d35760405162461bcd60e51b815260040161085e906134f5565b346112e860ff8416668e1bc9bf040000613759565b11156113065760405162461bcd60e51b815260040161085e90613555565b336000908152601060205260408120805484929061132890849060ff166137bb565b92506101000a81548160ff021916908360ff16021790555060005b8260ff168110156108c4576113573361183e565b8061136181613870565b915050611343565b610d05611374611834565b8383611c4b565b60125460ff1615156001146113a25760405162461bcd60e51b815260040161085e90613655565b600181101580156113b557506105148111155b6113d15760405162461bcd60e51b815260040161085e90613525565b3360009081526011602052604090205460ff16610f5f5760405162461bcd60e51b815260040161085e90613675565b61141161140b611834565b836119a8565b61142d5760405162461bcd60e51b815260040161085e90613665565b610f1784848484611cee565b611441611834565b6001600160a01b03166114526111fa565b6001600160a01b0316146114785760405162461bcd60e51b815260040161085e906135d5565b600f80549115156101000261ff0019909216919091179055565b61149a611834565b6001600160a01b03166114ab6111fa565b6001600160a01b0316146114d15760405162461bcd60e51b815260040161085e906135d5565b600f805460ff1916911515919091179055565b6060600182101580156114f957506105148211155b6115155760405162461bcd60e51b815260040161085e90613525565b600b54600160a01b900460ff1661158557600061155b61153484611d21565b600d604051602001611547929190613330565b604051602081830303815290604052611e44565b90508060405160200161156e9190613395565b60405160208183030381529060405291505061081a565b600e61159083611d21565b6040516020016115a19291906132dc565b604051602081830303815290604052905061081a565b60006115c1610bef565b600f5490915060ff166115e65760405162461bcd60e51b815260040161085e90613605565b600c548211156116085760405162461bcd60e51b815260040161085e90613625565b6105146116158383613701565b11156116335760405162461bcd60e51b815260040161085e906134f5565b3461164583668e1bc9bf040000613759565b11156116635760405162461bcd60e51b815260040161085e90613555565b60005b828110156108c4576116773361183e565b8061168181613870565b915050611666565b600b5460405163c455279160e01b81526000916001600160a01b039081169190841690829063c4552791906116c29088906004016133ac565b60206040518083038186803b1580156116da57600080fd5b505afa1580156116ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117129190612725565b6001600160a01b0316141561172b576001915050611739565b6117358484611fa7565b9150505b92915050565b600f5460ff1681565b611750611834565b6001600160a01b03166117616111fa565b6001600160a01b0316146117875760405162461bcd60e51b815260040161085e906135d5565b6001600160a01b0381166117ad5760405162461bcd60e51b815260040161085e906134d5565b610f6881611bf9565b80546001019055565b60003330141561181657600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506109599050565b503390565b6001600160e01b031981166301ffc9a760e01b14919050565b6000610c076117bf565b600061184a600a6119a4565b9050611856600a6117b6565b610d058282611fd5565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906118b282610f8a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b0386166119135760405162461bcd60e51b815260040161085e90613575565b600161192661192187611fef565b61204d565b83868660405160008152602001604052604051611946949392919061347c565b6020604051602081039080840390855afa158015611968573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b600061199d8284613701565b9392505050565b5490565b60006119b382611860565b6119cf5760405162461bcd60e51b815260040161085e90613565565b60006119da83610f8a565b9050806001600160a01b0316846001600160a01b03161480611a155750836001600160a01b0316611a0a8461097a565b6001600160a01b0316145b8061173557506117358185611689565b826001600160a01b0316611a3882610f8a565b6001600160a01b031614611a5e5760405162461bcd60e51b815260040161085e906135e5565b6001600160a01b038216611a845760405162461bcd60e51b815260040161085e90613535565b611a8f8383836108c4565b611a9a60008261187d565b6001600160a01b0383166000908152600360205260408120805460019290611ac390849061378e565b90915550506001600160a01b0382166000908152600360205260408120805460019290611af1908490613701565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611b5d82610f8a565b9050611b6b816000846108c4565b611b7660008361187d565b6001600160a01b0381166000908152600360205260408120805460019290611b9f90849061378e565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611c7d5760405162461bcd60e51b815260040161085e90613545565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190611ce190859061342b565b60405180910390a3505050565b611cf9848484611a25565b611d0584848484612069565b610f175760405162461bcd60e51b815260040161085e906134c5565b606081611d4657506040805180820190915260018152600360fc1b602082015261081a565b8160005b8115611d705780611d5a81613870565b9150611d699050600a8361372f565b9150611d4a565b60008167ffffffffffffffff811115611d9957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611dc3576020820181803683370190505b5090505b8415611e3c57611dd860018361378e565b9150611de5600a866138a7565b611df0906030613701565b60f81b818381518110611e1357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611e35600a8661372f565b9450611dc7565b949350505050565b6060815160001415611e65575060408051602081019091526000815261081a565b60006040518060600160405280604081526020016139be6040913990506000600384516002611e949190613701565b611e9e919061372f565b611ea9906004613759565b67ffffffffffffffff811115611ecf57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611ef9576020820181803683370190505b509050600182016020820185865187015b80821015611f65576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845360018401935050611f0a565b5050600386510660018114611f815760028114611f9457611f9c565b603d6001830353603d6002830353611f9c565b603d60018303535b509195945050505050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610d05828260405180602001604052806000815250612184565b600060405180608001604052806043815260200161397b60439139805160209182012083518483015160408087015180519086012090516120309501613447565b604051602081830303815290604052805190602001209050919050565b6000612057610c57565b826040516020016120309291906132ff565b600061207d846001600160a01b03166121b7565b1561217957836001600160a01b031663150b7a02612099611834565b8786866040518563ffffffff1660e01b81526004016120bb94939291906133e7565b602060405180830381600087803b1580156120d557600080fd5b505af1925050508015612105575060408051601f3d908101601f1916820190925261210291810190612707565b60015b61215f573d808015612133576040519150601f19603f3d011682016040523d82523d6000602084013e612138565b606091505b5080516121575760405162461bcd60e51b815260040161085e906134c5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611e3c565b506001949350505050565b61218e83836121bd565b61219b6000848484612069565b6108c45760405162461bcd60e51b815260040161085e906134c5565b3b151590565b6001600160a01b0382166121e35760405162461bcd60e51b815260040161085e906135b5565b6121ec81611860565b156122095760405162461bcd60e51b815260040161085e90613515565b612215600083836108c4565b6001600160a01b038216600090815260036020526040812080546001929061223e908490613701565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546122a890613843565b90600052602060002090601f0160209004810192826122ca5760008555612310565b82601f106122e357805160ff1916838001178555612310565b82800160010185558215612310579182015b828111156123105782518255916020019190600101906122f5565b5061231c929150612320565b5090565b5b8082111561231c5760008155600101612321565b6000612348612343846136bd565b613693565b90508281526020810184848401111561236057600080fd5b61236b84828561380b565b509392505050565b803561173981613939565b60008083601f84011261239057600080fd5b50813567ffffffffffffffff8111156123a857600080fd5b6020830191508360208202830111156123c057600080fd5b9250929050565b80356117398161394d565b803561173981613956565b80356117398161395f565b80516117398161395f565b600082601f83011261240457600080fd5b8135611735848260208601612335565b805161173981613968565b803561173981613971565b60006020828403121561243c57600080fd5b60006117358484612373565b6000806040838503121561245b57600080fd5b60006124678585612373565b925050602061247885828601612373565b9150509250929050565b60008060006060848603121561249757600080fd5b60006124a38686612373565b93505060206124b486828701612373565b92505060406124c5868287016123d2565b9150509250925092565b600080600080608085870312156124e557600080fd5b60006124f18787612373565b945050602061250287828801612373565b9350506040612513878288016123d2565b925050606085013567ffffffffffffffff81111561253057600080fd5b61253c878288016123f3565b91505092959194509250565b6000806040838503121561255b57600080fd5b60006125678585612373565b9250506020612478858286016123c7565b600080600080600060a0868803121561259057600080fd5b600061259c8888612373565b955050602086013567ffffffffffffffff8111156125b957600080fd5b6125c5888289016123f3565b94505060406125d6888289016123d2565b93505060606125e7888289016123d2565b92505060806125f88882890161241f565b9150509295509295909350565b6000806040838503121561261857600080fd5b60006126248585612373565b9250506020612478858286016123d2565b60008060006040848603121561264a57600080fd5b833567ffffffffffffffff81111561266157600080fd5b61266d8682870161237e565b935093505060206124c5868287016123c7565b60008060006040848603121561269557600080fd5b833567ffffffffffffffff8111156126ac57600080fd5b6126b88682870161237e565b935093505060206124c58682870161241f565b6000602082840312156126dd57600080fd5b600061173584846123c7565b6000602082840312156126fb57600080fd5b600061173584846123dd565b60006020828403121561271957600080fd5b600061173584846123e8565b60006020828403121561273757600080fd5b60006117358484612414565b60006020828403121561275557600080fd5b813567ffffffffffffffff81111561276c57600080fd5b611735848285016123f3565b60006020828403121561278a57600080fd5b600061173584846123d2565b600080604083850312156127a957600080fd5b600061246785856123d2565b6000602082840312156127c757600080fd5b6000611735848461241f565b6127dc816137d1565b82525050565b6127dc6127ee826137d1565b613896565b6127dc816137dc565b6127dc81610959565b6127dc61281182610959565b610959565b6000612821826136f4565b61282b81856136f8565b935061283b818560208601613817565b61284481613929565b9093019392505050565b6000612859826136f4565b612863818561081a565b9350612873818560208601613817565b9290920192915050565b6000815461288a81613843565b612894818661081a565b94506001821680156128ad57600181146128be576128ee565b60ff198316865281860193506128ee565b6128c7856136e8565b60005b838110156128e6578154888201526001909101906020016128ca565b838801955050505b50505092915050565b60006129046017836136f8565b7f50726573616c65206e6f74206163746976652079657421000000000000000000815260200192915050565b600061293d60728361081a565b7f226465736372697074696f6e223a2022496e736964652074686520736565642081527f6c696e67657273206120776f726c64206f6620706f73736962696c6974792c2060208201527f656e646c6573732062656174696e6720686561727473206f6620726567656e656040820152711c985d1a5d9948191c99585b5ccb8b8b888b60721b606082015260720192915050565b60006129dd6032836136f8565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015260400192915050565b6000612a316026836136f8565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b602082015260400192915050565b6000612a7960028361081a565b61088b60f21b815260020192915050565b6000612a97601c836136f8565b7f46756e6374696f6e2063616c6c206e6f74207375636365737366756c00000000815260200192915050565b6000612ad06020836136f8565b7f507572636861736520776f756c6420657863656564206d617820746f6b656e73815260200192915050565b6000612b09601c836136f8565b7f4d696e7420776f756c6420657863656564206d617820746f6b656e7300000000815260200192915050565b6000612b42601c836136f8565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815260200192915050565b6000612b7b60028361081a565b61190160f01b815260020192915050565b6000612b996015836136f8565b744e6f742076616c696420746f6b656e2072616e676560581b815260200192915050565b6000612bca60098361081a565b6803d913730b6b2911d160bd1b815260090192915050565b6000612bef6024836136f8565b7f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b602082015260400192915050565b6000612c356019836136f8565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000815260200192915050565b6000612c6e601f836136f8565b7f45746865722076616c75652073656e74206973206e6f7420636f727265637400815260200192915050565b6000612ca7602c836136f8565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b6000612cf56025836136f8565b7f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5381526424a3a722a960d91b602082015260400192915050565b6000612d3c6038836136f8565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015260400192915050565b6000612d9b602a836136f8565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b602082015260400192915050565b6000612de76029836136f8565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b602082015260400192915050565b6000612e3260028361081a565b61227d60f01b815260020192915050565b6000612e506020836136f8565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373815260200192915050565b6000612e89602c836136f8565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b6000612ed760058361081a565b64173539b7b760d91b815260050192915050565b6000612ef86020836136f8565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572815260200192915050565b6000612f316029836136f8565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981526839903737ba1037bbb760b91b602082015260400192915050565b6000612f7c6021836136f8565b7f5369676e657220616e64207369676e617475726520646f206e6f74206d6174638152600d60fb1b602082015260400192915050565b6000612fbf6022836136f8565b7f53616c65206d7573742062652061637469766520746f206d696e7420746f6b658152616e7360f01b602082015260400192915050565b60006130036021836136f8565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015260400192915050565b6000613046601b836136f8565b7f4578636565646564206d617820746f6b656e2070757263686173650000000000815260200192915050565b600061307f6022836136f8565b7f4578636565646564206d617820617661696c61626c6520746f20707572636861815261736560f01b602082015260400192915050565b60006130c3601d8361081a565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152601d0192915050565b60006130fc601d836136f8565b7f4e65656420746f206d696e74206174206c65617374203120746f6b656e000000815260200192915050565b6000613135600e836136f8565b6d3ab730b13632903a3790313ab93760911b815260200192915050565b600061315f6031836136f8565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b602082015260400192915050565b60006131b2600d8361081a565b6c22447265616d2053656564202360981b8152600d0192915050565b60006131db600a8361081a565b691134b6b0b3b2911d101160b11b8152600a0192915050565b6000613201603d8361081a565b7f2261747472696275746573223a5b7b2274726169745f74797065223a2253746181527f747573222c202276616c7565223a22556e72657665616c6564227d5d2c0000006020820152603d0192915050565b60006132606030836136f8565b7f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7781526f1b995c881b9bdc88185c1c1c9bdd995960821b602082015260400192915050565b6127dc81613805565b600061199d828461284e565b60006132c6828561284e565b91506132d282846127e2565b5060140192915050565b60006132e8828561287d565b91506132f4828461284e565b9150611e3c82612eca565b600061330a82612b6e565b91506133168285612805565b6020820191506133268284612805565b5060200192915050565b600061333b82612bbd565b9150613346826131a5565b9150613352828561284e565b915061335d82612a6c565b915061336882612930565b9150613373826131f4565b915061337e826131ce565b915061338a828461287d565b9150611e3c82612e25565b60006133a0826130b6565b915061199d828461284e565b6020810161173982846127d3565b606081016133c882866127d3565b6133d560208301856127d3565b8181036040830152610bc98184612816565b608081016133f582876127d3565b61340260208301866127d3565b61340f60408301856127fc565b81810360608301526134218184612816565b9695505050505050565b6020810161173982846127f3565b6020810161173982846127fc565b6080810161345582876127fc565b61346260208301866127fc565b61346f60408301856127d3565b610bc960608301846127fc565b6080810161348a82876127fc565b61349760208301866132a5565b61346f60408301856127fc565b6020808252810161199d8184612816565b60208082528101610817816128f7565b60208082528101610817816129d0565b6020808252810161081781612a24565b6020808252810161081781612a8a565b6020808252810161081781612ac3565b6020808252810161081781612afc565b6020808252810161081781612b35565b6020808252810161081781612b8c565b6020808252810161081781612be2565b6020808252810161081781612c28565b6020808252810161081781612c61565b6020808252810161081781612c9a565b6020808252810161081781612ce8565b6020808252810161081781612d2f565b6020808252810161081781612d8e565b6020808252810161081781612dda565b6020808252810161081781612e43565b6020808252810161081781612e7c565b6020808252810161081781612eeb565b6020808252810161081781612f24565b6020808252810161081781612f6f565b6020808252810161081781612fb2565b6020808252810161081781612ff6565b6020808252810161081781613039565b6020808252810161081781613072565b60208082528101610817816130ef565b6020808252810161081781613128565b6020808252810161081781613152565b6020808252810161081781613253565b6020810161173982846132a5565b60405181810167ffffffffffffffff811182821017156136b5576136b5613913565b604052919050565b600067ffffffffffffffff8211156136d7576136d7613913565b506020601f91909101601f19160190565b60009081526020902090565b5190565b90815260200190565b600061370c82610959565b915061371783610959565b9250821982111561372a5761372a6138d1565b500190565b600061373a82610959565b915061374583610959565b925082613754576137546138e7565b500490565b600061376482610959565b915061376f83610959565b9250816000190483118215151615613789576137896138d1565b500290565b600061379982610959565b91506137a483610959565b9250828210156137b6576137b66138d1565b500390565b60006137c682613805565b91506137a483613805565b6000610817826137f9565b151590565b6001600160e01b03191690565b6000610817826137d1565b6001600160a01b031690565b60ff1690565b82818337506000910152565b60005b8381101561383257818101518382015260200161381a565b83811115610f175750506000910152565b60028104600182168061385757607f821691505b6020821081141561386a5761386a6138fd565b50919050565b600061387b82610959565b915060001982141561388f5761388f6138d1565b5060010190565b600061081782600061081782613933565b60006138b282610959565b91506138bd83610959565b9250826138cc576138cc6138e7565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b601f01601f191690565b60601b90565b613942816137d1565b8114610f6857600080fd5b613942816137dc565b61394281610959565b613942816137e1565b613942816137ee565b6139428161380556fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e6174757265294142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212209466ef7b065657b527f4944bd1ab1c42acba003bdadc8e0d2e64e55077e8ecb864736f6c63430008000033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c742968747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d524137314e76655846354546555364733837335771786b567554384876764154677a363565763365613964352f68747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d504a4e357439343450535a4b33764c656666384550327a61326267486437656166733555366b626a436d4374000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1

Deployed Bytecode

0x6080604052600436106102885760003560e01c806342966c681161015a57806395d89b41116100c1578063c4e370951161007a578063c4e370951461072f578063c87b56dd1461074f578063e71741af1461076f578063e985e9c514610782578063eb8d2444146107a2578063f2fde38b146107b757610288565b806395d89b41146106875780639d19f0ac1461069c578063a22cb465146106af578063a914a626146106cf578063b88d4fde146106ef578063bce4d6ae1461070f57610288565b8063715018a611610113578063715018a6146105e8578063794d9d4e146105fd5780638059cbac1461061d5780638295784d1461063d578063833b94991461065d5780638da5cb5b1461067257610288565b806342966c681461054957806354214f69146105695780635ec593d41461057e5780636299b0bb146105935780636352211e146105a857806370a08231146105c857610288565b806323b872dd116101fe57806332cb6b0c116101b757806332cb6b0c146104aa5780633408e470146104bf57806338b3c0e2146104d45780633ccfd60b146104f45780633f3fc0da1461050957806342842e0e1461052957610288565b806323b872dd146103f557806327bd869c146104155780632a85db55146104355780632d0335ab1461045557806330f72cd414610475578063326d43881461048a57610288565b8063095ea7b311610250578063095ea7b3146103615780630c53c51c146103815780630f7e59701461039457806318160ddd146103a95780631c025064146103cb57806320379ee5146103e057610288565b806301ffc9a71461028d578063069443e6146102c357806306fdde03146102e557806307f3e9e514610307578063081812fc14610334575b600080fd5b34801561029957600080fd5b506102ad6102a83660046126e9565b6107d7565b6040516102ba919061342b565b60405180910390f35b3480156102cf57600080fd5b506102e36102de366004612778565b61081f565b005b3480156102f157600080fd5b506102fa6108c9565b6040516102ba91906134a4565b34801561031357600080fd5b5061032761032236600461242a565b61095c565b6040516102ba9190613685565b34801561034057600080fd5b5061035461034f366004612778565b61097a565b6040516102ba91906133ac565b34801561036d57600080fd5b506102e361037c366004612605565b6109bd565b6102fa61038f366004612578565b610a50565b3480156103a057600080fd5b506102fa610bd2565b3480156103b557600080fd5b506103be610bef565b6040516102ba9190613439565b3480156103d757600080fd5b506102e3610c0c565b3480156103ec57600080fd5b506103be610c57565b34801561040157600080fd5b506102e3610410366004612482565b610c5d565b34801561042157600080fd5b506102ad61043036600461242a565b610c95565b34801561044157600080fd5b506102e3610450366004612743565b610cb3565b34801561046157600080fd5b506103be61047036600461242a565b610d09565b34801561048157600080fd5b506102ad610d24565b34801561049657600080fd5b506102e36104a5366004612743565b610d32565b3480156104b657600080fd5b506103be610d84565b3480156104cb57600080fd5b506103be610d8a565b3480156104e057600080fd5b506102e36104ef3660046126cb565b610d8e565b34801561050057600080fd5b506102e3610deb565b34801561051557600080fd5b506102e3610524366004612635565b610e59565b34801561053557600080fd5b506102e3610544366004612482565b610f1d565b34801561055557600080fd5b506102e3610564366004612778565b610f38565b34801561057557600080fd5b506102ad610f6b565b34801561058a57600080fd5b506103be610f7b565b34801561059f57600080fd5b506102ad610f81565b3480156105b457600080fd5b506103546105c3366004612778565b610f8a565b3480156105d457600080fd5b506103be6105e336600461242a565b610fbf565b3480156105f457600080fd5b506102e3611003565b34801561060957600080fd5b506102e3610618366004612796565b61104e565b34801561062957600080fd5b506102e3610638366004612778565b6110ea565b34801561064957600080fd5b506102e3610658366004612680565b61112e565b34801561066957600080fd5b506103be6111ef565b34801561067e57600080fd5b506103546111fa565b34801561069357600080fd5b506102fa611209565b6102e36106aa3660046127b5565b611218565b3480156106bb57600080fd5b506102e36106ca366004612548565b611369565b3480156106db57600080fd5b506102e36106ea366004612778565b61137b565b3480156106fb57600080fd5b506102e361070a3660046124cf565b611400565b34801561071b57600080fd5b506102e361072a3660046126cb565b611439565b34801561073b57600080fd5b506102e361074a3660046126cb565b611492565b34801561075b57600080fd5b506102fa61076a366004612778565b6114e4565b6102e361077d366004612778565b6115b7565b34801561078e57600080fd5b506102ad61079d366004612448565b611689565b3480156107ae57600080fd5b506102ad61173f565b3480156107c357600080fd5b506102e36107d236600461242a565b611748565b60006001600160e01b031982166380ac58cd60e01b148061080857506001600160e01b03198216635b5e139f60e01b145b8061081757506108178261181b565b90505b919050565b610827611834565b6001600160a01b03166108386111fa565b6001600160a01b0316146108675760405162461bcd60e51b815260040161085e906135d5565b60405180910390fd5b6000610871610bef565b90506105146108808383613701565b111561089e5760405162461bcd60e51b815260040161085e90613505565b60005b828110156108c4576108b23361183e565b806108bc81613870565b9150506108a1565b505050565b6060600080546108d890613843565b80601f016020809104026020016040519081016040528092919081815260200182805461090490613843565b80156109515780601f1061092657610100808354040283529160200191610951565b820191906000526020600020905b81548152906001019060200180831161093457829003601f168201915b505050505090505b90565b6001600160a01b031660009081526010602052604090205460ff1690565b600061098582611860565b6109a15760405162461bcd60e51b815260040161085e906135c5565b506000908152600460205260409020546001600160a01b031690565b60006109c882610f8a565b9050806001600160a01b0316836001600160a01b031614156109fc5760405162461bcd60e51b815260040161085e90613615565b806001600160a01b0316610a0e611834565b6001600160a01b03161480610a2a5750610a2a8161079d611834565b610a465760405162461bcd60e51b815260040161085e90613585565b6108c4838361187d565b60408051606081810183526001600160a01b03881660008181526008602090815290859020548452830152918101869052610a8e87828787876118eb565b610aaa5760405162461bcd60e51b815260040161085e906135f5565b6001600160a01b038716600090815260086020526040902054610ace906001611991565b6001600160a01b0388166000908152600860205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610b1e90899033908a906133ba565b60405180910390a1600080306001600160a01b0316888a604051602001610b469291906132ba565b60408051601f1981840301815290829052610b60916132ae565b6000604051808303816000865af19150503d8060008114610b9d576040519150601f19603f3d011682016040523d82523d6000602084013e610ba2565b606091505b509150915081610bc45760405162461bcd60e51b815260040161085e906134e5565b925050505b95945050505050565b604051806040016040528060018152602001603160f81b81525081565b60006001610bfd600a6119a4565b610c07919061378e565b905090565b610c14611834565b6001600160a01b0316610c256111fa565b6001600160a01b031614610c4b5760405162461bcd60e51b815260040161085e906135d5565b6012805460ff19169055565b60075490565b610c6e610c68611834565b826119a8565b610c8a5760405162461bcd60e51b815260040161085e90613665565b6108c4838383611a25565b6001600160a01b031660009081526011602052604090205460ff1690565b610cbb611834565b6001600160a01b0316610ccc6111fa565b6001600160a01b031614610cf25760405162461bcd60e51b815260040161085e906135d5565b8051610d0590600d90602084019061229c565b5050565b6001600160a01b031660009081526008602052604090205490565b600f54610100900460ff1681565b610d3a611834565b6001600160a01b0316610d4b6111fa565b6001600160a01b031614610d715760405162461bcd60e51b815260040161085e906135d5565b8051610d0590600e90602084019061229c565b61051481565b4690565b610d96611834565b6001600160a01b0316610da76111fa565b6001600160a01b031614610dcd5760405162461bcd60e51b815260040161085e906135d5565b600b8054911515600160a01b0260ff60a01b19909216919091179055565b610df3611834565b6001600160a01b0316610e046111fa565b6001600160a01b031614610e2a5760405162461bcd60e51b815260040161085e906135d5565b6040514790339082156108fc029083906000818181858888f19350505050158015610d05573d6000803e3d6000fd5b610e61611834565b6001600160a01b0316610e726111fa565b6001600160a01b031614610e985760405162461bcd60e51b815260040161085e906135d5565b60005b82811015610f17578160116000868685818110610ec857634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610edd919061242a565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580610f0f81613870565b915050610e9b565b50505050565b6108c483838360405180602001604052806000815250611400565b610f43610c68611834565b610f5f5760405162461bcd60e51b815260040161085e90613675565b610f6881611b52565b50565b600b54600160a01b900460ff1681565b600c5481565b60125460ff1681565b6000818152600260205260408120546001600160a01b0316806108175760405162461bcd60e51b815260040161085e906135a5565b60006001600160a01b038216610fe75760405162461bcd60e51b815260040161085e90613595565b506001600160a01b031660009081526003602052604090205490565b61100b611834565b6001600160a01b031661101c6111fa565b6001600160a01b0316146110425760405162461bcd60e51b815260040161085e906135d5565b61104c6000611bf9565b565b611056611834565b6001600160a01b03166110676111fa565b6001600160a01b03161461108d5760405162461bcd60e51b815260040161085e906135d5565b6000611097610bef565b90506105146110a68483613701565b11156110c45760405162461bcd60e51b815260040161085e90613505565b60005b83811015610f17576110d88361183e565b806110e281613870565b9150506110c7565b6110f2611834565b6001600160a01b03166111036111fa565b6001600160a01b0316146111295760405162461bcd60e51b815260040161085e906135d5565b600c55565b611136611834565b6001600160a01b03166111476111fa565b6001600160a01b03161461116d5760405162461bcd60e51b815260040161085e906135d5565b60005b82811015610f1757816010600086868581811061119d57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906111b2919061242a565b6001600160a01b031681526020810191909152604001600020805460ff191660ff92909216919091179055806111e781613870565b915050611170565b668e1bc9bf04000081565b6009546001600160a01b031690565b6060600180546108d890613843565b6000611222610bef565b600f54909150610100900460ff1661124c5760405162461bcd60e51b815260040161085e906134b5565b60008260ff161161126f5760405162461bcd60e51b815260040161085e90613645565b3360009081526010602052604090205460ff90811690831611156112a55760405162461bcd60e51b815260040161085e90613635565b6105146112b560ff841683613701565b11156112d35760405162461bcd60e51b815260040161085e906134f5565b346112e860ff8416668e1bc9bf040000613759565b11156113065760405162461bcd60e51b815260040161085e90613555565b336000908152601060205260408120805484929061132890849060ff166137bb565b92506101000a81548160ff021916908360ff16021790555060005b8260ff168110156108c4576113573361183e565b8061136181613870565b915050611343565b610d05611374611834565b8383611c4b565b60125460ff1615156001146113a25760405162461bcd60e51b815260040161085e90613655565b600181101580156113b557506105148111155b6113d15760405162461bcd60e51b815260040161085e90613525565b3360009081526011602052604090205460ff16610f5f5760405162461bcd60e51b815260040161085e90613675565b61141161140b611834565b836119a8565b61142d5760405162461bcd60e51b815260040161085e90613665565b610f1784848484611cee565b611441611834565b6001600160a01b03166114526111fa565b6001600160a01b0316146114785760405162461bcd60e51b815260040161085e906135d5565b600f80549115156101000261ff0019909216919091179055565b61149a611834565b6001600160a01b03166114ab6111fa565b6001600160a01b0316146114d15760405162461bcd60e51b815260040161085e906135d5565b600f805460ff1916911515919091179055565b6060600182101580156114f957506105148211155b6115155760405162461bcd60e51b815260040161085e90613525565b600b54600160a01b900460ff1661158557600061155b61153484611d21565b600d604051602001611547929190613330565b604051602081830303815290604052611e44565b90508060405160200161156e9190613395565b60405160208183030381529060405291505061081a565b600e61159083611d21565b6040516020016115a19291906132dc565b604051602081830303815290604052905061081a565b60006115c1610bef565b600f5490915060ff166115e65760405162461bcd60e51b815260040161085e90613605565b600c548211156116085760405162461bcd60e51b815260040161085e90613625565b6105146116158383613701565b11156116335760405162461bcd60e51b815260040161085e906134f5565b3461164583668e1bc9bf040000613759565b11156116635760405162461bcd60e51b815260040161085e90613555565b60005b828110156108c4576116773361183e565b8061168181613870565b915050611666565b600b5460405163c455279160e01b81526000916001600160a01b039081169190841690829063c4552791906116c29088906004016133ac565b60206040518083038186803b1580156116da57600080fd5b505afa1580156116ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117129190612725565b6001600160a01b0316141561172b576001915050611739565b6117358484611fa7565b9150505b92915050565b600f5460ff1681565b611750611834565b6001600160a01b03166117616111fa565b6001600160a01b0316146117875760405162461bcd60e51b815260040161085e906135d5565b6001600160a01b0381166117ad5760405162461bcd60e51b815260040161085e906134d5565b610f6881611bf9565b80546001019055565b60003330141561181657600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506109599050565b503390565b6001600160e01b031981166301ffc9a760e01b14919050565b6000610c076117bf565b600061184a600a6119a4565b9050611856600a6117b6565b610d058282611fd5565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906118b282610f8a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b0386166119135760405162461bcd60e51b815260040161085e90613575565b600161192661192187611fef565b61204d565b83868660405160008152602001604052604051611946949392919061347c565b6020604051602081039080840390855afa158015611968573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b600061199d8284613701565b9392505050565b5490565b60006119b382611860565b6119cf5760405162461bcd60e51b815260040161085e90613565565b60006119da83610f8a565b9050806001600160a01b0316846001600160a01b03161480611a155750836001600160a01b0316611a0a8461097a565b6001600160a01b0316145b8061173557506117358185611689565b826001600160a01b0316611a3882610f8a565b6001600160a01b031614611a5e5760405162461bcd60e51b815260040161085e906135e5565b6001600160a01b038216611a845760405162461bcd60e51b815260040161085e90613535565b611a8f8383836108c4565b611a9a60008261187d565b6001600160a01b0383166000908152600360205260408120805460019290611ac390849061378e565b90915550506001600160a01b0382166000908152600360205260408120805460019290611af1908490613701565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611b5d82610f8a565b9050611b6b816000846108c4565b611b7660008361187d565b6001600160a01b0381166000908152600360205260408120805460019290611b9f90849061378e565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611c7d5760405162461bcd60e51b815260040161085e90613545565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190611ce190859061342b565b60405180910390a3505050565b611cf9848484611a25565b611d0584848484612069565b610f175760405162461bcd60e51b815260040161085e906134c5565b606081611d4657506040805180820190915260018152600360fc1b602082015261081a565b8160005b8115611d705780611d5a81613870565b9150611d699050600a8361372f565b9150611d4a565b60008167ffffffffffffffff811115611d9957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611dc3576020820181803683370190505b5090505b8415611e3c57611dd860018361378e565b9150611de5600a866138a7565b611df0906030613701565b60f81b818381518110611e1357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611e35600a8661372f565b9450611dc7565b949350505050565b6060815160001415611e65575060408051602081019091526000815261081a565b60006040518060600160405280604081526020016139be6040913990506000600384516002611e949190613701565b611e9e919061372f565b611ea9906004613759565b67ffffffffffffffff811115611ecf57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611ef9576020820181803683370190505b509050600182016020820185865187015b80821015611f65576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845360018401935050611f0a565b5050600386510660018114611f815760028114611f9457611f9c565b603d6001830353603d6002830353611f9c565b603d60018303535b509195945050505050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610d05828260405180602001604052806000815250612184565b600060405180608001604052806043815260200161397b60439139805160209182012083518483015160408087015180519086012090516120309501613447565b604051602081830303815290604052805190602001209050919050565b6000612057610c57565b826040516020016120309291906132ff565b600061207d846001600160a01b03166121b7565b1561217957836001600160a01b031663150b7a02612099611834565b8786866040518563ffffffff1660e01b81526004016120bb94939291906133e7565b602060405180830381600087803b1580156120d557600080fd5b505af1925050508015612105575060408051601f3d908101601f1916820190925261210291810190612707565b60015b61215f573d808015612133576040519150601f19603f3d011682016040523d82523d6000602084013e612138565b606091505b5080516121575760405162461bcd60e51b815260040161085e906134c5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611e3c565b506001949350505050565b61218e83836121bd565b61219b6000848484612069565b6108c45760405162461bcd60e51b815260040161085e906134c5565b3b151590565b6001600160a01b0382166121e35760405162461bcd60e51b815260040161085e906135b5565b6121ec81611860565b156122095760405162461bcd60e51b815260040161085e90613515565b612215600083836108c4565b6001600160a01b038216600090815260036020526040812080546001929061223e908490613701565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546122a890613843565b90600052602060002090601f0160209004810192826122ca5760008555612310565b82601f106122e357805160ff1916838001178555612310565b82800160010185558215612310579182015b828111156123105782518255916020019190600101906122f5565b5061231c929150612320565b5090565b5b8082111561231c5760008155600101612321565b6000612348612343846136bd565b613693565b90508281526020810184848401111561236057600080fd5b61236b84828561380b565b509392505050565b803561173981613939565b60008083601f84011261239057600080fd5b50813567ffffffffffffffff8111156123a857600080fd5b6020830191508360208202830111156123c057600080fd5b9250929050565b80356117398161394d565b803561173981613956565b80356117398161395f565b80516117398161395f565b600082601f83011261240457600080fd5b8135611735848260208601612335565b805161173981613968565b803561173981613971565b60006020828403121561243c57600080fd5b60006117358484612373565b6000806040838503121561245b57600080fd5b60006124678585612373565b925050602061247885828601612373565b9150509250929050565b60008060006060848603121561249757600080fd5b60006124a38686612373565b93505060206124b486828701612373565b92505060406124c5868287016123d2565b9150509250925092565b600080600080608085870312156124e557600080fd5b60006124f18787612373565b945050602061250287828801612373565b9350506040612513878288016123d2565b925050606085013567ffffffffffffffff81111561253057600080fd5b61253c878288016123f3565b91505092959194509250565b6000806040838503121561255b57600080fd5b60006125678585612373565b9250506020612478858286016123c7565b600080600080600060a0868803121561259057600080fd5b600061259c8888612373565b955050602086013567ffffffffffffffff8111156125b957600080fd5b6125c5888289016123f3565b94505060406125d6888289016123d2565b93505060606125e7888289016123d2565b92505060806125f88882890161241f565b9150509295509295909350565b6000806040838503121561261857600080fd5b60006126248585612373565b9250506020612478858286016123d2565b60008060006040848603121561264a57600080fd5b833567ffffffffffffffff81111561266157600080fd5b61266d8682870161237e565b935093505060206124c5868287016123c7565b60008060006040848603121561269557600080fd5b833567ffffffffffffffff8111156126ac57600080fd5b6126b88682870161237e565b935093505060206124c58682870161241f565b6000602082840312156126dd57600080fd5b600061173584846123c7565b6000602082840312156126fb57600080fd5b600061173584846123dd565b60006020828403121561271957600080fd5b600061173584846123e8565b60006020828403121561273757600080fd5b60006117358484612414565b60006020828403121561275557600080fd5b813567ffffffffffffffff81111561276c57600080fd5b611735848285016123f3565b60006020828403121561278a57600080fd5b600061173584846123d2565b600080604083850312156127a957600080fd5b600061246785856123d2565b6000602082840312156127c757600080fd5b6000611735848461241f565b6127dc816137d1565b82525050565b6127dc6127ee826137d1565b613896565b6127dc816137dc565b6127dc81610959565b6127dc61281182610959565b610959565b6000612821826136f4565b61282b81856136f8565b935061283b818560208601613817565b61284481613929565b9093019392505050565b6000612859826136f4565b612863818561081a565b9350612873818560208601613817565b9290920192915050565b6000815461288a81613843565b612894818661081a565b94506001821680156128ad57600181146128be576128ee565b60ff198316865281860193506128ee565b6128c7856136e8565b60005b838110156128e6578154888201526001909101906020016128ca565b838801955050505b50505092915050565b60006129046017836136f8565b7f50726573616c65206e6f74206163746976652079657421000000000000000000815260200192915050565b600061293d60728361081a565b7f226465736372697074696f6e223a2022496e736964652074686520736565642081527f6c696e67657273206120776f726c64206f6620706f73736962696c6974792c2060208201527f656e646c6573732062656174696e6720686561727473206f6620726567656e656040820152711c985d1a5d9948191c99585b5ccb8b8b888b60721b606082015260720192915050565b60006129dd6032836136f8565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015260400192915050565b6000612a316026836136f8565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b602082015260400192915050565b6000612a7960028361081a565b61088b60f21b815260020192915050565b6000612a97601c836136f8565b7f46756e6374696f6e2063616c6c206e6f74207375636365737366756c00000000815260200192915050565b6000612ad06020836136f8565b7f507572636861736520776f756c6420657863656564206d617820746f6b656e73815260200192915050565b6000612b09601c836136f8565b7f4d696e7420776f756c6420657863656564206d617820746f6b656e7300000000815260200192915050565b6000612b42601c836136f8565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815260200192915050565b6000612b7b60028361081a565b61190160f01b815260020192915050565b6000612b996015836136f8565b744e6f742076616c696420746f6b656e2072616e676560581b815260200192915050565b6000612bca60098361081a565b6803d913730b6b2911d160bd1b815260090192915050565b6000612bef6024836136f8565b7f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b602082015260400192915050565b6000612c356019836136f8565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000815260200192915050565b6000612c6e601f836136f8565b7f45746865722076616c75652073656e74206973206e6f7420636f727265637400815260200192915050565b6000612ca7602c836136f8565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b6000612cf56025836136f8565b7f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5381526424a3a722a960d91b602082015260400192915050565b6000612d3c6038836136f8565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015260400192915050565b6000612d9b602a836136f8565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b602082015260400192915050565b6000612de76029836136f8565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b602082015260400192915050565b6000612e3260028361081a565b61227d60f01b815260020192915050565b6000612e506020836136f8565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373815260200192915050565b6000612e89602c836136f8565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b6000612ed760058361081a565b64173539b7b760d91b815260050192915050565b6000612ef86020836136f8565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572815260200192915050565b6000612f316029836136f8565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981526839903737ba1037bbb760b91b602082015260400192915050565b6000612f7c6021836136f8565b7f5369676e657220616e64207369676e617475726520646f206e6f74206d6174638152600d60fb1b602082015260400192915050565b6000612fbf6022836136f8565b7f53616c65206d7573742062652061637469766520746f206d696e7420746f6b658152616e7360f01b602082015260400192915050565b60006130036021836136f8565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015260400192915050565b6000613046601b836136f8565b7f4578636565646564206d617820746f6b656e2070757263686173650000000000815260200192915050565b600061307f6022836136f8565b7f4578636565646564206d617820617661696c61626c6520746f20707572636861815261736560f01b602082015260400192915050565b60006130c3601d8361081a565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152601d0192915050565b60006130fc601d836136f8565b7f4e65656420746f206d696e74206174206c65617374203120746f6b656e000000815260200192915050565b6000613135600e836136f8565b6d3ab730b13632903a3790313ab93760911b815260200192915050565b600061315f6031836136f8565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b602082015260400192915050565b60006131b2600d8361081a565b6c22447265616d2053656564202360981b8152600d0192915050565b60006131db600a8361081a565b691134b6b0b3b2911d101160b11b8152600a0192915050565b6000613201603d8361081a565b7f2261747472696275746573223a5b7b2274726169745f74797065223a2253746181527f747573222c202276616c7565223a22556e72657665616c6564227d5d2c0000006020820152603d0192915050565b60006132606030836136f8565b7f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7781526f1b995c881b9bdc88185c1c1c9bdd995960821b602082015260400192915050565b6127dc81613805565b600061199d828461284e565b60006132c6828561284e565b91506132d282846127e2565b5060140192915050565b60006132e8828561287d565b91506132f4828461284e565b9150611e3c82612eca565b600061330a82612b6e565b91506133168285612805565b6020820191506133268284612805565b5060200192915050565b600061333b82612bbd565b9150613346826131a5565b9150613352828561284e565b915061335d82612a6c565b915061336882612930565b9150613373826131f4565b915061337e826131ce565b915061338a828461287d565b9150611e3c82612e25565b60006133a0826130b6565b915061199d828461284e565b6020810161173982846127d3565b606081016133c882866127d3565b6133d560208301856127d3565b8181036040830152610bc98184612816565b608081016133f582876127d3565b61340260208301866127d3565b61340f60408301856127fc565b81810360608301526134218184612816565b9695505050505050565b6020810161173982846127f3565b6020810161173982846127fc565b6080810161345582876127fc565b61346260208301866127fc565b61346f60408301856127d3565b610bc960608301846127fc565b6080810161348a82876127fc565b61349760208301866132a5565b61346f60408301856127fc565b6020808252810161199d8184612816565b60208082528101610817816128f7565b60208082528101610817816129d0565b6020808252810161081781612a24565b6020808252810161081781612a8a565b6020808252810161081781612ac3565b6020808252810161081781612afc565b6020808252810161081781612b35565b6020808252810161081781612b8c565b6020808252810161081781612be2565b6020808252810161081781612c28565b6020808252810161081781612c61565b6020808252810161081781612c9a565b6020808252810161081781612ce8565b6020808252810161081781612d2f565b6020808252810161081781612d8e565b6020808252810161081781612dda565b6020808252810161081781612e43565b6020808252810161081781612e7c565b6020808252810161081781612eeb565b6020808252810161081781612f24565b6020808252810161081781612f6f565b6020808252810161081781612fb2565b6020808252810161081781612ff6565b6020808252810161081781613039565b6020808252810161081781613072565b60208082528101610817816130ef565b6020808252810161081781613128565b6020808252810161081781613152565b6020808252810161081781613253565b6020810161173982846132a5565b60405181810167ffffffffffffffff811182821017156136b5576136b5613913565b604052919050565b600067ffffffffffffffff8211156136d7576136d7613913565b506020601f91909101601f19160190565b60009081526020902090565b5190565b90815260200190565b600061370c82610959565b915061371783610959565b9250821982111561372a5761372a6138d1565b500190565b600061373a82610959565b915061374583610959565b925082613754576137546138e7565b500490565b600061376482610959565b915061376f83610959565b9250816000190483118215151615613789576137896138d1565b500290565b600061379982610959565b91506137a483610959565b9250828210156137b6576137b66138d1565b500390565b60006137c682613805565b91506137a483613805565b6000610817826137f9565b151590565b6001600160e01b03191690565b6000610817826137d1565b6001600160a01b031690565b60ff1690565b82818337506000910152565b60005b8381101561383257818101518382015260200161381a565b83811115610f175750506000910152565b60028104600182168061385757607f821691505b6020821081141561386a5761386a6138fd565b50919050565b600061387b82610959565b915060001982141561388f5761388f6138d1565b5060010190565b600061081782600061081782613933565b60006138b282610959565b91506138bd83610959565b9250826138cc576138cc6138e7565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b601f01601f191690565b60601b90565b613942816137d1565b8114610f6857600080fd5b613942816137dc565b61394281610959565b613942816137e1565b613942816137ee565b6139428161380556fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e6174757265294142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212209466ef7b065657b527f4944bd1ab1c42acba003bdadc8e0d2e64e55077e8ecb864736f6c63430008000033

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

000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1

-----Decoded View---------------
Arg [0] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1

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


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

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