ETH Price: $3,438.81 (-1.30%)

Token

B34CH DAO (B34CH)
 

Overview

Max Total Supply

318 B34CH

Holders

207

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
drdefi.eth
Balance
1 B34CH
0x8c9ec6a671c6819e84fb325604f73e321af0b5e3
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
Beach

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 2000 runs

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

/**
ccloool:::cc::::cc:::::cccccloooooool;;loddc...............,:'....''...,cc...''...,ll.................';:;,',,'',,;,';:;;:lll::clc;;;;;
ccccllc:::cc:::::::::::c:clccllloolllooooodo,.............,loc'.......:dkkl,;odooodxxl:;;'..............',...........''.';ccc:;:c;....'
::::::::::cc::::::;;:::cclllcccloooollloooddl:,,;:,...';clooddo,.....,lxkkxxxkkkxxxxxddxxdoc,.':cllc;'.....''.''..........,,,'.''......
::::::;;:;::;;;;;;;::::ccclllccllllllloooooooooooool:clddddddddo:..';ldxkkxxxxxxxxxxdxxdddxxdodxxxxxxxo:,'cdddxxdolldl::,.........;clc'
:;;;;;:;:;:;;;;:::;;:::::cclccllccllllddolodoooooddododddodoodxddoodddoxkxxxxxxxdxxddxxdooddoddxkxxkkkkkxdkOxxkOOkkOOkkko:,'';c:';dkOkd
;,,,;;;;::;;,,;;::;,;:;;::cccccccllllllolooooooooooooollooloooodddoooddxkxddxxddddxddxxoodddddddxxxkkkkkkxkkxkkkkkkxkOkxkOOxxkkkxxkkOOO
,,,,;;,;;;,,,,;;;;;,;;;;;::::ccclollccclloollllloolllllcccclooodoodddddddxdodddddddddddddddddooodddxkxkOkxkxxkOkkkxxkkOkkkOOOkkOOkxkkkO
',,,,,',,,,,,,,,,'',,,,',,;::ccccccclcccloollolllolllcclccllccloooddddoodxddxddxdoooododdoloolodxdddxxxkkkxxkkOkkkkkkxxdxkkkOOkkOkxkkxk
'',,,'''''''''''....'''''',;::::::cc:c::clc:clllllllllcccc:ccclloodxdoodooooddddoooooooooollooooodxxxkxkkxkxkkkkkkxxkxxdxkkkkxxkkkxkOkx
'''''..'''...''........''..',,,,;:c:;;;;:c::cccccclllcccc::::cclllodooloolloddooolllloololcclollddddxkxddkkxxkkkxxxxkkkkxxkkxxdkOkkxxkO
.............................''',,,,,,,;::::::cc::::ccc::;;;;;::clccccllollllooollccccllccccclllooooodxddxxxxkxxxxxxxkkkkxxxdxxxkkxxxxx
.......................................',,;:;;;:;;;;;:;;,,,,,,;;:cc:::cllc:cccllcccc:;:c::::ccccllooodddddkkxxxxddxxxxxxxxxddxxxxkkxxxx
..........................................''',,,,;;,,,''......'',;;,,,;:::;:::cc::::;:::;;;;;;;:ccllooolododddxdddxxxddxddxxxdodxxxxxdd
..................'',,..,;;...................''.''''.................'',;;;;:::;,,,,,,'''..',,;:cccllloooloddxoodxkxddodddxxoodxddddoo
...............',;;;;coxxxkxolllc:,........';coddol:'.............:lllll;'''',,,..;coddddol:,...,;:oxkxxolloodddkOO0kdoooodddoooddoddoo
.....',,;,',,,,,,;;;,:OXXXXXXXXXXXKOd:;;,:dOKXXXXXXXOl'....,,;:;;xKXXXN0;......;lk0XXXXXXXXX0xc...,kXXXklllclold0XXKklllllooolloooooooo
'',,,,,,,,,,',,,,,,,'l0XXKkddxxxOKXXXx:;;lkKOxdllxKXXKd;;;;:::lkKXXXXXX0c..'',o0XXXKkdddoxOKXXO:..,OXXKo,;;:clcdKXX0dccc::ccccccclllccl
''',,'',,,,''''''''''oXXXk:,,,;,:OXXXx;,;,;c;,,,,c0XXXd,',;,;d0XX0KXXXXkc:::oOXXX0xl:::;;:coxoc:;'lKXXO,..'.',;xXXXOc,,''',,;,,;:cc:::c
'''''''''''''''''''.,xXXXOdoooddOKXKk:'',,'':oddx0XXKx;''',lkKXKdo0NXXKo::::xXXX0o;;::;;;:::;::::cOXXX0dlllllooOXXKo'...........,;;;,,;
'...'...''....'.....;OXXXXXXXXXXXXXx;...''.'oXNXXXXKo,''.;dKXKxc,lKXXX0c,;,cOXXXd;,,;;;,;;,;;;;::l0XXXXXXXXXXXXXXX0c',;clc:;,;;........
....................cKXX0ollllodOXXKo'......:oooxKXX0c..cOXXXOolokXXXX0ol;.:OXXXd''',,,,,''',,,,,l0XXKOkkxkxxk0XXX0lclllccclloo:,'..,,'
....................dXXXd'......oKXXk'...'.......dXXXx.'kNXXXXXXXXXXXXXNK:.'dXXX0c'..''''';l:,'',dKXXOl:::::clkXXXkc::cc::::ccc:c:;;;;,
...................'kXXXkcccclld0XXKo..;d0kl:;;:o0XXKl..clllllllxKXXXKdlc...'xXXXKxlc::clx0X0o'.,xXXXx;,,;;;:l0XXKd::::::;;::c:;;;,''..
...................;0NXXXXXXXXXXXKkc...l0XXXXKKXXXKOc...........cKXXXO;.......ckKXXXXXXXXXX0d:..;OXXKc....',;oKXX0c,'''',',;;;;'.......
...................,ooooooooooolc,...',,:lx000KKKOd;...,:;......:k000Oxooc;;;:clllodxxxdol:'....'lddl'......':oodc'.........'.........,
.................................':codxxooddxkxxkxxocodxkkxdoooccododdxxddxkxxkxoc;;;,..''',;'...........'...........'...........';coox
................................,cxxxkxdxxdodxddodxddxkxdxkxdddoooooddodddxxdxkxoodddollddooddo:'.,cl:::ll:'..':lc::lollccc,'..'cdxdxxx
....................;c:;;col:;:llooxkxxdodxdoodxdolodxxoloddkdlooodxdodxxddddddxdododdoooooooddollooddoolllc:clodxdooodxddxxdlooxxddkOk
::;;;;:;'...';;cc:cloodoodooolllllloxxdllddoxdoddooooddoddooddddolldooddloollllooloooooddoloolodolloooodoooolooloooolodxxdodooooxxoodxo
dlclocldolllccclooolloolol:cooolccclllollodooooollooccloollodddoloolllolldlcllooooodocclooloolllllollloxolollccoollooolodloollllddlcodl
:lccllolcoool::cclllllc:ccccllcc::lccldollccc:lolcllcllol:cclooollllloolllccldllllll::cc:ccloodolcccccloccc:ccccoolllooooodoloccddlcddo
cccccc::c:cllc:::c::cccclclc:cc;;:::::cccc:;::cllccc:clllc:lcccclclllool::ccclc:ll::cccc:::ccccccc:::lllccc:::cclccllcccloollcc:looooll
c:,,,,;;:;;;::;;,,;;:::::::;,,;,;:;;;::::cc::;,;:cc::cllcc:clol::;:cccllc:;:cc:;:;;cl:;;;;;;;;,;c:;;;:clc;;::::;;;;:cccccll:clc:ldolc;:
,,,,,,,,'',,,,,,;:;,,,,',,,,,,;,,,''',,,,,'',,,,,;:;;:::;:;;cc::;;::::::;,,,',;,,',;:;,''',,,,,;,'',,',,,,,,,;,,,,,;;;:;:clc:c:cddc:ccc
..'...........''''''....''...''..............'..'''''';:;,,',,',,,,,;:,,,'''..'...''.....''...''..'''''.........'..',;;,,,,,:;,:ol;;;;,
...........................................................''''''''..'..'.'...........................................'.','''..;dc,'''.
,;;;;;;;;,,,''''.......'',,;;::cccccccccccc::;;,'..............................',;;::cccc::;;,,'''''',,;;:::cc:;,'.............lx:'....
0KK0KKKK0000OOOOOkOOOOOO0000KKKKKKKKKKKKKKKKKKKK0Okdolc:;;,'''''',,,,;::clodxkO00KKKKKKKXKKKKK00000000KKKKKKKKKKKOkdl:,.......cOx,....;
KKKKKKKK00KKK0KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK0KKKKK00K00000000KK0KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK0Oxddddk0Ko..:ok0
KKKKKKKKKKKKKKK00KKKKKKKKKKKK0KKKKKKKKK0KKKKKKKKKKK0KKK00KKKKK00KKKKKK00KKKKKKKKKKKKKKKKKKKK00KKKKKKKKKK00KKKKKKKKKKKKKKKKKKK0KKl'oKK00
*/

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Royalty.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

import "@openzeppelin/contracts/interfaces/IERC20.sol";
import "@openzeppelin/contracts/interfaces/IERC721.sol";

import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

import "./BeachLibrary.sol";

interface IERC20Burnable {
  function burnFrom(address account, uint256 amount) external;
}

interface ISeafood {
  function decimals() external view returns (uint8);
}

contract Beach is ERC721Enumerable, ERC721Royalty, Ownable {
  bool private _revealed = false;
  string private _baseURIPath = "https://url.b34ch.xyz/ipfs/";
  string private _placeholderURI = "Qmb4efNTGFfFeMmYNoMWKwhPkvQkfeNLo4kgZqi72JAL6S";
  string[2] private _revealedPath = ["", ""];
  bool private _frozen = false;

  bytes32 public waveListMerkleRoot;
  uint public MAX_SUPPLY = 1337;
  uint public MAX_PER_WALLET = 5;
  uint public MAX_PER_TX = 3;
  string public provenance = "e36178f2da4018955176de7fc70fa1fdc0dc0679f36d42f60d5a6cafe9691ba1";

  address private _lobster;
  address private _seafood;

  uint private _mintBlock;

  string[] private _TRAITS;
  string[] private _DICT;

  mapping(uint256 => string) private _beachNames;
  mapping(uint256 => uint16[8]) private _beachMetadata;
  mapping(string => bool) private _existingNames;

  uint private AMOUNT_NEEDED_FOR_NAME_CHANGE = 50;

  // PaymentSplitter
  mapping(address => uint8) private _shares;
  mapping(address => uint256) private _released;
  mapping(address => uint256) private _balances;
  address[] private _payees;
  uint256 private _totalShares;
  uint256 private _totalSplit;
  uint256 private _amountReleased;

  event PayeeAdded(address indexed account, uint8 shares);
  event PayeeUpdated(address indexed account, uint8 shares);
  event PaymentReleased(address indexed account, uint256 amount);
  event Revealed();
  event NameChanged(uint256 tokenId, string name);

  constructor(address lobster_, uint blockToMint_, string[] memory traits_) ERC721("B34CH DAO", "B34CH") {
    _lobster = lobster_;
    _setDefaultRoyalty(address(this), 1000);
    _mintBlock = blockToMint_ > 100000 ? blockToMint_ : block.number + blockToMint_;
    _TRAITS = traits_;
  }

  function setMerkleRoot(bytes32 waveListRoot_) external onlyOwner {
    waveListMerkleRoot = waveListRoot_;
  }

  function setSeafood(address seafood_) external onlyOwner {
    _seafood = seafood_;
  }

  receive() external payable {
  }

  /**
   * @dev Returns the wallet of a given wallet. Mainly for ease for frontend devs.
   * @param wallet_ The wallet to get the tokens of.
   */
  function walletOfOwner(address wallet_)
  public
  view
  returns (uint256[] memory)
  {
    return BeachLibrary.walletOfOwner(wallet_, address(this));
  }

  // Function intended to be triggered by the DAO in case the Gateway or Network has an issue
  function updateBaseURI(string memory uri_) external onlyOwner {
    require(!_frozen, "B: Frozen");
    _baseURIPath = uri_;
  }

  /**
   * @dev Allows the owner to freeze the path so it can't be changed anymore once it has settled
   */
  function freezeMetadata() external onlyOwner {
    _frozen = true;
  }

  /**
   * @dev Gets the path after reveal. The image folder is too big so it had to be split in 2 folders at ID 1000
   * @param tokenId_ TokenId to retrieve the path for
   */
  function getRevealedPath(uint256 tokenId_) internal view returns (string memory) {
    return tokenId_ <= 1000 ? _revealedPath[0] : _revealedPath[1];
  }

  /**
   * @dev Builds the contract JSON from on-chain data to serve marketplaces
   */
  function contractURI() public view returns (string memory) {
    return BeachLibrary.buildContractURI(address(this));
  }

  /**
   * @dev Returns the metadata for a token Id
   * @param tokenId_ The tokenId to return the metadata for.
   */
  function tokenURI(uint256 tokenId_)
  public
  view
  override
  returns (string memory)
  {
    _exists(tokenId_);

    return BeachLibrary.buildTokenURI(
      tokenId_,
      beachName(tokenId_),
      BeachLibrary.getImagePath(tokenId_, _revealed, _baseURIPath, getRevealedPath(tokenId_), _placeholderURI, true),
      BeachLibrary.getImagePath(tokenId_, _revealed, _baseURIPath, getRevealedPath(tokenId_), _placeholderURI, false),
      _revealed ? BeachLibrary.dictToMetadata(tokenId_, _TRAITS, _DICT, _beachMetadata) : '[]');
  }

  /**
   * @dev Function mostly for UI / UX so anyone can know whether the mint is opened and block has been reached
   */
  function isMintLive() public view returns (bool) {
    return block.number > _mintBlock;
  }

  /**
   * @dev Mints one or more B34CH NFT up to the MAX per TX and MAX per Wallet.
   *      NOTE: During first phase of the mint (the first 137 NFTs), the MAX is over-ridden to 1.
   *      If you have been WaveListed, the right pricing will apply automatically.
   *      Call getMyPriceForNextMint() in order to know exactly how much you need to send.
   * @param count_ The amount of NFTs to mint at once
   * @param merkleProof_ The array of proofs needed to calculate your wallet all the way to the root to validate it
   */
  function gimmeBeaches(uint8 count_, bytes32[] calldata merkleProof_) external payable {
    require(block.number > _mintBlock, "B: Mint block not ready");
    require((count_ > 0 && count_ <= MAX_PER_TX) && (balanceOf(_msgSender()) + count_ <= MAX_PER_WALLET), "B: Too many beaches");
    require(_msgSender() == tx.origin, "B: No contracts");
    require((totalSupply() < 137 && balanceOf(_msgSender()) == 0 && count_ == 1) || totalSupply() >= 137, "B: Only 1 in 1st wave");

    uint mintPrice = getMyPriceForNextMint(merkleProof_);
    require(msg.value == mintPrice * count_, "B: Minting amount incorrect");

    for (uint8 i = 0; i < count_; i++) {
      _mintABeach(_msgSender());
    }
  }

  /**
   * @dev Function to validate of your wallet address is present within the merkle tree or if your balance of LobsterDAO
   *      NFT is positive.
   * @param merkleProof_ The array of proofs needed to calculate your wallet all the way to the root to validate it
   */
  function amIWaveListed(bytes32[] calldata merkleProof_) public view returns (bool) {
    bool isWaveList = merkleProof_.length > 0 ? MerkleProof.verify(merkleProof_, waveListMerkleRoot, keccak256(abi.encodePacked(_msgSender()))) : false;
    return resolveLobster(_msgSender()) >= 1 || isWaveList;
  }

  /**
   * @dev Function to enable the owner to rescue mints or giveaways if required. Not intended to be used.
   * @param to_ the address to mint to
   */
  function safeMint(address to_) public onlyOwner {
    _mintABeach(to_);
  }

  /**
   * @dev Internal function to enable the owner to rescue mints or giveaways if required. Not intended to be used.
   * @param to_ the address to mint to
   */
  function _mintABeach(address to_) internal {
    require(totalSupply() < MAX_SUPPLY, "B: max supply reached");
    _safeMint(to_, totalSupply() + 1);
  }

  /**
   * @dev Method to set the name of the NFT and update metadata accordingly so it's visible on OpenSea / on-chain.
   *      The method will make sure you are renaming tokens you own.
   *      The name needs to be unique, do not contain invalid characters (mostly just ASCII are allowed) and be short
   *      enough.
   * @param tokenId_ the token to rename
   * @param name_ the new name
   */
  function setName(uint tokenId_, string memory name_) external {
    require(ownerOf(tokenId_) == _msgSender(), "B: You do not own this token");
    require(BeachLibrary.validateName(name_), "B: Name is not valid");
    require(!nameExists(name_), "B: Name requested is already used");

    // The setName process is free until seafood exists
    if (_seafood != address(0x0)) {
      require(resolveSeafoodBalance(_msgSender()) > AMOUNT_NEEDED_FOR_NAME_CHANGE, "B: You do not have enough balance");
      // Burn $BEACH
      _burnSeafoodToken(AMOUNT_NEEDED_FOR_NAME_CHANGE);
    }

    _setName(tokenId_, name_);
  }

  /**
   * @dev Internal method to propagate the name change, focused on name changing (minus validations)
   * @param tokenId_ the token to rename
   * @param name_ the new name
   */
  function _setName(uint tokenId_, string memory name_) private {
    if (bytes(_beachNames[tokenId_]).length > 0) {
      _existingNames[_beachNames[tokenId_]] = false;
    }
    _beachNames[tokenId_] = name_;
    _existingNames[BeachLibrary.toLower(name_)] = true;
    emit NameChanged(tokenId_, name_);
  }

  /**
   * @dev Public method to find whether a name is unique or exists already
   * @param name_ the name top search for
   */
  function nameExists(string memory name_) public view returns (bool) {
    return _existingNames[BeachLibrary.toLower(name_)];
  }

  /**
   * @dev Helper function to return the name of a beach. It will default the name if the name has never been set,
   *      to save gas during mint.
   * @param tokenId_ The token ID to return the name of
   */
  function beachName(uint tokenId_) public view returns (string memory) {
    _exists(tokenId_);

    bool isEmpty = keccak256(abi.encodePacked(_beachNames[tokenId_])) == keccak256(abi.encodePacked("")) || keccak256(abi.encodePacked(_beachNames[tokenId_])) == keccak256(bytes(BeachLibrary.toString(tokenId_)));
    return string(abi.encodePacked("Beach ", isEmpty ? string(abi.encodePacked("#", BeachLibrary.toString(tokenId_))) : _beachNames[tokenId_]));
  }

  /**
   * @dev Internal helper function to return the balance of the $Seafood token
   * @param account_ The account to retrieve the balance of
   */
  function resolveSeafoodBalance(address account_) internal view returns (uint) {
    return IERC20(_seafood).balanceOf(account_);
  }

  /**
   * @dev Takes a high order amount (for example 10) and returns fully decimal'ed value (10 * 10 ** 18)
   * @param amount_ The amount to calculate for
   */
  function _toFullDecimals(uint amount_) private view returns (uint) {
    return amount_ * 10 ** ISeafood(_seafood).decimals();
  }

  /**
   * @dev Internal helper to burn seafood token to change name, if $seafood address has been set
   * @param amount_ The amount to burn, in high order (you want to burn 10 $SEAFOOD, amount_ will be 10)
   */
  function _burnSeafoodToken(uint amount_) private returns (bool) {
    require(resolveSeafoodBalance(_msgSender()) >= _toFullDecimals(amount_), "B: Not enough balance");
    IERC20Burnable(_seafood).burnFrom(_msgSender(), _toFullDecimals(amount_));
    return true;
  }

  // The following functions are overrides required by Solidity.
  function _burn(uint256 tokenId) internal override(ERC721, ERC721Royalty) {}

  function _beforeTokenTransfer(address from, address to, uint256 tokenId)
  internal
  override(ERC721, ERC721Enumerable)
  {
    super._beforeTokenTransfer(from, to, tokenId);
  }

  function supportsInterface(bytes4 interfaceId)
  public
  view
  override(ERC721Enumerable, ERC721Royalty)
  returns (bool)
  {
    return super.supportsInterface(interfaceId);
  }

  // Beach-specific functions

  /***************************
   *      Reveal / Mint      *
   ***************************/

  /**
   * @dev Sets the dictionary to build the metadata array from
   * @param dict_ The dictionary, basically a simple string array
   */
  function setDict(string[] memory dict_) public onlyOwner {
    require(!_frozen, "B: Frozen");
    _DICT = dict_;
  }

  /**
   * @dev This method is very important and sets the metadata that will be used later to build the TokenURI JSON for
   *      each and every NFT. It is index based off of the dictionary in order to save space and gas cost.
   *      This method effectively prepares for the reveal to happen. It is re-callable until metadata has been frozen
   *      to allow for fixing potential mistakes. The process has been tested and validated, but, we never know, and
   *      since metadata will be on-chain and virtually frozen, we better make sure.
   * @param range_ is the range of metadata currently being uploaded, since the whole thing needs to happen in X tx
   * @param metadata_ the metadata itself
   */
  function setMetadata(uint16[2] calldata range_, uint16[][] calldata metadata_) external onlyOwner {
    require(!_frozen && range_[0] > 0 && range_[0] < range_[1] && range_[1] <= 1338, "B: Range incorrect");
    for (uint i = 0; i < range_[1] - range_[0]; i++) {
      uint tokenId_ = i + range_[0];

      _beachMetadata[tokenId_][0] = metadata_[i][0];
      _beachMetadata[tokenId_][1] = metadata_[i][1];
      _beachMetadata[tokenId_][2] = metadata_[i][2];
      _beachMetadata[tokenId_][3] = metadata_[i][3];
      _beachMetadata[tokenId_][4] = metadata_[i][4];
      _beachMetadata[tokenId_][5] = metadata_[i][5];
      _beachMetadata[tokenId_][6] = metadata_[i][6];
      _beachMetadata[tokenId_][7] = metadata_[i][7];
    }
  }

  function revealState() public view returns (bool) {
    return _revealed;
  }

  /**
   * @dev Reveals the collection and sets the IPFS folders
   * @param paths_ An array of 2 IPFS paths to set the images for TokenURI JSON building
   */
  function reveal(string[] calldata paths_) external onlyOwner {
    require(!_revealed, "B: already revealed");
    _revealed = true;
    _revealedPath[0] = paths_[0];
    _revealedPath[1] = paths_[1];
    emit Revealed();
  }

  /**
   * @dev Internal helper to check the lobsters balance
   * @param target_ The target to check the balance for
   */
  function resolveLobster(address target_) public view returns (uint) {
    return IERC721(_lobster).balanceOf(target_);
  }

  /**
   * @dev A really important method that returns the price for the mint given current supply and whether you're
   *      WaveListed or not. It does *not* check whether you are *actually* WaveListed, this is just to get price ranges
   * @param isWaveList_ whether or not your are WaveListed. This method does not verify.
   */
  function getMintPrice(bool isWaveList_) public view returns (uint) {
    uint cId = totalSupply() + 1;
    uint zero = 0 ether;
    uint one = 1 ether;
    uint t1 = 0.037 ether;
    uint t2 = 0.073 ether;
    uint t3 = 0.1 ether;
    uint t4 = 0.1337 ether;

    if (cId <= 137) {
      return isWaveList_ ? zero : one;
    } else if (cId > 137 && cId <= 317) {
      return isWaveList_ ? t1 : t2;
    } else if (cId > 317 && cId <= 713) {
      return isWaveList_ ? t2 : t3;
    } else if (cId > 713) {
      return isWaveList_ ? t3 : t4;
    }
    return 1 ether;
  }

  /**
   * @dev This method is the one that will be used for Mint and UI / UX to tell you your mint price.
   *      It will check the provided merkleProof and your Lobster balance to confirm whether you're WaveListed or not.
   * @param merkleProof_ The array of proofs to confirm your address is in the Merkle Tree or not
   */
  function getMyPriceForNextMint(bytes32[] calldata merkleProof_) public view returns (uint) {
    return getMintPrice(amIWaveListed(merkleProof_));
  }

  /***************************
   *                         *
   *    ================     *
   *    Payment Splitter     *
   *    ================     *
   *                         *
   *  All the methods under  *
   *  exist to manage        *
   *  Payment Splitting      *
   *  during mint and after  *
   *                         *
   ***************************/

  function _addPayee(address account_, uint8 shares_) private {
    require(account_ != address(0), "PS: No 0");
    require(shares_ > 0, "PS: Shares = 0");
    require(_totalShares + shares_ < 256, "PS: Max shares");
    require(_payees.length < 256, "PS: Too many sh");

    // Flush outstanding balances to ensure that new payees don't mess things up
    _splitOutstandingBalance();

    // We're checking this one after the balance have been frozen in order to make sure we can't add an address twice
    require(_shares[account_] == 0 && _released[account_] == 0 && _balances[account_] == 0, "PS: Account exists");

    _payees.push(account_);
    _shares[account_] = shares_;
    _totalShares += shares_;

    emit PayeeAdded(account_, shares_);
  }

  function addPayee(address account_, uint8 shares_) external onlyOwner {
    _addPayee(account_, shares_);
  }

  function addPayeesBatch(address[] calldata accounts_, uint8[] calldata shares_) external onlyOwner {
    for (uint8 i = 0; i < accounts_.length; i++) {
      _addPayee(accounts_[i], shares_[i]);
    }
  }

  function _updatePayee(address account_, uint8 shares_) private {
    require(account_ != address(0), "PS: Address can't be 0");
    require(_released[account_] > 0 || _balances[account_] > 0, "PS: Account doesn't exist");
    require(_totalShares - _shares[account_] + shares_ < 256, "PS: Max shares reached");

    // Flush outstanding balances to ensure that new payees don't mess things up
    _splitOutstandingBalance();

    _totalShares -= _shares[account_];

    // Update shares
    _shares[account_] = shares_;

    // Adjust total shares
    _totalShares += shares_;

    emit PayeeUpdated(account_, shares_);
  }

  function updatePayee(address account_, uint8 shares_) external onlyOwner {
    _updatePayee(account_, shares_);
  }

  function updatePayeesBatch(address[] calldata accounts_, uint8[] calldata shares_) external onlyOwner {
    for (uint8 i = 0; i < accounts_.length; i++) {
      _updatePayee(accounts_[i], shares_[i]);
    }
  }

  function _split(uint amount) private {
    for (uint8 i = 0; i < _payees.length; i++) {
      // Only calculate if the shares are not 0 to avoid un-needed calculations
      if (_shares[_payees[i]] == 0) {
        delete _payees[i];
        continue;
      }

      // Last account gets the dust
      uint256 amountSplit = i < _payees.length - 1 ? amount * _shares[_payees[i]] / _totalShares : address(this).balance - (_totalSplit - _amountReleased);
      _balances[_payees[i]] += amountSplit;
      _totalSplit += amountSplit;
    }
  }

  function _splitOutstandingBalance() internal {
    uint outstandingBalance = address(this).balance - (_totalSplit - _amountReleased);
    _split(outstandingBalance);
  }

  function split() external onlyAccountOrOwner(_msgSender()) {
    _splitOutstandingBalance();
  }

  // dev: This is not supposed to be used. More like an emergency withdraw
  //      It assumes that owner() is the DAO address.
  function withdrawEthFunds() external onlyOwner {
    Address.sendValue(payable(owner()), address(this).balance);
  }

  function withdrawERC20Funds(address ERC20_) external onlyOwner {
    IERC20(ERC20_).transfer(owner(), IERC20(ERC20_).balanceOf(address(this)));
  }

  function release(address payable account) external onlyAccountOrOwner(account) {
    require(_balances[account] > 0, "PS: No balance");

    _splitOutstandingBalance();

    // Non-re-entrant pre-tx
    uint256 amountToSend = _balances[account];
    _balances[account] = 0;

    Address.sendValue(account, amountToSend);

    // Post-tx book-keeping
    _released[account] += amountToSend;
    _amountReleased += amountToSend;

    emit PaymentReleased(account, amountToSend);
  }

  function accountDetails(address account_) public view onlyAccountOrOwner(account_) returns (uint8, uint256, uint256, uint256) {
    return (_shares[account_], _released[account_], _balances[account_], _totalShares);
  }

  function balanceAvailable() public view returns (uint256) {
    return address(this).balance;
  }

  function totalReceived() public view returns (uint256) {
    return address(this).balance + _amountReleased;
  }

  modifier onlyAccountOrOwner(address account) {
    require(owner() == _msgSender() || account == _msgSender(), "Not the owner or account owner");
    _;
  }
}

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

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @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` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * 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 override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 3 of 23 : ERC721Royalty.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/ERC721Royalty.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "../../common/ERC2981.sol";
import "../../../utils/introspection/ERC165.sol";

/**
 * @dev Extension of ERC721 with the ERC2981 NFT Royalty Standard, a standardized way to retrieve royalty payment
 * information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC721Royalty is ERC2981, ERC721 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC2981) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {ERC721-_burn}. This override additionally clears the royalty information for the token.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);
        _resetTokenRoyalty(tokenId);
    }
}

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

pragma solidity ^0.8.0;

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

File 6 of 23 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC721.sol)

pragma solidity ^0.8.0;

import "../token/ERC721/IERC721.sol";

File 7 of 23 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

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

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

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 8 of 23 : BeachLibrary.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/interfaces/IERC721Enumerable.sol";

// Some code are originally from https://etherscan.io/address/0xbad6186e92002e312078b5a1dafd5ddf63d3f731#code
library BeachLibrary {
  string internal constant TABLE =
  "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

  function encode(bytes memory data) internal pure returns (string memory) {
    if (data.length == 0) return "";

    // load the table into memory
    string memory table = TABLE;

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

    // add some extra buffer at the end required for the writing
    string memory result = new string(encodedLen + 32);

    assembly {
    // set the actual output length
      mstore(result, encodedLen)

    // prepare the lookup table
      let tablePtr := add(table, 1)

    // input ptr
      let dataPtr := data
      let endPtr := add(dataPtr, mload(data))

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

    // run over the input, 3 bytes at a time
      for {

      } lt(dataPtr, endPtr) {

      } {
        dataPtr := add(dataPtr, 3)

      // read 3 bytes
        let input := mload(dataPtr)

      // write 4 characters
        mstore(
        resultPtr,
        shl(248, mload(add(tablePtr, and(shr(18, input), 0x3F))))
        )
        resultPtr := add(resultPtr, 1)
        mstore(
        resultPtr,
        shl(248, mload(add(tablePtr, and(shr(12, input), 0x3F))))
        )
        resultPtr := add(resultPtr, 1)
        mstore(
        resultPtr,
        shl(248, mload(add(tablePtr, and(shr(6, input), 0x3F))))
        )
        resultPtr := add(resultPtr, 1)
        mstore(
        resultPtr,
        shl(248, mload(add(tablePtr, and(input, 0x3F))))
        )
        resultPtr := add(resultPtr, 1)
      }

    // padding with '='
      switch mod(mload(data), 3)
      case 1 {
        mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
      }
      case 2 {
        mstore(sub(resultPtr, 1), shl(248, 0x3d))
      }
    }

    return result;
  }

  /**
   * @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);
  }

  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;
  }

  function validateName(string memory str) public pure returns (bool){
    bytes memory b = bytes(str);
    if (b.length < 1) return false;
    if (b.length > 25) return false;
    // Cannot be longer than 25 characters
    if (b[0] == 0x20) return false;
    // Leading space
    if (b[b.length - 1] == 0x20) return false;
    // Trailing space

    bytes1 lastChar = b[0];

    for (uint i; i < b.length; i++) {
      bytes1 char = b[i];

      if (char == 0x20 && lastChar == 0x20) return false;
      // Cannot contain continuous spaces

      if (
        !(char >= 0x30 && char <= 0x39) && //9-0
      !(char >= 0x41 && char <= 0x5A) && //A-Z
      !(char >= 0x61 && char <= 0x7A) && //a-z
      !(char == 0x20) //space
      )
        return false;

      lastChar = char;
    }

    return true;
  }

  /**
  * @dev Converts the string to lowercase
	 */
  function toLower(string memory str) internal pure returns (string memory){
    bytes memory bStr = bytes(str);
    bytes memory bLower = new bytes(bStr.length);
    for (uint i = 0; i < bStr.length; i++) {
      // Uppercase character
      if ((uint8(bStr[i]) >= 65) && (uint8(bStr[i]) <= 90)) {
        bLower[i] = bytes1(uint8(bStr[i]) + 32);
      } else {
        bLower[i] = bStr[i];
      }
    }
    return string(bLower);
  }

  /**
   * @dev Converts the dictionary into metadata and returns the Token URI JSON
   */
  function dictToMetadata(uint tokenId_, string[] memory TRAITS_, string[] memory DICT_, mapping(uint256 => uint16[8]) storage beachMetadata_)
  public
  view
  returns (string memory)
  {
    string memory metadataString;

    for (uint8 i = 0; i < beachMetadata_[tokenId_].length; i++) {
      metadataString = string(
        abi.encodePacked(
          metadataString,
          '{"trait_type":"',
          TRAITS_[i],
          '","value":"',
          DICT_[beachMetadata_[tokenId_][i]],
          '"}'
        )
      );

      if (i < beachMetadata_[tokenId_].length - 1)
        metadataString = string(abi.encodePacked(metadataString, ","));
    }

    return string(abi.encodePacked("[", metadataString, "]"));
  }

  function getImagePath(uint tokenId_, bool revealed_, string memory baseURIPath_, string memory revealedPath_, string memory placeHolderURI_, bool small_) public view returns (bytes memory) {
    return revealed_ ?
    abi.encodePacked('"image', small_ ? '' : '_large', '": "', baseURIPath_, revealedPath_, '/', toString(tokenId_), small_ ? '.png",' : '_large.png",') :
    abi.encodePacked('"image', small_ ? '' : '_large', '": "', baseURIPath_, placeHolderURI_, '",');
  }

  function buildTokenURI(
    uint tokenId_,
    string memory beachName_,
    bytes memory smallImagePath_,
    bytes memory bigImagePath_,
    string memory attributes_
  ) public view returns (string memory) {
    return
    string(
      abi.encodePacked(
        "data:application/json;base64,",
        encode(
          bytes(
            string(
              abi.encodePacked(
                abi.encodePacked('{"name": "', beachName_, '",'),
                '"description": "What\'s the ocean if not Mother Nature\'s generative art? B34CH is procedurally formed by code. The varieties of waves, particles, colors, textures, sizes combine to create digital representations of realistic and surreal beaches.", ',
                '"token_id": ', toString(tokenId_), ', ',
                smallImagePath_,
                bigImagePath_,
                '"attributes":',
                attributes_,
                "}"
              )
            )
          )
        )
      )
    );
  }

  function buildContractURI(address beach_) public view returns (string memory) {
    return
    string(
      abi.encodePacked(
        "data:application/json;base64,",
        encode(
          bytes(
            string(
              abi.encodePacked(
                abi.encodePacked(
                  '{',
                  '"name": "B34CH DAO",',
                  '"description": "What\'s the ocean if not Mother Nature\'s generative art? B34CH is procedurally formed by code. The varieties of waves, particles, colors, textures, sizes combine to create digital representations of realistic and surreal beaches.",',
                  '"image": "https://b34ch.page.link/opensea_cover",',
                  '"external_link": "https://b34ch.xyz",',
                  '"seller_fee_basis_points": 1000,',
                  '"fee_recipient": "', addressToString(beach_), '"',
                  '}'
                )
              )
            )
          )
        )
      )
    );
  }

  function walletOfOwner(address wallet_, address creed_)
  public
  view
  returns (uint256[] memory)
  {
    uint256 tokenCount = IERC721Enumerable(creed_).balanceOf(wallet_);

    uint256[] memory tokensId = new uint256[](tokenCount);
    for (uint256 i; i < tokenCount; i++) {
      tokensId[i] = IERC721Enumerable(creed_).tokenOfOwnerByIndex(wallet_, i);
    }
    return tokensId;
  }

  function addressToString(address account) public pure returns (string memory) {
    return bytesToString(abi.encodePacked(account));
  }

  function bytesToString(bytes memory data) public pure returns (string memory) {
    bytes memory alphabet = "0123456789abcdef";

    bytes memory str = new bytes(2 + data.length * 2);
    str[0] = "0";
    str[1] = "x";
    for (uint i = 0; i < data.length; i++) {
      str[2 + i * 2] = alphabet[uint(uint8(data[i] >> 4))];
      str[3 + i * 2] = alphabet[uint(uint8(data[i] & 0x0f))];
    }
    return string(str);
  }
}

File 9 of 23 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (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);

        _afterTokenTransfer(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);

        _afterTokenTransfer(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 from incorrect owner");
        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);

        _afterTokenTransfer(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 {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 10 of 23 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 14 of 23 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

File 16 of 23 : 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 17 of 23 : 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 23 : 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 23 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice)
        external
        view
        virtual
        override
        returns (address, uint256)
    {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `tokenId` must be already minted.
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 20 of 23 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be payed in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

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

pragma solidity ^0.8.0;

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

File 22 of 23 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 23 of 23 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../token/ERC721/extensions/IERC721Enumerable.sol";

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 2000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {
    "contracts/BeachLibrary.sol": {
      "BeachLibrary": "0x19d876a8595e77244c2bac13844a6eb220bd1ac6"
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"lobster_","type":"address"},{"internalType":"uint256","name":"blockToMint_","type":"uint256"},{"internalType":"string[]","name":"traits_","type":"string[]"}],"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":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"name","type":"string"}],"name":"NameChanged","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":"account","type":"address"},{"indexed":false,"internalType":"uint8","name":"shares","type":"uint8"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint8","name":"shares","type":"uint8"}],"name":"PayeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[],"name":"Revealed","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":"MAX_PER_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account_","type":"address"}],"name":"accountDetails","outputs":[{"internalType":"uint8","name":"","type":"uint8"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account_","type":"address"},{"internalType":"uint8","name":"shares_","type":"uint8"}],"name":"addPayee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts_","type":"address[]"},{"internalType":"uint8[]","name":"shares_","type":"uint8[]"}],"name":"addPayeesBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof_","type":"bytes32[]"}],"name":"amIWaveListed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"balanceAvailable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"beachName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freezeMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"isWaveList_","type":"bool"}],"name":"getMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof_","type":"bytes32[]"}],"name":"getMyPriceForNextMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"count_","type":"uint8"},{"internalType":"bytes32[]","name":"merkleProof_","type":"bytes32[]"}],"name":"gimmeBeaches","outputs":[],"stateMutability":"payable","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":"isMintLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name_","type":"string"}],"name":"nameExists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"provenance","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"target_","type":"address"}],"name":"resolveLobster","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string[]","name":"paths_","type":"string[]"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to_","type":"address"}],"name":"safeMint","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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"dict_","type":"string[]"}],"name":"setDict","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"waveListRoot_","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16[2]","name":"range_","type":"uint16[2]"},{"internalType":"uint16[][]","name":"metadata_","type":"uint16[][]"}],"name":"setMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"},{"internalType":"string","name":"name_","type":"string"}],"name":"setName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"seafood_","type":"address"}],"name":"setSeafood","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"split","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReceived","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"string","name":"uri_","type":"string"}],"name":"updateBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account_","type":"address"},{"internalType":"uint8","name":"shares_","type":"uint8"}],"name":"updatePayee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts_","type":"address[]"},{"internalType":"uint8[]","name":"shares_","type":"uint8[]"}],"name":"updatePayeesBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet_","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"waveListMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"ERC20_","type":"address"}],"name":"withdrawERC20Funds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawEthFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

600c805460ff60a01b1916905560c0604052601b60808190527f68747470733a2f2f75726c2e62333463682e78797a2f697066732f000000000060a09081526200004d91600d91906200037b565b506040518060600160405280602e81526020016200679f602e913980516200007e91600e916020909101906200037b565b5060408051606081018252600081830181815282528251602081810190945290815291810191909152620000b790600f9060026200040a565b506011805460ff191690556105396013556005601455600360155560408051606081018252818152906200675f60208301398051620000ff916016916020909101906200037b565b506032601f553480156200011257600080fd5b50604051620067cd380380620067cd8339810160408190526200013591620005ba565b604080518082018252600981526842333443482044414f60b81b602080830191825283518085019094526005845264084666886960db1b90840152815191929162000183916002916200037b565b508051620001999060039060208401906200037b565b505050620001b6620001b06200022060201b60201c565b62000224565b601780546001600160a01b0319166001600160a01b038516179055620001df306103e862000276565b620186a08211620001fc57620001f68243620006e8565b620001fe565b815b60195580516200021690601a9060208401906200045d565b5050505062000760565b3390565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b0382161115620002ea5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620003425760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401620002e1565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b82805462000389906200070d565b90600052602060002090601f016020900481019282620003ad5760008555620003f8565b82601f10620003c857805160ff1916838001178555620003f8565b82800160010185558215620003f8579182015b82811115620003f8578251825591602001919060010190620003db565b5062000406929150620004af565b5090565b82600281019282156200044f579160200282015b828111156200044f57825180516200043e9184916020909101906200037b565b50916020019190600101906200041e565b5062000406929150620004c6565b8280548282559060005260206000209081019282156200044f579160200282015b828111156200044f57825180516200049e9184916020909101906200037b565b50916020019190600101906200047e565b5b80821115620004065760008155600101620004b0565b8082111562000406576000620004dd8282620004e7565b50600101620004c6565b508054620004f5906200070d565b6000825580601f1062000506575050565b601f016020900490600052602060002090810190620005269190620004af565b50565b600082601f8301126200053a578081fd5b81516001600160401b038111156200055657620005566200074a565b60206200056c601f8301601f19168201620006b5565b828152858284870101111562000580578384fd5b835b838110156200059f57858101830151828201840152820162000582565b83811115620005b057848385840101525b5095945050505050565b600080600060608486031215620005cf578283fd5b83516001600160a01b0381168114620005e6578384fd5b60208581015160408701519295509350906001600160401b03808211156200060c578384fd5b818701915087601f83011262000620578384fd5b8151818111156200063557620006356200074a565b8060051b62000646858201620006b5565b8281528581019085870183870188018d101562000661578889fd5b8893505b84841015620006a3578051868111156200067d57898afd5b6200068d8e8a838b010162000529565b8452506001939093019291870191870162000665565b50809750505050505050509250925092565b604051601f8201601f191681016001600160401b0381118282101715620006e057620006e06200074a565b604052919050565b600082198211156200070857634e487b7160e01b81526011600452602481fd5b500190565b600181811c908216806200072257607f821691505b602082108114156200074457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b615fef80620007706000396000f3fe60806040526004361061036f5760003560e01c80637cb64759116101c6578063cb9dae2d116100f7578063f0c3c97611610095578063f45710bd1161006f578063f45710bd14610a16578063f765417614610a36578063fdfc7aae14610a4b578063fe55932a14610a6257600080fd5b8063f0c3c976146109c0578063f2fde38b146109e0578063f43a22dc14610a0057600080fd5b8063e5bac215116100d1578063e5bac21514610908578063e8a3d4851461091e578063e985e9c514610933578063ec8fd8001461097c57600080fd5b8063cb9dae2d146108b3578063cc637afe146108d3578063d111515d146108f357600080fd5b8063a3c2c46211610164578063b4358af01161013e578063b4358af014610833578063b88d4fde14610853578063c356620514610873578063c87b56dd1461089357600080fd5b8063a3c2c462146107de578063a56a9037146107f3578063b273e0361461081357600080fd5b80638da5cb5b116101a05780638da5cb5b1461076b578063931688cb1461078957806395d89b41146107a9578063a22cb465146107be57600080fd5b80637cb64759146107185780637da2d1f41461073857806383eb24e01461074b57600080fd5b80632f745c59116102a05780634e4acd911161023e57806367ad81ee1161021857806367ad81ee146106ae57806369fb0ede146106ce57806370a08231146106e3578063715018a61461070357600080fd5b80634e4acd911461065b5780634f6ccce71461066e5780636352211e1461068e57600080fd5b806342842e0e1161027a57806342842e0e146105ce578063438b6300146105ee57806346aa47eb1461061b57806348e8b8861461063b57600080fd5b80632f745c591461057857806332cb6b0c1461059857806340d097c3146105ae57600080fd5b80630f7309e81161030d57806319165587116102e757806319165587146104d95780632237d5ca146104f957806323b872dd146105195780632a55205a1461053957600080fd5b80630f7309e814610490578063131f5d05146104a557806318160ddd146104c457600080fd5b8063081812fc11610349578063081812fc146103f4578063095ea7b31461042c5780630be3d8641461044c5780630f2cdd6c1461046c57600080fd5b806301f0d0501461037b57806301ffc9a71461039d57806306fdde03146103d257600080fd5b3661037657005b600080fd5b34801561038757600080fd5b5061039b610396366004615542565b610a82565b005b3480156103a957600080fd5b506103bd6103b836600461566e565b61118f565b60405190151581526020015b60405180910390f35b3480156103de57600080fd5b506103e76111a0565b6040516103c99190615ab2565b34801561040057600080fd5b5061041461040f366004615656565b611232565b6040516001600160a01b0390911681526020016103c9565b34801561043857600080fd5b5061039b610447366004615390565b6112d8565b34801561045857600080fd5b5061039b610467366004615252565b61140a565b34801561047857600080fd5b5061048260145481565b6040519081526020016103c9565b34801561049c57600080fd5b506103e7611493565b3480156104b157600080fd5b50600c54600160a01b900460ff166103bd565b3480156104d057600080fd5b50600a54610482565b3480156104e557600080fd5b5061039b6104f4366004615252565b611521565b34801561050557600080fd5b506103bd610514366004615451565b6116ad565b34801561052557600080fd5b5061039b6105343660046152a6565b611763565b34801561054557600080fd5b5061055961055436600461579e565b6117ea565b604080516001600160a01b0390931683526020830191909152016103c9565b34801561058457600080fd5b50610482610593366004615390565b6118a7565b3480156105a457600080fd5b5061048260135481565b3480156105ba57600080fd5b5061039b6105c9366004615252565b61194f565b3480156105da57600080fd5b5061039b6105e93660046152a6565b6119b5565b3480156105fa57600080fd5b5061060e610609366004615252565b6119d0565b6040516103c99190615a6e565b34801561062757600080fd5b5061039b610636366004615451565b611a81565b34801561064757600080fd5b506103e7610656366004615656565b611c0e565b61039b6106693660046157f7565b611d9b565b34801561067a57600080fd5b50610482610689366004615656565b611fec565b34801561069a57600080fd5b506104146106a9366004615656565b61209e565b3480156106ba57600080fd5b5061039b6106c9366004615491565b612129565b3480156106da57600080fd5b5061039b6121ed565b3480156106ef57600080fd5b506104826106fe366004615252565b612264565b34801561070f57600080fd5b5061039b6122fe565b34801561072457600080fd5b5061039b610733366004615656565b612362565b34801561074457600080fd5b5047610482565b34801561075757600080fd5b5061039b6107663660046153e8565b6123c1565b34801561077757600080fd5b50600c546001600160a01b0316610414565b34801561079557600080fd5b5061039b6107a43660046156ec565b6124b3565b3480156107b557600080fd5b506103e7612573565b3480156107ca57600080fd5b5061039b6107d9366004615363565b612582565b3480156107ea57600080fd5b5061048261258d565b3480156107ff57600080fd5b5061048261080e366004615451565b6125a2565b34801561081f57600080fd5b5061039b61082e366004615252565b6125b8565b34801561083f57600080fd5b5061039b61084e3660046153bb565b612728565b34801561085f57600080fd5b5061039b61086e3660046152e6565b61278c565b34801561087f57600080fd5b5061048261088e36600461561e565b612814565b34801561089f57600080fd5b506103e76108ae366004615656565b612913565b3480156108bf57600080fd5b506104826108ce366004615252565b612c0e565b3480156108df57600080fd5b506103bd6108ee3660046156ec565b612c8d565b3480156108ff57600080fd5b5061039b612cc0565b34801561091457600080fd5b5061048260125481565b34801561092a57600080fd5b506103e7612d29565b34801561093f57600080fd5b506103bd61094e36600461526e565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561098857600080fd5b5061099c610997366004615252565b612dcb565b6040805160ff909516855260208501939093529183015260608201526080016103c9565b3480156109cc57600080fd5b5061039b6109db3660046153e8565b612e96565b3480156109ec57600080fd5b5061039b6109fb366004615252565b612f88565b348015610a0c57600080fd5b5061048260155481565b348015610a2257600080fd5b5061039b610a313660046153bb565b613067565b348015610a4257600080fd5b5061039b6130cb565b348015610a5757600080fd5b5060195443116103bd565b348015610a6e57600080fd5b5061039b610a7d366004615759565b613142565b600c546001600160a01b03163314610ae15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b60115460ff16158015610b0457506000610afe602085018561571f565b61ffff16115b8015610b325750610b1b604084016020850161571f565b61ffff16610b2c602085018561571f565b61ffff16105b8015610b53575061053a610b4c604085016020860161571f565b61ffff1611155b610b9f5760405162461bcd60e51b815260206004820152601260248201527f423a2052616e676520696e636f727265637400000000000000000000000000006044820152606401610ad8565b60005b610baf602085018561571f565b610bbf604086016020870161571f565b610bc99190615e3f565b61ffff16811015611189576000610be3602086018661571f565b610bf19061ffff1683615ce1565b9050838383818110610c1357634e487b7160e01b600052603260045260246000fd5b9050602002810190610c259190615bd7565b6000818110610c4457634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610c59919061571f565b6000828152601d6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661ffff92909216919091179055838383818110610cb857634e487b7160e01b600052603260045260246000fd5b9050602002810190610cca9190615bd7565b6001818110610ce957634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610cfe919061571f565b6000828152601d60205260409020805461ffff9290921662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffff909216919091179055838383818110610d6457634e487b7160e01b600052603260045260246000fd5b9050602002810190610d769190615bd7565b6002818110610d9557634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610daa919061571f565b6000828152601d60205260409020805461ffff92909216640100000000027fffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffffffff909216919091179055838383818110610e1257634e487b7160e01b600052603260045260246000fd5b9050602002810190610e249190615bd7565b6003818110610e4357634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610e58919061571f565b6000828152601d60205260409020805461ffff929092166601000000000000027fffffffffffffffffffffffffffffffffffffffffffffffff0000ffffffffffff909216919091179055838383818110610ec257634e487b7160e01b600052603260045260246000fd5b9050602002810190610ed49190615bd7565b6004818110610ef357634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610f08919061571f565b6000828152601d60205260409020805461ffff9290921668010000000000000000027fffffffffffffffffffffffffffffffffffffffffffff0000ffffffffffffffff909216919091179055838383818110610f7457634e487b7160e01b600052603260045260246000fd5b9050602002810190610f869190615bd7565b6005818110610fa557634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610fba919061571f565b6000828152601d60205260409020805461ffff929092166a0100000000000000000000027fffffffffffffffffffffffffffffffffffffffff0000ffffffffffffffffffff90921691909117905583838381811061102857634e487b7160e01b600052603260045260246000fd5b905060200281019061103a9190615bd7565b600681811061105957634e487b7160e01b600052603260045260246000fd5b905060200201602081019061106e919061571f565b6000828152601d60205260409020805461ffff929092166c01000000000000000000000000027fffffffffffffffffffffffffffffffffffff0000ffffffffffffffffffffffff9092169190911790558383838181106110de57634e487b7160e01b600052603260045260246000fd5b90506020028101906110f09190615bd7565b600781811061110f57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611124919061571f565b6000918252601d6020526040909120805461ffff929092166e010000000000000000000000000000027fffffffffffffffffffffffffffffffff0000ffffffffffffffffffffffffffff9092169190911790558061118181615ee0565b915050610ba2565b50505050565b600061119a826133b1565b92915050565b6060600280546111af90615ea5565b80601f01602080910402602001604051908101604052809291908181526020018280546111db90615ea5565b80156112285780601f106111fd57610100808354040283529160200191611228565b820191906000526020600020905b81548152906001019060200180831161120b57829003601f168201915b5050505050905090565b6000818152600460205260408120546001600160a01b03166112bc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610ad8565b506000908152600660205260409020546001600160a01b031690565b60006112e38261209e565b9050806001600160a01b0316836001600160a01b0316141561136d5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610ad8565b336001600160a01b03821614806113895750611389813361094e565b6113fb5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ad8565b61140583836133bc565b505050565b600c546001600160a01b031633146114645760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad8565b6018805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b601680546114a090615ea5565b80601f01602080910402602001604051908101604052809291908181526020018280546114cc90615ea5565b80156115195780601f106114ee57610100808354040283529160200191611519565b820191906000526020600020905b8154815290600101906020018083116114fc57829003601f168201915b505050505081565b600c5481906001600160a01b031633148061154457506001600160a01b03811633145b6115905760405162461bcd60e51b815260206004820152601e60248201527f4e6f7420746865206f776e6572206f72206163636f756e74206f776e657200006044820152606401610ad8565b6001600160a01b0382166000908152602260205260409020546115f55760405162461bcd60e51b815260206004820152600e60248201527f50533a204e6f2062616c616e63650000000000000000000000000000000000006044820152606401610ad8565b6115fd613437565b6001600160a01b03821660009081526022602052604081208054919055611624838261345e565b6001600160a01b0383166000908152602160205260408120805483929061164c908490615ce1565b9250508190555080602660008282546116659190615ce1565b90915550506040518181526001600160a01b038416907fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0569060200160405180910390a2505050565b600080826116bc576000611744565b611744848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506012546040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b166020820152909250603401905060405160208183030381529060405280519060200120613577565b9050600161175133612c0e565b10158061175b5750805b949350505050565b61176d338261358d565b6117df5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ad8565b611405838383613691565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff169282019290925282916118695750604080518082019091526000546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b60208101516000906127109061188d906bffffffffffffffffffffffff1687615e20565b6118979190615d1e565b91519350909150505b9250929050565b60006118b283612264565b82106119265760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610ad8565b506001600160a01b03919091166000908152600860209081526040808320938352929052205490565b600c546001600160a01b031633146119a95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad8565b6119b281613876565b50565b6114058383836040518060200160405280600081525061278c565b6040517f770b478a0000000000000000000000000000000000000000000000000000000081526001600160a01b03821660048201523060248201526060907319d876a8595e77244c2bac13844a6eb220bd1ac69063770b478a9060440160006040518083038186803b158015611a4557600080fd5b505af4158015611a59573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261119a9190810190615597565b600c546001600160a01b03163314611adb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad8565b600c54600160a01b900460ff1615611b355760405162461bcd60e51b815260206004820152601360248201527f423a20616c72656164792072657665616c6564000000000000000000000000006044820152606401610ad8565b600c80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b1790558181600081611b8257634e487b7160e01b600052603260045260246000fd5b9050602002810190611b949190615c1f565b611ba091600f91614fc5565b5081816001818110611bc257634e487b7160e01b600052603260045260246000fd5b9050602002810190611bd49190615c1f565b611be091601091614fc5565b506040517fe2a7169cedebe39671840370ae19ca4fc41be6191d4c77f174f189a4d8cd08c890600090a15050565b6000818152600460209081526040805183815280830180835281519020858552601c9093528184206060949392611c459201615939565b604051602081830303815290604052805190602001201480611ca85750611c6b836138e6565b80516020918201206000858152601c835260409081902090519192611c909201615939565b60405160208183030381529060405280519060200120145b905080611d4b576000838152601c602052604090208054611cc890615ea5565b80601f0160208091040260200160405190810160405280929190818152602001828054611cf490615ea5565b8015611d415780601f10611d1657610100808354040283529160200191611d41565b820191906000526020600020905b815481529060010190602001808311611d2457829003601f168201915b5050505050611d74565b611d54836138e6565b604051602001611d6491906159ed565b6040516020818303038152906040525b604051602001611d8491906159a8565b604051602081830303815290604052915050919050565b6019544311611dec5760405162461bcd60e51b815260206004820152601760248201527f423a204d696e7420626c6f636b206e6f742072656164790000000000000000006044820152606401610ad8565b60008360ff16118015611e0457506015548360ff1611155b8015611e28575060145460ff8416611e1b33612264565b611e259190615ce1565b11155b611e745760405162461bcd60e51b815260206004820152601360248201527f423a20546f6f206d616e792062656163686573000000000000000000000000006044820152606401610ad8565b333214611ec35760405162461bcd60e51b815260206004820152600f60248201527f423a204e6f20636f6e74726163747300000000000000000000000000000000006044820152606401610ad8565b6089611ece600a5490565b108015611ee15750611edf33612264565b155b8015611ef057508260ff166001145b80611f0457506089611f01600a5490565b10155b611f505760405162461bcd60e51b815260206004820152601560248201527f423a204f6e6c79203120696e20317374207761766500000000000000000000006044820152606401610ad8565b6000611f5c83836125a2565b9050611f6b60ff851682615e20565b3414611fb95760405162461bcd60e51b815260206004820152601b60248201527f423a204d696e74696e6720616d6f756e7420696e636f727265637400000000006044820152606401610ad8565b60005b8460ff168160ff161015611fe557611fd333613876565b80611fdd81615efb565b915050611fbc565b5050505050565b6000611ff7600a5490565b821061206b5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610ad8565b600a828154811061208c57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600460205260408120546001600160a01b03168061119a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610ad8565b600c546001600160a01b031633146121835760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad8565b60115460ff16156121d65760405162461bcd60e51b815260206004820152600960248201527f423a2046726f7a656e00000000000000000000000000000000000000000000006044820152606401610ad8565b80516121e990601b906020840190615049565b5050565b600c546001600160a01b031633146122475760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad8565b61226261225c600c546001600160a01b031690565b4761345e565b565b60006001600160a01b0382166122e25760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610ad8565b506001600160a01b031660009081526005602052604090205490565b600c546001600160a01b031633146123585760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad8565b6122626000613a34565b600c546001600160a01b031633146123bc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad8565b601255565b600c546001600160a01b0316331461241b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad8565b60005b60ff8116841115611fe5576124a185858360ff1681811061244f57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906124649190615252565b84848460ff1681811061248757634e487b7160e01b600052603260045260246000fd5b905060200201602081019061249c91906157bf565b613a93565b806124ab81615efb565b91505061241e565b600c546001600160a01b0316331461250d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad8565b60115460ff16156125605760405162461bcd60e51b815260206004820152600960248201527f423a2046726f7a656e00000000000000000000000000000000000000000000006044820152606401610ad8565b80516121e990600d9060208401906150a2565b6060600380546111af90615ea5565b6121e9338383613cbc565b60006026544761259d9190615ce1565b905090565b60006125b161088e84846116ad565b9392505050565b600c546001600160a01b031633146126125760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad8565b806001600160a01b031663a9059cbb612633600c546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b15801561267257600080fd5b505afa158015612686573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126aa9190615741565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b1580156126f057600080fd5b505af1158015612704573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121e9919061563a565b600c546001600160a01b031633146127825760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad8565b6121e98282613a93565b612796338361358d565b6128085760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ad8565b61118984848484613d8b565b600080612820600a5490565b61282b906001615ce1565b90506000670de0b6b3a76400006683734dd0b08000670103591cfc9a800067016345785d8a00006701daff710e7840006089871161287d578861286e5784612870565b855b9998505050505050505050565b60898711801561288f575061013d8711155b156128ac578861289f5782612870565b5091979650505050505050565b61013d871180156128bf57506102c98711155b156128dc57886128cf5781612870565b5090979650505050505050565b6102c98711156128fd57886128f15780612870565b50979650505050505050565b50670de0b6b3a764000098975050505050505050565b6000819052600460205260607319d876a8595e77244c2bac13844a6eb220bd1ac66362d9c8dd8361294381611c0e565b7319d876a8595e77244c2bac13844a6eb220bd1ac6635e1060aa87600c60149054906101000a900460ff16600d6129798b613e14565b600e60016040518763ffffffff1660e01b815260040161299e96959493929190615b02565b60006040518083038186803b1580156129b657600080fd5b505af41580156129ca573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526129f291908101906156a6565b7319d876a8595e77244c2bac13844a6eb220bd1ac6635e1060aa88600c60149054906101000a900460ff16600d612a288c613e14565b600e60006040518763ffffffff1660e01b8152600401612a4d96959493929190615b02565b60006040518083038186803b158015612a6557600080fd5b505af4158015612a79573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612aa191908101906156a6565b600c54600160a01b900460ff16612aed576040518060400160405280600281526020017f5b5d000000000000000000000000000000000000000000000000000000000000815250612b9a565b6040517f71ff45f50000000000000000000000000000000000000000000000000000000081527319d876a8595e77244c2bac13844a6eb220bd1ac6906371ff45f590612b46908b90601a90601b90601d90600401615ac5565b60006040518083038186803b158015612b5e57600080fd5b505af4158015612b72573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612b9a91908101906156a6565b6040518663ffffffff1660e01b8152600401612bba959493929190615b78565b60006040518083038186803b158015612bd257600080fd5b505af4158015612be6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261119a91908101906156a6565b6017546040516370a0823160e01b81526001600160a01b03838116600483015260009216906370a08231906024015b60206040518083038186803b158015612c5557600080fd5b505afa158015612c69573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119a9190615741565b6000601e612c9a83613eba565b604051612ca7919061591d565b9081526040519081900360200190205460ff1692915050565b600c546001600160a01b03163314612d1a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad8565b6011805460ff19166001179055565b6040517fa55bc02d0000000000000000000000000000000000000000000000000000000081523060048201526060907319d876a8595e77244c2bac13844a6eb220bd1ac69063a55bc02d9060240160006040518083038186803b158015612d8f57600080fd5b505af4158015612da3573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261259d91908101906156a6565b600080808084336001600160a01b0316612ded600c546001600160a01b031690565b6001600160a01b03161480612e0a57506001600160a01b03811633145b612e565760405162461bcd60e51b815260206004820152601e60248201527f4e6f7420746865206f776e6572206f72206163636f756e74206f776e657200006044820152606401610ad8565b505050506001600160a01b0391909116600090815260208080526040808320546021835281842054602290935292205460245460ff909316949193509190565b600c546001600160a01b03163314612ef05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad8565b60005b60ff8116841115611fe557612f7685858360ff16818110612f2457634e487b7160e01b600052603260045260246000fd5b9050602002016020810190612f399190615252565b84848460ff16818110612f5c57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190612f7191906157bf565b6140af565b80612f8081615efb565b915050612ef3565b600c546001600160a01b03163314612fe25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad8565b6001600160a01b03811661305e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610ad8565b6119b281613a34565b600c546001600160a01b031633146130c15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad8565b6121e982826140af565b600c5433906001600160a01b03168114806130ee57506001600160a01b03811633145b61313a5760405162461bcd60e51b815260206004820152601e60248201527f4e6f7420746865206f776e6572206f72206163636f756e74206f776e657200006044820152606401610ad8565b6119b2613437565b3361314c8361209e565b6001600160a01b0316146131a25760405162461bcd60e51b815260206004820152601c60248201527f423a20596f7520646f206e6f74206f776e207468697320746f6b656e000000006044820152606401610ad8565b6040517f9ffdb65a0000000000000000000000000000000000000000000000000000000081527319d876a8595e77244c2bac13844a6eb220bd1ac690639ffdb65a906131f2908490600401615ab2565b60206040518083038186803b15801561320a57600080fd5b505af415801561321e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613242919061563a565b61328e5760405162461bcd60e51b815260206004820152601460248201527f423a204e616d65206973206e6f742076616c69640000000000000000000000006044820152606401610ad8565b61329781612c8d565b1561330a5760405162461bcd60e51b815260206004820152602160248201527f423a204e616d652072657175657374656420697320616c72656164792075736560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610ad8565b6018546001600160a01b0316156133a757601f5461332733614389565b1161339a5760405162461bcd60e51b815260206004820152602160248201527f423a20596f7520646f206e6f74206861766520656e6f7567682062616c616e6360448201527f65000000000000000000000000000000000000000000000000000000000000006064820152608401610ad8565b6133a5601f546143bc565b505b6121e9828261449f565b600061119a82614594565b6000818152600660205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03841690811790915581906133fe8261209e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006026546025546134499190615e62565b6134539047615e62565b90506119b2816145d2565b804710156134ae5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610ad8565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146134fb576040519150601f19603f3d011682016040523d82523d6000602084013e613500565b606091505b50509050806114055760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610ad8565b60008261358485846147b7565b14949350505050565b6000818152600460205260408120546001600160a01b03166136175760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610ad8565b60006136228361209e565b9050806001600160a01b0316846001600160a01b0316148061365d5750836001600160a01b031661365284611232565b6001600160a01b0316145b8061175b57506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff1661175b565b826001600160a01b03166136a48261209e565b6001600160a01b0316146137205760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610ad8565b6001600160a01b03821661379b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610ad8565b6137a6838383614831565b6137b16000826133bc565b6001600160a01b03831660009081526005602052604081208054600192906137da908490615e62565b90915550506001600160a01b0382166000908152600560205260408120805460019290613808908490615ce1565b9091555050600081815260046020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b601354600a54106138c95760405162461bcd60e51b815260206004820152601560248201527f423a206d617820737570706c79207265616368656400000000000000000000006044820152606401610ad8565b6119b2816138d6600a5490565b6138e1906001615ce1565b61483c565b60608161392657505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613950578061393a81615ee0565b91506139499050600a83615d1e565b915061392a565b60008167ffffffffffffffff81111561397957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156139a3576020820181803683370190505b5090505b841561175b576139b8600183615e62565b91506139c5600a86615f1b565b6139d0906030615ce1565b60f81b8183815181106139f357634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613a2d600a86615d1e565b94506139a7565b600c80546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216613ae95760405162461bcd60e51b815260206004820152601660248201527f50533a20416464726573732063616e27742062652030000000000000000000006044820152606401610ad8565b6001600160a01b038216600090815260216020526040902054151580613b2657506001600160a01b03821660009081526022602052604090205415155b613b725760405162461bcd60e51b815260206004820152601960248201527f50533a204163636f756e7420646f65736e2774206578697374000000000000006044820152606401610ad8565b6001600160a01b03821660009081526020805260409020546024546101009160ff80851692613ba49290911690615e62565b613bae9190615ce1565b10613bfb5760405162461bcd60e51b815260206004820152601660248201527f50533a204d6178207368617265732072656163686564000000000000000000006044820152606401610ad8565b613c03613437565b6001600160a01b03821660009081526020805260408120546024805460ff909216929091613c32908490615e62565b90915550506001600160a01b03821660009081526020805260408120805460ff191660ff84169081179091556024805491929091613c71908490615ce1565b909155505060405160ff821681526001600160a01b038316907f5f998239a4d0ee8b16783458ee1604640810746ee97b8356fe97578fe7d714dc906020015b60405180910390a25050565b816001600160a01b0316836001600160a01b03161415613d1e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ad8565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613d96848484613691565b613da284848484614856565b6111895760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ad8565b60606103e8821115613e27576010613e2a565b600f5b8054613e3590615ea5565b80601f0160208091040260200160405190810160405280929190818152602001828054613e6190615ea5565b8015613eae5780601f10613e8357610100808354040283529160200191613eae565b820191906000526020600020905b815481529060010190602001808311613e9157829003601f168201915b50505050509050919050565b606060008290506000815167ffffffffffffffff811115613eeb57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613f15576020820181803683370190505b50905060005b82518110156140a7576041838281518110613f4657634e487b7160e01b600052603260045260246000fd5b016020015160f81c10801590613f845750605a838281518110613f7957634e487b7160e01b600052603260045260246000fd5b016020015160f81c11155b1561401a57828181518110613fa957634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b60f81c6020613fc39190615cf9565b60f81b828281518110613fe657634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350614095565b82818151811061403a57634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b82828151811061406557634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053505b8061409f81615ee0565b915050613f1b565b509392505050565b6001600160a01b0382166141055760405162461bcd60e51b815260206004820152600860248201527f50533a204e6f20300000000000000000000000000000000000000000000000006044820152606401610ad8565b60008160ff16116141585760405162461bcd60e51b815260206004820152600e60248201527f50533a20536861726573203d20300000000000000000000000000000000000006044820152606401610ad8565b6101008160ff1660245461416c9190615ce1565b106141b95760405162461bcd60e51b815260206004820152600e60248201527f50533a204d6178207368617265730000000000000000000000000000000000006044820152606401610ad8565b6023546101001161420c5760405162461bcd60e51b815260206004820152600f60248201527f50533a20546f6f206d616e7920736800000000000000000000000000000000006044820152606401610ad8565b614214613437565b6001600160a01b038216600090815260208052604090205460ff1615801561425257506001600160a01b038216600090815260216020526040902054155b801561427457506001600160a01b038216600090815260226020526040902054155b6142c05760405162461bcd60e51b815260206004820152601260248201527f50533a204163636f756e742065786973747300000000000000000000000000006044820152606401610ad8565b60238054600181019091557fd57b2b5166478fd4318d2acc6cc2c704584312bdd8781b32d5d06abda57f423001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03841690811790915560009081526020805260408120805460ff191660ff84169081179091556024805491929091614346908490615ce1565b909155505060405160ff821681526001600160a01b038316907f5f223307fd3119f35f517f3018dd8206d719ce2c8c465dbfffeffc177b863c4490602001613cb0565b6018546040516370a0823160e01b81526001600160a01b03838116600483015260009216906370a0823190602401612c3d565b60006143c7826149eb565b6143d033614389565b101561441e5760405162461bcd60e51b815260206004820152601560248201527f423a204e6f7420656e6f7567682062616c616e636500000000000000000000006044820152606401610ad8565b6018546001600160a01b03166379cc679033614439856149eb565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561447f57600080fd5b505af1158015614493573d6000803e3d6000fd5b50600195945050505050565b6000828152601c6020526040812080546144b890615ea5565b905011156144fe576000828152601c60205260408082209051601e916144dd91615939565b908152604051908190036020019020805491151560ff199092169190911790555b6000828152601c60209081526040909120825161451d928401906150a2565b506001601e61452b83613eba565b604051614538919061591d565b908152604051908190036020018120805492151560ff19909316929092179091557f8edfa912e70e283a8ef6d6f52cd1faef9690ff989eff2f11a134e8478ba7b28b906145889084908490615b5f565b60405180910390a15050565b60006001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000148061119a575061119a82614a96565b60005b60235460ff821610156121e9576020600060238360ff168154811061460a57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316835282019290925260400190205460ff166146855760238160ff168154811061465a57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001805473ffffffffffffffffffffffffffffffffffffffff191690556147a5565b60235460009061469790600190615e62565b8260ff16106146bf576026546025546146b09190615e62565b6146ba9047615e62565b614726565b6024546020600060238560ff16815481106146ea57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316835282019290925260400190205461471c9060ff1685615e20565b6147269190615d1e565b9050806022600060238560ff168154811061475157634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316835282019290925260400181208054909190614785908490615ce1565b92505081905550806025600082825461479e9190615ce1565b9091555050505b806147af81615efb565b9150506145d5565b600081815b84518110156140a75760008582815181106147e757634e487b7160e01b600052603260045260246000fd5b6020026020010151905080831161480d576000838152602082905260409020925061481e565b600081815260208490526040902092505b508061482981615ee0565b9150506147bc565b611405838383614b08565b6121e9828260405180602001604052806000815250614bc0565b60006001600160a01b0384163b156149e0576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906148b3903390899088908890600401615a32565b602060405180830381600087803b1580156148cd57600080fd5b505af19250505080156148fd575060408051601f3d908101601f191682019092526148fa9181019061568a565b60015b6149ad573d80801561492b576040519150601f19603f3d011682016040523d82523d6000602084013e614930565b606091505b5080516149a55760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ad8565b805181602001fd5b6001600160e01b0319167f150b7a020000000000000000000000000000000000000000000000000000000014905061175b565b506001949350505050565b601854604080517f313ce56700000000000000000000000000000000000000000000000000000000815290516000926001600160a01b03169163313ce567916004808301926020929190829003018186803b158015614a4957600080fd5b505afa158015614a5d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614a8191906157db565b614a8c90600a615d75565b61119a9083615e20565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480614af957506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061119a575061119a82614c49565b6001600160a01b038316614b6357614b5e81600a80546000838152600b60205260408120829055600182018355919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80155565b614b86565b816001600160a01b0316836001600160a01b031614614b8657614b868382614cb0565b6001600160a01b038216614b9d5761140581614d4d565b826001600160a01b0316826001600160a01b031614611405576114058282614e26565b614bca8383614e6a565b614bd76000848484614856565b6114055760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ad8565b60006001600160e01b031982167f2a55205a00000000000000000000000000000000000000000000000000000000148061119a57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b031983161461119a565b60006001614cbd84612264565b614cc79190615e62565b600083815260096020526040902054909150808214614d1a576001600160a01b03841660009081526008602090815260408083208584528252808320548484528184208190558352600990915290208190555b5060009182526009602090815260408084208490556001600160a01b039094168352600881528383209183525290812055565b600a54600090614d5f90600190615e62565b6000838152600b6020526040812054600a8054939450909284908110614d9557634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600a8381548110614dc457634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600b9091526040808220849055858252812055600a805480614e0a57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000614e3183612264565b6001600160a01b039093166000908152600860209081526040808320868452825280832085905593825260099052919091209190915550565b6001600160a01b038216614ec05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ad8565b6000818152600460205260409020546001600160a01b031615614f255760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ad8565b614f3160008383614831565b6001600160a01b0382166000908152600560205260408120805460019290614f5a908490615ce1565b9091555050600081815260046020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054614fd190615ea5565b90600052602060002090601f016020900481019282614ff35760008555615039565b82601f1061500c5782800160ff19823516178555615039565b82800160010185558215615039579182015b8281111561503957823582559160200191906001019061501e565b50615045929150615116565b5090565b828054828255906000526020600020908101928215615096579160200282015b8281111561509657825180516150869184916020909101906150a2565b5091602001919060010190615069565b5061504592915061512b565b8280546150ae90615ea5565b90600052602060002090601f0160209004810192826150d05760008555615039565b82601f106150e957805160ff1916838001178555615039565b82800160010185558215615039579182015b828111156150395782518255916020019190600101906150fb565b5b808211156150455760008155600101615117565b8082111561504557600061513f8282615148565b5060010161512b565b50805461515490615ea5565b6000825580601f10615164575050565b601f0160209004906000526020600020908101906119b29190615116565b600061519561519084615cb9565b615c64565b90508281528383830111156151a957600080fd5b828260208301376000602084830101529392505050565b60006151ce61519084615cb9565b90508281528383830111156151e257600080fd5b6125b1836020830184615e79565b60008083601f840112615201578182fd5b50813567ffffffffffffffff811115615218578182fd5b6020830191508360208260051b85010111156118a057600080fd5b600082601f830112615243578081fd5b6125b183833560208501615182565b600060208284031215615263578081fd5b81356125b181615f71565b60008060408385031215615280578081fd5b823561528b81615f71565b9150602083013561529b81615f71565b809150509250929050565b6000806000606084860312156152ba578081fd5b83356152c581615f71565b925060208401356152d581615f71565b929592945050506040919091013590565b600080600080608085870312156152fb578182fd5b843561530681615f71565b9350602085013561531681615f71565b925060408501359150606085013567ffffffffffffffff811115615338578182fd5b8501601f81018713615348578182fd5b61535787823560208401615182565b91505092959194509250565b60008060408385031215615375578182fd5b823561538081615f71565b9150602083013561529b81615f86565b600080604083850312156153a2578182fd5b82356153ad81615f71565b946020939093013593505050565b600080604083850312156153cd578182fd5b82356153d881615f71565b9150602083013561529b81615faa565b600080600080604085870312156153fd578182fd5b843567ffffffffffffffff80821115615414578384fd5b615420888389016151f0565b90965094506020870135915080821115615438578384fd5b50615445878288016151f0565b95989497509550505050565b60008060208385031215615463578182fd5b823567ffffffffffffffff811115615479578283fd5b615485858286016151f0565b90969095509350505050565b600060208083850312156154a3578182fd5b823567ffffffffffffffff808211156154ba578384fd5b818501915085601f8301126154cd578384fd5b81356154db61519082615c95565b80828252858201915085850189878560051b88010111156154fa578788fd5b875b848110156155335781358681111561551257898afd5b6155208c8a838b0101615233565b85525092870192908701906001016154fc565b50909998505050505050505050565b600080600060608486031215615556578081fd5b6040840185811115615566578182fd5b8493503567ffffffffffffffff81111561557e578182fd5b61558a868287016151f0565b9497909650939450505050565b600060208083850312156155a9578182fd5b825167ffffffffffffffff8111156155bf578283fd5b8301601f810185136155cf578283fd5b80516155dd61519082615c95565b80828252848201915084840188868560051b87010111156155fc578687fd5b8694505b838510156128f1578051835260019490940193918501918501615600565b60006020828403121561562f578081fd5b81356125b181615f86565b60006020828403121561564b578081fd5b81516125b181615f86565b600060208284031215615667578081fd5b5035919050565b60006020828403121561567f578081fd5b81356125b181615f94565b60006020828403121561569b578081fd5b81516125b181615f94565b6000602082840312156156b7578081fd5b815167ffffffffffffffff8111156156cd578182fd5b8201601f810184136156dd578182fd5b61175b848251602084016151c0565b6000602082840312156156fd578081fd5b813567ffffffffffffffff811115615713578182fd5b61175b84828501615233565b600060208284031215615730578081fd5b813561ffff811681146125b1578182fd5b600060208284031215615752578081fd5b5051919050565b6000806040838503121561576b578182fd5b82359150602083013567ffffffffffffffff811115615788578182fd5b61579485828601615233565b9150509250929050565b600080604083850312156157b0578182fd5b50508035926020909101359150565b6000602082840312156157d0578081fd5b81356125b181615faa565b6000602082840312156157ec578081fd5b81516125b181615faa565b60008060006040848603121561580b578081fd5b833561581681615faa565b9250602084013567ffffffffffffffff81111561557e578182fd5b600081548084526020808501808196508360051b81019150858552828520855b8581101561289f57828403895261586884836158a6565b98850198935060019182019101615851565b60008151808452615892816020860160208601615e79565b601f01601f19169290920160200192915050565b600081546158b381615ea5565b8085526020600183811680156158d057600181146158e457615912565b60ff19851683890152604088019550615912565b866000528260002060005b8581101561590a5781548a82018601529083019084016158ef565b890184019650505b505050505092915050565b6000825161592f818460208701615e79565b9190910192915050565b600080835461594781615ea5565b6001828116801561595f57600181146159705761599c565b60ff1984168752828701945061599c565b8786526020808720875b858110156159935781548a82015290840190820161597a565b50505082870194505b50929695505050505050565b7f42656163682000000000000000000000000000000000000000000000000000008152600082516159e0816006850160208701615e79565b9190910160060192915050565b7f2300000000000000000000000000000000000000000000000000000000000000815260008251615a25816001850160208701615e79565b9190910160010192915050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152615a64608083018461587a565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015615aa657835183529284019291840191600101615a8a565b50909695505050505050565b6020815260006125b1602083018461587a565b848152608060208201526000615ade6080830186615831565b8281036040840152615af08186615831565b91505082606083015295945050505050565b868152851515602082015260c060408201526000615b2360c08301876158a6565b8281036060840152615b35818761587a565b90508281036080840152615b4981866158a6565b91505082151560a0830152979650505050505050565b82815260406020820152600061175b604083018461587a565b85815260a060208201526000615b9160a083018761587a565b8281036040840152615ba3818761587a565b90508281036060840152615bb7818661587a565b90508281036080840152615bcb818561587a565b98975050505050505050565b6000808335601e19843603018112615bed578283fd5b83018035915067ffffffffffffffff821115615c07578283fd5b6020019150600581901b36038213156118a057600080fd5b6000808335601e19843603018112615c35578283fd5b83018035915067ffffffffffffffff821115615c4f578283fd5b6020019150368190038213156118a057600080fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715615c8d57615c8d615f5b565b604052919050565b600067ffffffffffffffff821115615caf57615caf615f5b565b5060051b60200190565b600067ffffffffffffffff821115615cd357615cd3615f5b565b50601f01601f191660200190565b60008219821115615cf457615cf4615f2f565b500190565b600060ff821660ff84168060ff03821115615d1657615d16615f2f565b019392505050565b600082615d2d57615d2d615f45565b500490565b600181815b80851115615d6d578160001904821115615d5357615d53615f2f565b80851615615d6057918102915b93841c9390800290615d37565b509250929050565b60006125b160ff841683600082615d8e5750600161119a565b81615d9b5750600061119a565b8160018114615db15760028114615dbb57615dd7565b600191505061119a565b60ff841115615dcc57615dcc615f2f565b50506001821b61119a565b5060208310610133831016604e8410600b8410161715615dfa575081810a61119a565b615e048383615d32565b8060001904821115615e1857615e18615f2f565b029392505050565b6000816000190483118215151615615e3a57615e3a615f2f565b500290565b600061ffff83811690831681811015615e5a57615e5a615f2f565b039392505050565b600082821015615e7457615e74615f2f565b500390565b60005b83811015615e94578181015183820152602001615e7c565b838111156111895750506000910152565b600181811c90821680615eb957607f821691505b60208210811415615eda57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415615ef457615ef4615f2f565b5060010190565b600060ff821660ff811415615f1257615f12615f2f565b60010192915050565b600082615f2a57615f2a615f45565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146119b257600080fd5b80151581146119b257600080fd5b6001600160e01b0319811681146119b257600080fd5b60ff811681146119b257600080fdfea2646970667358221220440d4224bfbfd1415591d6161c49bb20830e53a38c3b2dfbbe7bcfc02e0a2aa664736f6c6343000804003365333631373866326461343031383935353137366465376663373066613166646330646330363739663336643432663630643561366361666539363931626131516d623465664e5447466646654d6d594e6f4d574b7768506b76516b66654e4c6f346b675a716937324a414c3653000000000000000000000000026224a2940bfe258d0dbe947919b62fe321f0420000000000000000000000000000000000000000000000000000000000df36a80000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000240000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000002c0000000000000000000000000000000000000000000000000000000000000000453414e440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055741544552000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000557415645530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009535041524b4c494e47000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084c4f434154494f4e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054652414d450000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007464541545552450000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045349474e00000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061036f5760003560e01c80637cb64759116101c6578063cb9dae2d116100f7578063f0c3c97611610095578063f45710bd1161006f578063f45710bd14610a16578063f765417614610a36578063fdfc7aae14610a4b578063fe55932a14610a6257600080fd5b8063f0c3c976146109c0578063f2fde38b146109e0578063f43a22dc14610a0057600080fd5b8063e5bac215116100d1578063e5bac21514610908578063e8a3d4851461091e578063e985e9c514610933578063ec8fd8001461097c57600080fd5b8063cb9dae2d146108b3578063cc637afe146108d3578063d111515d146108f357600080fd5b8063a3c2c46211610164578063b4358af01161013e578063b4358af014610833578063b88d4fde14610853578063c356620514610873578063c87b56dd1461089357600080fd5b8063a3c2c462146107de578063a56a9037146107f3578063b273e0361461081357600080fd5b80638da5cb5b116101a05780638da5cb5b1461076b578063931688cb1461078957806395d89b41146107a9578063a22cb465146107be57600080fd5b80637cb64759146107185780637da2d1f41461073857806383eb24e01461074b57600080fd5b80632f745c59116102a05780634e4acd911161023e57806367ad81ee1161021857806367ad81ee146106ae57806369fb0ede146106ce57806370a08231146106e3578063715018a61461070357600080fd5b80634e4acd911461065b5780634f6ccce71461066e5780636352211e1461068e57600080fd5b806342842e0e1161027a57806342842e0e146105ce578063438b6300146105ee57806346aa47eb1461061b57806348e8b8861461063b57600080fd5b80632f745c591461057857806332cb6b0c1461059857806340d097c3146105ae57600080fd5b80630f7309e81161030d57806319165587116102e757806319165587146104d95780632237d5ca146104f957806323b872dd146105195780632a55205a1461053957600080fd5b80630f7309e814610490578063131f5d05146104a557806318160ddd146104c457600080fd5b8063081812fc11610349578063081812fc146103f4578063095ea7b31461042c5780630be3d8641461044c5780630f2cdd6c1461046c57600080fd5b806301f0d0501461037b57806301ffc9a71461039d57806306fdde03146103d257600080fd5b3661037657005b600080fd5b34801561038757600080fd5b5061039b610396366004615542565b610a82565b005b3480156103a957600080fd5b506103bd6103b836600461566e565b61118f565b60405190151581526020015b60405180910390f35b3480156103de57600080fd5b506103e76111a0565b6040516103c99190615ab2565b34801561040057600080fd5b5061041461040f366004615656565b611232565b6040516001600160a01b0390911681526020016103c9565b34801561043857600080fd5b5061039b610447366004615390565b6112d8565b34801561045857600080fd5b5061039b610467366004615252565b61140a565b34801561047857600080fd5b5061048260145481565b6040519081526020016103c9565b34801561049c57600080fd5b506103e7611493565b3480156104b157600080fd5b50600c54600160a01b900460ff166103bd565b3480156104d057600080fd5b50600a54610482565b3480156104e557600080fd5b5061039b6104f4366004615252565b611521565b34801561050557600080fd5b506103bd610514366004615451565b6116ad565b34801561052557600080fd5b5061039b6105343660046152a6565b611763565b34801561054557600080fd5b5061055961055436600461579e565b6117ea565b604080516001600160a01b0390931683526020830191909152016103c9565b34801561058457600080fd5b50610482610593366004615390565b6118a7565b3480156105a457600080fd5b5061048260135481565b3480156105ba57600080fd5b5061039b6105c9366004615252565b61194f565b3480156105da57600080fd5b5061039b6105e93660046152a6565b6119b5565b3480156105fa57600080fd5b5061060e610609366004615252565b6119d0565b6040516103c99190615a6e565b34801561062757600080fd5b5061039b610636366004615451565b611a81565b34801561064757600080fd5b506103e7610656366004615656565b611c0e565b61039b6106693660046157f7565b611d9b565b34801561067a57600080fd5b50610482610689366004615656565b611fec565b34801561069a57600080fd5b506104146106a9366004615656565b61209e565b3480156106ba57600080fd5b5061039b6106c9366004615491565b612129565b3480156106da57600080fd5b5061039b6121ed565b3480156106ef57600080fd5b506104826106fe366004615252565b612264565b34801561070f57600080fd5b5061039b6122fe565b34801561072457600080fd5b5061039b610733366004615656565b612362565b34801561074457600080fd5b5047610482565b34801561075757600080fd5b5061039b6107663660046153e8565b6123c1565b34801561077757600080fd5b50600c546001600160a01b0316610414565b34801561079557600080fd5b5061039b6107a43660046156ec565b6124b3565b3480156107b557600080fd5b506103e7612573565b3480156107ca57600080fd5b5061039b6107d9366004615363565b612582565b3480156107ea57600080fd5b5061048261258d565b3480156107ff57600080fd5b5061048261080e366004615451565b6125a2565b34801561081f57600080fd5b5061039b61082e366004615252565b6125b8565b34801561083f57600080fd5b5061039b61084e3660046153bb565b612728565b34801561085f57600080fd5b5061039b61086e3660046152e6565b61278c565b34801561087f57600080fd5b5061048261088e36600461561e565b612814565b34801561089f57600080fd5b506103e76108ae366004615656565b612913565b3480156108bf57600080fd5b506104826108ce366004615252565b612c0e565b3480156108df57600080fd5b506103bd6108ee3660046156ec565b612c8d565b3480156108ff57600080fd5b5061039b612cc0565b34801561091457600080fd5b5061048260125481565b34801561092a57600080fd5b506103e7612d29565b34801561093f57600080fd5b506103bd61094e36600461526e565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561098857600080fd5b5061099c610997366004615252565b612dcb565b6040805160ff909516855260208501939093529183015260608201526080016103c9565b3480156109cc57600080fd5b5061039b6109db3660046153e8565b612e96565b3480156109ec57600080fd5b5061039b6109fb366004615252565b612f88565b348015610a0c57600080fd5b5061048260155481565b348015610a2257600080fd5b5061039b610a313660046153bb565b613067565b348015610a4257600080fd5b5061039b6130cb565b348015610a5757600080fd5b5060195443116103bd565b348015610a6e57600080fd5b5061039b610a7d366004615759565b613142565b600c546001600160a01b03163314610ae15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b60115460ff16158015610b0457506000610afe602085018561571f565b61ffff16115b8015610b325750610b1b604084016020850161571f565b61ffff16610b2c602085018561571f565b61ffff16105b8015610b53575061053a610b4c604085016020860161571f565b61ffff1611155b610b9f5760405162461bcd60e51b815260206004820152601260248201527f423a2052616e676520696e636f727265637400000000000000000000000000006044820152606401610ad8565b60005b610baf602085018561571f565b610bbf604086016020870161571f565b610bc99190615e3f565b61ffff16811015611189576000610be3602086018661571f565b610bf19061ffff1683615ce1565b9050838383818110610c1357634e487b7160e01b600052603260045260246000fd5b9050602002810190610c259190615bd7565b6000818110610c4457634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610c59919061571f565b6000828152601d6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661ffff92909216919091179055838383818110610cb857634e487b7160e01b600052603260045260246000fd5b9050602002810190610cca9190615bd7565b6001818110610ce957634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610cfe919061571f565b6000828152601d60205260409020805461ffff9290921662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffff909216919091179055838383818110610d6457634e487b7160e01b600052603260045260246000fd5b9050602002810190610d769190615bd7565b6002818110610d9557634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610daa919061571f565b6000828152601d60205260409020805461ffff92909216640100000000027fffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffffffff909216919091179055838383818110610e1257634e487b7160e01b600052603260045260246000fd5b9050602002810190610e249190615bd7565b6003818110610e4357634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610e58919061571f565b6000828152601d60205260409020805461ffff929092166601000000000000027fffffffffffffffffffffffffffffffffffffffffffffffff0000ffffffffffff909216919091179055838383818110610ec257634e487b7160e01b600052603260045260246000fd5b9050602002810190610ed49190615bd7565b6004818110610ef357634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610f08919061571f565b6000828152601d60205260409020805461ffff9290921668010000000000000000027fffffffffffffffffffffffffffffffffffffffffffff0000ffffffffffffffff909216919091179055838383818110610f7457634e487b7160e01b600052603260045260246000fd5b9050602002810190610f869190615bd7565b6005818110610fa557634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610fba919061571f565b6000828152601d60205260409020805461ffff929092166a0100000000000000000000027fffffffffffffffffffffffffffffffffffffffff0000ffffffffffffffffffff90921691909117905583838381811061102857634e487b7160e01b600052603260045260246000fd5b905060200281019061103a9190615bd7565b600681811061105957634e487b7160e01b600052603260045260246000fd5b905060200201602081019061106e919061571f565b6000828152601d60205260409020805461ffff929092166c01000000000000000000000000027fffffffffffffffffffffffffffffffffffff0000ffffffffffffffffffffffff9092169190911790558383838181106110de57634e487b7160e01b600052603260045260246000fd5b90506020028101906110f09190615bd7565b600781811061110f57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611124919061571f565b6000918252601d6020526040909120805461ffff929092166e010000000000000000000000000000027fffffffffffffffffffffffffffffffff0000ffffffffffffffffffffffffffff9092169190911790558061118181615ee0565b915050610ba2565b50505050565b600061119a826133b1565b92915050565b6060600280546111af90615ea5565b80601f01602080910402602001604051908101604052809291908181526020018280546111db90615ea5565b80156112285780601f106111fd57610100808354040283529160200191611228565b820191906000526020600020905b81548152906001019060200180831161120b57829003601f168201915b5050505050905090565b6000818152600460205260408120546001600160a01b03166112bc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610ad8565b506000908152600660205260409020546001600160a01b031690565b60006112e38261209e565b9050806001600160a01b0316836001600160a01b0316141561136d5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610ad8565b336001600160a01b03821614806113895750611389813361094e565b6113fb5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ad8565b61140583836133bc565b505050565b600c546001600160a01b031633146114645760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad8565b6018805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b601680546114a090615ea5565b80601f01602080910402602001604051908101604052809291908181526020018280546114cc90615ea5565b80156115195780601f106114ee57610100808354040283529160200191611519565b820191906000526020600020905b8154815290600101906020018083116114fc57829003601f168201915b505050505081565b600c5481906001600160a01b031633148061154457506001600160a01b03811633145b6115905760405162461bcd60e51b815260206004820152601e60248201527f4e6f7420746865206f776e6572206f72206163636f756e74206f776e657200006044820152606401610ad8565b6001600160a01b0382166000908152602260205260409020546115f55760405162461bcd60e51b815260206004820152600e60248201527f50533a204e6f2062616c616e63650000000000000000000000000000000000006044820152606401610ad8565b6115fd613437565b6001600160a01b03821660009081526022602052604081208054919055611624838261345e565b6001600160a01b0383166000908152602160205260408120805483929061164c908490615ce1565b9250508190555080602660008282546116659190615ce1565b90915550506040518181526001600160a01b038416907fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0569060200160405180910390a2505050565b600080826116bc576000611744565b611744848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506012546040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b166020820152909250603401905060405160208183030381529060405280519060200120613577565b9050600161175133612c0e565b10158061175b5750805b949350505050565b61176d338261358d565b6117df5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ad8565b611405838383613691565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff169282019290925282916118695750604080518082019091526000546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b60208101516000906127109061188d906bffffffffffffffffffffffff1687615e20565b6118979190615d1e565b91519350909150505b9250929050565b60006118b283612264565b82106119265760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610ad8565b506001600160a01b03919091166000908152600860209081526040808320938352929052205490565b600c546001600160a01b031633146119a95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad8565b6119b281613876565b50565b6114058383836040518060200160405280600081525061278c565b6040517f770b478a0000000000000000000000000000000000000000000000000000000081526001600160a01b03821660048201523060248201526060907319d876a8595e77244c2bac13844a6eb220bd1ac69063770b478a9060440160006040518083038186803b158015611a4557600080fd5b505af4158015611a59573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261119a9190810190615597565b600c546001600160a01b03163314611adb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad8565b600c54600160a01b900460ff1615611b355760405162461bcd60e51b815260206004820152601360248201527f423a20616c72656164792072657665616c6564000000000000000000000000006044820152606401610ad8565b600c80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b1790558181600081611b8257634e487b7160e01b600052603260045260246000fd5b9050602002810190611b949190615c1f565b611ba091600f91614fc5565b5081816001818110611bc257634e487b7160e01b600052603260045260246000fd5b9050602002810190611bd49190615c1f565b611be091601091614fc5565b506040517fe2a7169cedebe39671840370ae19ca4fc41be6191d4c77f174f189a4d8cd08c890600090a15050565b6000818152600460209081526040805183815280830180835281519020858552601c9093528184206060949392611c459201615939565b604051602081830303815290604052805190602001201480611ca85750611c6b836138e6565b80516020918201206000858152601c835260409081902090519192611c909201615939565b60405160208183030381529060405280519060200120145b905080611d4b576000838152601c602052604090208054611cc890615ea5565b80601f0160208091040260200160405190810160405280929190818152602001828054611cf490615ea5565b8015611d415780601f10611d1657610100808354040283529160200191611d41565b820191906000526020600020905b815481529060010190602001808311611d2457829003601f168201915b5050505050611d74565b611d54836138e6565b604051602001611d6491906159ed565b6040516020818303038152906040525b604051602001611d8491906159a8565b604051602081830303815290604052915050919050565b6019544311611dec5760405162461bcd60e51b815260206004820152601760248201527f423a204d696e7420626c6f636b206e6f742072656164790000000000000000006044820152606401610ad8565b60008360ff16118015611e0457506015548360ff1611155b8015611e28575060145460ff8416611e1b33612264565b611e259190615ce1565b11155b611e745760405162461bcd60e51b815260206004820152601360248201527f423a20546f6f206d616e792062656163686573000000000000000000000000006044820152606401610ad8565b333214611ec35760405162461bcd60e51b815260206004820152600f60248201527f423a204e6f20636f6e74726163747300000000000000000000000000000000006044820152606401610ad8565b6089611ece600a5490565b108015611ee15750611edf33612264565b155b8015611ef057508260ff166001145b80611f0457506089611f01600a5490565b10155b611f505760405162461bcd60e51b815260206004820152601560248201527f423a204f6e6c79203120696e20317374207761766500000000000000000000006044820152606401610ad8565b6000611f5c83836125a2565b9050611f6b60ff851682615e20565b3414611fb95760405162461bcd60e51b815260206004820152601b60248201527f423a204d696e74696e6720616d6f756e7420696e636f727265637400000000006044820152606401610ad8565b60005b8460ff168160ff161015611fe557611fd333613876565b80611fdd81615efb565b915050611fbc565b5050505050565b6000611ff7600a5490565b821061206b5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610ad8565b600a828154811061208c57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600460205260408120546001600160a01b03168061119a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610ad8565b600c546001600160a01b031633146121835760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad8565b60115460ff16156121d65760405162461bcd60e51b815260206004820152600960248201527f423a2046726f7a656e00000000000000000000000000000000000000000000006044820152606401610ad8565b80516121e990601b906020840190615049565b5050565b600c546001600160a01b031633146122475760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad8565b61226261225c600c546001600160a01b031690565b4761345e565b565b60006001600160a01b0382166122e25760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610ad8565b506001600160a01b031660009081526005602052604090205490565b600c546001600160a01b031633146123585760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad8565b6122626000613a34565b600c546001600160a01b031633146123bc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad8565b601255565b600c546001600160a01b0316331461241b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad8565b60005b60ff8116841115611fe5576124a185858360ff1681811061244f57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906124649190615252565b84848460ff1681811061248757634e487b7160e01b600052603260045260246000fd5b905060200201602081019061249c91906157bf565b613a93565b806124ab81615efb565b91505061241e565b600c546001600160a01b0316331461250d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad8565b60115460ff16156125605760405162461bcd60e51b815260206004820152600960248201527f423a2046726f7a656e00000000000000000000000000000000000000000000006044820152606401610ad8565b80516121e990600d9060208401906150a2565b6060600380546111af90615ea5565b6121e9338383613cbc565b60006026544761259d9190615ce1565b905090565b60006125b161088e84846116ad565b9392505050565b600c546001600160a01b031633146126125760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad8565b806001600160a01b031663a9059cbb612633600c546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b15801561267257600080fd5b505afa158015612686573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126aa9190615741565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b1580156126f057600080fd5b505af1158015612704573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121e9919061563a565b600c546001600160a01b031633146127825760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad8565b6121e98282613a93565b612796338361358d565b6128085760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ad8565b61118984848484613d8b565b600080612820600a5490565b61282b906001615ce1565b90506000670de0b6b3a76400006683734dd0b08000670103591cfc9a800067016345785d8a00006701daff710e7840006089871161287d578861286e5784612870565b855b9998505050505050505050565b60898711801561288f575061013d8711155b156128ac578861289f5782612870565b5091979650505050505050565b61013d871180156128bf57506102c98711155b156128dc57886128cf5781612870565b5090979650505050505050565b6102c98711156128fd57886128f15780612870565b50979650505050505050565b50670de0b6b3a764000098975050505050505050565b6000819052600460205260607319d876a8595e77244c2bac13844a6eb220bd1ac66362d9c8dd8361294381611c0e565b7319d876a8595e77244c2bac13844a6eb220bd1ac6635e1060aa87600c60149054906101000a900460ff16600d6129798b613e14565b600e60016040518763ffffffff1660e01b815260040161299e96959493929190615b02565b60006040518083038186803b1580156129b657600080fd5b505af41580156129ca573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526129f291908101906156a6565b7319d876a8595e77244c2bac13844a6eb220bd1ac6635e1060aa88600c60149054906101000a900460ff16600d612a288c613e14565b600e60006040518763ffffffff1660e01b8152600401612a4d96959493929190615b02565b60006040518083038186803b158015612a6557600080fd5b505af4158015612a79573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612aa191908101906156a6565b600c54600160a01b900460ff16612aed576040518060400160405280600281526020017f5b5d000000000000000000000000000000000000000000000000000000000000815250612b9a565b6040517f71ff45f50000000000000000000000000000000000000000000000000000000081527319d876a8595e77244c2bac13844a6eb220bd1ac6906371ff45f590612b46908b90601a90601b90601d90600401615ac5565b60006040518083038186803b158015612b5e57600080fd5b505af4158015612b72573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612b9a91908101906156a6565b6040518663ffffffff1660e01b8152600401612bba959493929190615b78565b60006040518083038186803b158015612bd257600080fd5b505af4158015612be6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261119a91908101906156a6565b6017546040516370a0823160e01b81526001600160a01b03838116600483015260009216906370a08231906024015b60206040518083038186803b158015612c5557600080fd5b505afa158015612c69573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119a9190615741565b6000601e612c9a83613eba565b604051612ca7919061591d565b9081526040519081900360200190205460ff1692915050565b600c546001600160a01b03163314612d1a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad8565b6011805460ff19166001179055565b6040517fa55bc02d0000000000000000000000000000000000000000000000000000000081523060048201526060907319d876a8595e77244c2bac13844a6eb220bd1ac69063a55bc02d9060240160006040518083038186803b158015612d8f57600080fd5b505af4158015612da3573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261259d91908101906156a6565b600080808084336001600160a01b0316612ded600c546001600160a01b031690565b6001600160a01b03161480612e0a57506001600160a01b03811633145b612e565760405162461bcd60e51b815260206004820152601e60248201527f4e6f7420746865206f776e6572206f72206163636f756e74206f776e657200006044820152606401610ad8565b505050506001600160a01b0391909116600090815260208080526040808320546021835281842054602290935292205460245460ff909316949193509190565b600c546001600160a01b03163314612ef05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad8565b60005b60ff8116841115611fe557612f7685858360ff16818110612f2457634e487b7160e01b600052603260045260246000fd5b9050602002016020810190612f399190615252565b84848460ff16818110612f5c57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190612f7191906157bf565b6140af565b80612f8081615efb565b915050612ef3565b600c546001600160a01b03163314612fe25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad8565b6001600160a01b03811661305e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610ad8565b6119b281613a34565b600c546001600160a01b031633146130c15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ad8565b6121e982826140af565b600c5433906001600160a01b03168114806130ee57506001600160a01b03811633145b61313a5760405162461bcd60e51b815260206004820152601e60248201527f4e6f7420746865206f776e6572206f72206163636f756e74206f776e657200006044820152606401610ad8565b6119b2613437565b3361314c8361209e565b6001600160a01b0316146131a25760405162461bcd60e51b815260206004820152601c60248201527f423a20596f7520646f206e6f74206f776e207468697320746f6b656e000000006044820152606401610ad8565b6040517f9ffdb65a0000000000000000000000000000000000000000000000000000000081527319d876a8595e77244c2bac13844a6eb220bd1ac690639ffdb65a906131f2908490600401615ab2565b60206040518083038186803b15801561320a57600080fd5b505af415801561321e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613242919061563a565b61328e5760405162461bcd60e51b815260206004820152601460248201527f423a204e616d65206973206e6f742076616c69640000000000000000000000006044820152606401610ad8565b61329781612c8d565b1561330a5760405162461bcd60e51b815260206004820152602160248201527f423a204e616d652072657175657374656420697320616c72656164792075736560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610ad8565b6018546001600160a01b0316156133a757601f5461332733614389565b1161339a5760405162461bcd60e51b815260206004820152602160248201527f423a20596f7520646f206e6f74206861766520656e6f7567682062616c616e6360448201527f65000000000000000000000000000000000000000000000000000000000000006064820152608401610ad8565b6133a5601f546143bc565b505b6121e9828261449f565b600061119a82614594565b6000818152600660205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03841690811790915581906133fe8261209e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006026546025546134499190615e62565b6134539047615e62565b90506119b2816145d2565b804710156134ae5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610ad8565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146134fb576040519150601f19603f3d011682016040523d82523d6000602084013e613500565b606091505b50509050806114055760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610ad8565b60008261358485846147b7565b14949350505050565b6000818152600460205260408120546001600160a01b03166136175760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610ad8565b60006136228361209e565b9050806001600160a01b0316846001600160a01b0316148061365d5750836001600160a01b031661365284611232565b6001600160a01b0316145b8061175b57506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff1661175b565b826001600160a01b03166136a48261209e565b6001600160a01b0316146137205760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610ad8565b6001600160a01b03821661379b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610ad8565b6137a6838383614831565b6137b16000826133bc565b6001600160a01b03831660009081526005602052604081208054600192906137da908490615e62565b90915550506001600160a01b0382166000908152600560205260408120805460019290613808908490615ce1565b9091555050600081815260046020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b601354600a54106138c95760405162461bcd60e51b815260206004820152601560248201527f423a206d617820737570706c79207265616368656400000000000000000000006044820152606401610ad8565b6119b2816138d6600a5490565b6138e1906001615ce1565b61483c565b60608161392657505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613950578061393a81615ee0565b91506139499050600a83615d1e565b915061392a565b60008167ffffffffffffffff81111561397957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156139a3576020820181803683370190505b5090505b841561175b576139b8600183615e62565b91506139c5600a86615f1b565b6139d0906030615ce1565b60f81b8183815181106139f357634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613a2d600a86615d1e565b94506139a7565b600c80546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216613ae95760405162461bcd60e51b815260206004820152601660248201527f50533a20416464726573732063616e27742062652030000000000000000000006044820152606401610ad8565b6001600160a01b038216600090815260216020526040902054151580613b2657506001600160a01b03821660009081526022602052604090205415155b613b725760405162461bcd60e51b815260206004820152601960248201527f50533a204163636f756e7420646f65736e2774206578697374000000000000006044820152606401610ad8565b6001600160a01b03821660009081526020805260409020546024546101009160ff80851692613ba49290911690615e62565b613bae9190615ce1565b10613bfb5760405162461bcd60e51b815260206004820152601660248201527f50533a204d6178207368617265732072656163686564000000000000000000006044820152606401610ad8565b613c03613437565b6001600160a01b03821660009081526020805260408120546024805460ff909216929091613c32908490615e62565b90915550506001600160a01b03821660009081526020805260408120805460ff191660ff84169081179091556024805491929091613c71908490615ce1565b909155505060405160ff821681526001600160a01b038316907f5f998239a4d0ee8b16783458ee1604640810746ee97b8356fe97578fe7d714dc906020015b60405180910390a25050565b816001600160a01b0316836001600160a01b03161415613d1e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ad8565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613d96848484613691565b613da284848484614856565b6111895760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ad8565b60606103e8821115613e27576010613e2a565b600f5b8054613e3590615ea5565b80601f0160208091040260200160405190810160405280929190818152602001828054613e6190615ea5565b8015613eae5780601f10613e8357610100808354040283529160200191613eae565b820191906000526020600020905b815481529060010190602001808311613e9157829003601f168201915b50505050509050919050565b606060008290506000815167ffffffffffffffff811115613eeb57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613f15576020820181803683370190505b50905060005b82518110156140a7576041838281518110613f4657634e487b7160e01b600052603260045260246000fd5b016020015160f81c10801590613f845750605a838281518110613f7957634e487b7160e01b600052603260045260246000fd5b016020015160f81c11155b1561401a57828181518110613fa957634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b60f81c6020613fc39190615cf9565b60f81b828281518110613fe657634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350614095565b82818151811061403a57634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b82828151811061406557634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053505b8061409f81615ee0565b915050613f1b565b509392505050565b6001600160a01b0382166141055760405162461bcd60e51b815260206004820152600860248201527f50533a204e6f20300000000000000000000000000000000000000000000000006044820152606401610ad8565b60008160ff16116141585760405162461bcd60e51b815260206004820152600e60248201527f50533a20536861726573203d20300000000000000000000000000000000000006044820152606401610ad8565b6101008160ff1660245461416c9190615ce1565b106141b95760405162461bcd60e51b815260206004820152600e60248201527f50533a204d6178207368617265730000000000000000000000000000000000006044820152606401610ad8565b6023546101001161420c5760405162461bcd60e51b815260206004820152600f60248201527f50533a20546f6f206d616e7920736800000000000000000000000000000000006044820152606401610ad8565b614214613437565b6001600160a01b038216600090815260208052604090205460ff1615801561425257506001600160a01b038216600090815260216020526040902054155b801561427457506001600160a01b038216600090815260226020526040902054155b6142c05760405162461bcd60e51b815260206004820152601260248201527f50533a204163636f756e742065786973747300000000000000000000000000006044820152606401610ad8565b60238054600181019091557fd57b2b5166478fd4318d2acc6cc2c704584312bdd8781b32d5d06abda57f423001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03841690811790915560009081526020805260408120805460ff191660ff84169081179091556024805491929091614346908490615ce1565b909155505060405160ff821681526001600160a01b038316907f5f223307fd3119f35f517f3018dd8206d719ce2c8c465dbfffeffc177b863c4490602001613cb0565b6018546040516370a0823160e01b81526001600160a01b03838116600483015260009216906370a0823190602401612c3d565b60006143c7826149eb565b6143d033614389565b101561441e5760405162461bcd60e51b815260206004820152601560248201527f423a204e6f7420656e6f7567682062616c616e636500000000000000000000006044820152606401610ad8565b6018546001600160a01b03166379cc679033614439856149eb565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561447f57600080fd5b505af1158015614493573d6000803e3d6000fd5b50600195945050505050565b6000828152601c6020526040812080546144b890615ea5565b905011156144fe576000828152601c60205260408082209051601e916144dd91615939565b908152604051908190036020019020805491151560ff199092169190911790555b6000828152601c60209081526040909120825161451d928401906150a2565b506001601e61452b83613eba565b604051614538919061591d565b908152604051908190036020018120805492151560ff19909316929092179091557f8edfa912e70e283a8ef6d6f52cd1faef9690ff989eff2f11a134e8478ba7b28b906145889084908490615b5f565b60405180910390a15050565b60006001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000148061119a575061119a82614a96565b60005b60235460ff821610156121e9576020600060238360ff168154811061460a57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316835282019290925260400190205460ff166146855760238160ff168154811061465a57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001805473ffffffffffffffffffffffffffffffffffffffff191690556147a5565b60235460009061469790600190615e62565b8260ff16106146bf576026546025546146b09190615e62565b6146ba9047615e62565b614726565b6024546020600060238560ff16815481106146ea57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316835282019290925260400190205461471c9060ff1685615e20565b6147269190615d1e565b9050806022600060238560ff168154811061475157634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316835282019290925260400181208054909190614785908490615ce1565b92505081905550806025600082825461479e9190615ce1565b9091555050505b806147af81615efb565b9150506145d5565b600081815b84518110156140a75760008582815181106147e757634e487b7160e01b600052603260045260246000fd5b6020026020010151905080831161480d576000838152602082905260409020925061481e565b600081815260208490526040902092505b508061482981615ee0565b9150506147bc565b611405838383614b08565b6121e9828260405180602001604052806000815250614bc0565b60006001600160a01b0384163b156149e0576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906148b3903390899088908890600401615a32565b602060405180830381600087803b1580156148cd57600080fd5b505af19250505080156148fd575060408051601f3d908101601f191682019092526148fa9181019061568a565b60015b6149ad573d80801561492b576040519150601f19603f3d011682016040523d82523d6000602084013e614930565b606091505b5080516149a55760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ad8565b805181602001fd5b6001600160e01b0319167f150b7a020000000000000000000000000000000000000000000000000000000014905061175b565b506001949350505050565b601854604080517f313ce56700000000000000000000000000000000000000000000000000000000815290516000926001600160a01b03169163313ce567916004808301926020929190829003018186803b158015614a4957600080fd5b505afa158015614a5d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614a8191906157db565b614a8c90600a615d75565b61119a9083615e20565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480614af957506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061119a575061119a82614c49565b6001600160a01b038316614b6357614b5e81600a80546000838152600b60205260408120829055600182018355919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80155565b614b86565b816001600160a01b0316836001600160a01b031614614b8657614b868382614cb0565b6001600160a01b038216614b9d5761140581614d4d565b826001600160a01b0316826001600160a01b031614611405576114058282614e26565b614bca8383614e6a565b614bd76000848484614856565b6114055760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ad8565b60006001600160e01b031982167f2a55205a00000000000000000000000000000000000000000000000000000000148061119a57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b031983161461119a565b60006001614cbd84612264565b614cc79190615e62565b600083815260096020526040902054909150808214614d1a576001600160a01b03841660009081526008602090815260408083208584528252808320548484528184208190558352600990915290208190555b5060009182526009602090815260408084208490556001600160a01b039094168352600881528383209183525290812055565b600a54600090614d5f90600190615e62565b6000838152600b6020526040812054600a8054939450909284908110614d9557634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600a8381548110614dc457634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600b9091526040808220849055858252812055600a805480614e0a57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000614e3183612264565b6001600160a01b039093166000908152600860209081526040808320868452825280832085905593825260099052919091209190915550565b6001600160a01b038216614ec05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ad8565b6000818152600460205260409020546001600160a01b031615614f255760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ad8565b614f3160008383614831565b6001600160a01b0382166000908152600560205260408120805460019290614f5a908490615ce1565b9091555050600081815260046020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054614fd190615ea5565b90600052602060002090601f016020900481019282614ff35760008555615039565b82601f1061500c5782800160ff19823516178555615039565b82800160010185558215615039579182015b8281111561503957823582559160200191906001019061501e565b50615045929150615116565b5090565b828054828255906000526020600020908101928215615096579160200282015b8281111561509657825180516150869184916020909101906150a2565b5091602001919060010190615069565b5061504592915061512b565b8280546150ae90615ea5565b90600052602060002090601f0160209004810192826150d05760008555615039565b82601f106150e957805160ff1916838001178555615039565b82800160010185558215615039579182015b828111156150395782518255916020019190600101906150fb565b5b808211156150455760008155600101615117565b8082111561504557600061513f8282615148565b5060010161512b565b50805461515490615ea5565b6000825580601f10615164575050565b601f0160209004906000526020600020908101906119b29190615116565b600061519561519084615cb9565b615c64565b90508281528383830111156151a957600080fd5b828260208301376000602084830101529392505050565b60006151ce61519084615cb9565b90508281528383830111156151e257600080fd5b6125b1836020830184615e79565b60008083601f840112615201578182fd5b50813567ffffffffffffffff811115615218578182fd5b6020830191508360208260051b85010111156118a057600080fd5b600082601f830112615243578081fd5b6125b183833560208501615182565b600060208284031215615263578081fd5b81356125b181615f71565b60008060408385031215615280578081fd5b823561528b81615f71565b9150602083013561529b81615f71565b809150509250929050565b6000806000606084860312156152ba578081fd5b83356152c581615f71565b925060208401356152d581615f71565b929592945050506040919091013590565b600080600080608085870312156152fb578182fd5b843561530681615f71565b9350602085013561531681615f71565b925060408501359150606085013567ffffffffffffffff811115615338578182fd5b8501601f81018713615348578182fd5b61535787823560208401615182565b91505092959194509250565b60008060408385031215615375578182fd5b823561538081615f71565b9150602083013561529b81615f86565b600080604083850312156153a2578182fd5b82356153ad81615f71565b946020939093013593505050565b600080604083850312156153cd578182fd5b82356153d881615f71565b9150602083013561529b81615faa565b600080600080604085870312156153fd578182fd5b843567ffffffffffffffff80821115615414578384fd5b615420888389016151f0565b90965094506020870135915080821115615438578384fd5b50615445878288016151f0565b95989497509550505050565b60008060208385031215615463578182fd5b823567ffffffffffffffff811115615479578283fd5b615485858286016151f0565b90969095509350505050565b600060208083850312156154a3578182fd5b823567ffffffffffffffff808211156154ba578384fd5b818501915085601f8301126154cd578384fd5b81356154db61519082615c95565b80828252858201915085850189878560051b88010111156154fa578788fd5b875b848110156155335781358681111561551257898afd5b6155208c8a838b0101615233565b85525092870192908701906001016154fc565b50909998505050505050505050565b600080600060608486031215615556578081fd5b6040840185811115615566578182fd5b8493503567ffffffffffffffff81111561557e578182fd5b61558a868287016151f0565b9497909650939450505050565b600060208083850312156155a9578182fd5b825167ffffffffffffffff8111156155bf578283fd5b8301601f810185136155cf578283fd5b80516155dd61519082615c95565b80828252848201915084840188868560051b87010111156155fc578687fd5b8694505b838510156128f1578051835260019490940193918501918501615600565b60006020828403121561562f578081fd5b81356125b181615f86565b60006020828403121561564b578081fd5b81516125b181615f86565b600060208284031215615667578081fd5b5035919050565b60006020828403121561567f578081fd5b81356125b181615f94565b60006020828403121561569b578081fd5b81516125b181615f94565b6000602082840312156156b7578081fd5b815167ffffffffffffffff8111156156cd578182fd5b8201601f810184136156dd578182fd5b61175b848251602084016151c0565b6000602082840312156156fd578081fd5b813567ffffffffffffffff811115615713578182fd5b61175b84828501615233565b600060208284031215615730578081fd5b813561ffff811681146125b1578182fd5b600060208284031215615752578081fd5b5051919050565b6000806040838503121561576b578182fd5b82359150602083013567ffffffffffffffff811115615788578182fd5b61579485828601615233565b9150509250929050565b600080604083850312156157b0578182fd5b50508035926020909101359150565b6000602082840312156157d0578081fd5b81356125b181615faa565b6000602082840312156157ec578081fd5b81516125b181615faa565b60008060006040848603121561580b578081fd5b833561581681615faa565b9250602084013567ffffffffffffffff81111561557e578182fd5b600081548084526020808501808196508360051b81019150858552828520855b8581101561289f57828403895261586884836158a6565b98850198935060019182019101615851565b60008151808452615892816020860160208601615e79565b601f01601f19169290920160200192915050565b600081546158b381615ea5565b8085526020600183811680156158d057600181146158e457615912565b60ff19851683890152604088019550615912565b866000528260002060005b8581101561590a5781548a82018601529083019084016158ef565b890184019650505b505050505092915050565b6000825161592f818460208701615e79565b9190910192915050565b600080835461594781615ea5565b6001828116801561595f57600181146159705761599c565b60ff1984168752828701945061599c565b8786526020808720875b858110156159935781548a82015290840190820161597a565b50505082870194505b50929695505050505050565b7f42656163682000000000000000000000000000000000000000000000000000008152600082516159e0816006850160208701615e79565b9190910160060192915050565b7f2300000000000000000000000000000000000000000000000000000000000000815260008251615a25816001850160208701615e79565b9190910160010192915050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152615a64608083018461587a565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015615aa657835183529284019291840191600101615a8a565b50909695505050505050565b6020815260006125b1602083018461587a565b848152608060208201526000615ade6080830186615831565b8281036040840152615af08186615831565b91505082606083015295945050505050565b868152851515602082015260c060408201526000615b2360c08301876158a6565b8281036060840152615b35818761587a565b90508281036080840152615b4981866158a6565b91505082151560a0830152979650505050505050565b82815260406020820152600061175b604083018461587a565b85815260a060208201526000615b9160a083018761587a565b8281036040840152615ba3818761587a565b90508281036060840152615bb7818661587a565b90508281036080840152615bcb818561587a565b98975050505050505050565b6000808335601e19843603018112615bed578283fd5b83018035915067ffffffffffffffff821115615c07578283fd5b6020019150600581901b36038213156118a057600080fd5b6000808335601e19843603018112615c35578283fd5b83018035915067ffffffffffffffff821115615c4f578283fd5b6020019150368190038213156118a057600080fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715615c8d57615c8d615f5b565b604052919050565b600067ffffffffffffffff821115615caf57615caf615f5b565b5060051b60200190565b600067ffffffffffffffff821115615cd357615cd3615f5b565b50601f01601f191660200190565b60008219821115615cf457615cf4615f2f565b500190565b600060ff821660ff84168060ff03821115615d1657615d16615f2f565b019392505050565b600082615d2d57615d2d615f45565b500490565b600181815b80851115615d6d578160001904821115615d5357615d53615f2f565b80851615615d6057918102915b93841c9390800290615d37565b509250929050565b60006125b160ff841683600082615d8e5750600161119a565b81615d9b5750600061119a565b8160018114615db15760028114615dbb57615dd7565b600191505061119a565b60ff841115615dcc57615dcc615f2f565b50506001821b61119a565b5060208310610133831016604e8410600b8410161715615dfa575081810a61119a565b615e048383615d32565b8060001904821115615e1857615e18615f2f565b029392505050565b6000816000190483118215151615615e3a57615e3a615f2f565b500290565b600061ffff83811690831681811015615e5a57615e5a615f2f565b039392505050565b600082821015615e7457615e74615f2f565b500390565b60005b83811015615e94578181015183820152602001615e7c565b838111156111895750506000910152565b600181811c90821680615eb957607f821691505b60208210811415615eda57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415615ef457615ef4615f2f565b5060010190565b600060ff821660ff811415615f1257615f12615f2f565b60010192915050565b600082615f2a57615f2a615f45565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146119b257600080fd5b80151581146119b257600080fd5b6001600160e01b0319811681146119b257600080fd5b60ff811681146119b257600080fdfea2646970667358221220440d4224bfbfd1415591d6161c49bb20830e53a38c3b2dfbbe7bcfc02e0a2aa664736f6c63430008040033

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

000000000000000000000000026224a2940bfe258d0dbe947919b62fe321f0420000000000000000000000000000000000000000000000000000000000df36a80000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000240000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000002c0000000000000000000000000000000000000000000000000000000000000000453414e440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055741544552000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000557415645530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009535041524b4c494e47000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084c4f434154494f4e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054652414d450000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007464541545552450000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045349474e00000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : lobster_ (address): 0x026224A2940bFE258D0dbE947919B62fE321F042
Arg [1] : blockToMint_ (uint256): 14628520
Arg [2] : traits_ (string[]): SAND,WATER,WAVES,SPARKLING,LOCATION,FRAME,FEATURE,SIGN

-----Encoded View---------------
28 Constructor Arguments found :
Arg [0] : 000000000000000000000000026224a2940bfe258d0dbe947919b62fe321f042
Arg [1] : 0000000000000000000000000000000000000000000000000000000000df36a8
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [7] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000200
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000240
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000280
Arg [11] : 00000000000000000000000000000000000000000000000000000000000002c0
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [13] : 53414e4400000000000000000000000000000000000000000000000000000000
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [15] : 5741544552000000000000000000000000000000000000000000000000000000
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [17] : 5741564553000000000000000000000000000000000000000000000000000000
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [19] : 535041524b4c494e470000000000000000000000000000000000000000000000
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [21] : 4c4f434154494f4e000000000000000000000000000000000000000000000000
Arg [22] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [23] : 4652414d45000000000000000000000000000000000000000000000000000000
Arg [24] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [25] : 4645415455524500000000000000000000000000000000000000000000000000
Arg [26] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [27] : 5349474e00000000000000000000000000000000000000000000000000000000


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

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