ETH Price: $2,616.14 (-0.90%)

Token

Catharsis X Godjira (CXGJ)
 

Overview

Max Total Supply

121 CXGJ

Holders

93

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 CXGJ
0x1d31c70782ba4a946c4f9b02553f9a05417cbc64
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
CatharsisXGodjira

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 100 runs

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

/****************************************
 * @author: @Danny_One_                 *
 * @team:   GoldenX                     *
 ****************************************
 *   Blimpie-ERC721 provides low-gas    *
 *           mints + transfers          *
 ****************************************/

import './Delegated.sol';
import './ERC721Batch.sol';
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";

interface IGodjira {
	function balanceOf( address sender ) external view returns ( uint256 );
}

contract CatharsisXGodjira is Delegated, ERC721Batch, PaymentSplitter {
  using Strings for uint;
  using Strings for uint16;

  uint public MAX_SUPPLY = 999;
  uint public MAX_GOLD = 333;
  uint public MAX_PRESALE = 1;
  uint public MAX_TX = 10;

  uint[2] public PRICES = [
    0.1 ether,
    0.1 ether
  ];
  
  enum SaleState {
    paused,
    genesis,
    second,
    publicSale
  }

  SaleState public saleState;
  IGodjira public godjiraGenesis = IGodjira(0x9ada21A8bc6c33B49a089CFC1c24545d2a27cD81);
  IGodjira public godjiraExpansion = IGodjira(0xEDc3AD89f7b0963fe23D714B34185713706B815b);

  mapping(TOKEN_TYPE => uint16) public typeBalance;

  string private _tokenURIPrefix;
  string private _tokenURISuffix;
  string private _tokenURISeparator;

  address[] private payees = [
    0xed386149321FBd84f0c4e27a1701Ad05eCA32f8A,
    0x172c418b3bDA2Ad1226287376051f5749567d568
  ];

  uint[] private splits = [
    10,
    90
  ];

  constructor()
    Delegated()
    PaymentSplitter( payees, splits )
    ERC721B("Catharsis X Godjira", "CXGJ"){
  }

  //external payable
  fallback() external payable {}

  //public view
  function tokenURI(uint tokenId) external view override returns (string memory) {
    require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
    return string(abi.encodePacked(_tokenURIPrefix,
      tokenId.toString(), _tokenURISeparator,
      uint(tokens[tokenId].tokenType).toString(), _tokenURISeparator,
      tokens[tokenId].typeIndex.toString(),
      _tokenURISuffix ));
  }

  function typeSold( TOKEN_TYPE type_ ) external view returns( uint count ){
    for(uint i; i < tokens.length; ++i ){
      if( tokens[i].tokenType == type_ )
        ++count;
    }
  }

  //public payable
  function mint( uint[2] calldata _tokenMint ) external payable {
    require( saleState > SaleState.paused, "Sale is not active" );

    uint mintRequest = _tokenMint[0] + _tokenMint[1];
    require( mintRequest > 0, "Cannot mint 0 tokens" );
    require( typeBalance[TOKEN_TYPE.GOLD] + _tokenMint[1] <= MAX_GOLD, "Gold supply exceeded" );
    require( typeBalance[TOKEN_TYPE.SILVER] + _tokenMint[0] <= MAX_SUPPLY - MAX_GOLD, "Silver supply exceeded" );

    uint godjiraBalance = godjiraGenesis.balanceOf(msg.sender);
    if( saleState == SaleState.genesis ) {
      require( godjiraBalance > 0, "Must own Genesis Godjira" );
      require( _balances[ msg.sender ] + mintRequest <= MAX_PRESALE, "Mint exceeds presale allowance" );
    }
    else if( saleState < SaleState.publicSale ) {
      godjiraBalance += godjiraExpansion.balanceOf(msg.sender);
      require( godjiraBalance > 0, "Must own a Godjira" );
      require( _balances[ msg.sender ] + mintRequest <= MAX_PRESALE, "Mint exceeds presale allowance" );
    }
    else {
      require( mintRequest <= MAX_TX, "Mint exceeds transaction limit" );
    }
	
    uint priceTotal = (
        ( PRICES[0] * _tokenMint[0] )
      + ( PRICES[1] * _tokenMint[1] )
    );
    require( msg.value >= priceTotal, "Ether sent is not correct" );
    
    // handle token mints
    _balances[ msg.sender ] += mintRequest;
    for( uint t; t < 2; ++t ){
      for(uint tq; tq < _tokenMint[t]; ++tq ){
        mint1(msg.sender, TOKEN_TYPE(t) );
      }
    }
  }



  //onlyDelegates
  function mintTo(TOKEN_TYPE[] calldata types, uint[] calldata quantity, address[] calldata recipient ) external payable onlyDelegates{
    require(types.length == quantity.length, "must provide equal types and quantities" );
    require(quantity.length == recipient.length, "must provide equal quantities and recipients" );

    unchecked{
      uint[2] memory totalQuantity;
      for(uint i; i < quantity.length; ++i){
        if( types[i] == TOKEN_TYPE.SILVER ) {
          totalQuantity[0] += quantity[i];
        } else if( types[i] == TOKEN_TYPE.GOLD ) {
          totalQuantity[1] += quantity[i];
        }
      }
      require( typeBalance[TOKEN_TYPE.GOLD] + totalQuantity[1] <= MAX_GOLD, "Gold supply exceeded" );
      require( typeBalance[TOKEN_TYPE.SILVER] + totalQuantity[0] <= MAX_SUPPLY - MAX_GOLD, "Silver supply exceeded" );

      for(uint r; r < recipient.length; ++r){
        _balances[ recipient[r] ] += quantity[r];
        for(uint q; q < quantity[r]; ++q){
          mint1( recipient[r], types[r] );
        }
      }
    }
  }

  function setBaseURI(string calldata _newPrefix, string calldata _newSuffix, string calldata _newSeparator) external onlyDelegates{
    _tokenURIPrefix = _newPrefix;
    _tokenURISuffix = _newSuffix;
    _tokenURISeparator = _newSeparator;
  }

  function setConfig(uint maxSupply, uint maxGold, uint maxPresale, uint maxTx, uint[2] calldata prices) external onlyDelegates {
    if( MAX_SUPPLY != maxSupply ) {
      MAX_SUPPLY = maxSupply;
    }
    if( MAX_GOLD != maxGold ) {
      MAX_GOLD = maxGold;
    }
    if( MAX_PRESALE != maxPresale ) {
      MAX_PRESALE = maxPresale;
    }
    if( MAX_TX != maxTx ) {
      MAX_TX = maxTx;
    }
    if( PRICES.length == prices.length ) {
      for( uint i=0; i < prices.length; i++ ) {
        if( PRICES[i] != prices[i] ) {
          PRICES[i] = prices[i];
        }
      }
    }
  }

  function setSaleState(SaleState _state) external onlyDelegates {
    saleState = _state;
  }

  function setGodjiraContract(address _godjiraGenesis, address _godjiraExpansion) external onlyDelegates {
    if( address(godjiraGenesis) != _godjiraGenesis )
      godjiraGenesis = IGodjira(_godjiraGenesis);
    if( address(godjiraExpansion) != _godjiraExpansion )
      godjiraExpansion = IGodjira(_godjiraExpansion);
  }


  //internal
  function mint1( address to, TOKEN_TYPE tokenType ) internal {
    uint16 typeIndex = typeBalance[ tokenType ]++;
    uint tokenId = _next();
    tokens.push(Token(
      to,
      typeIndex,
      tokenType
    ));

    _safeMint( to, tokenId, "" );
  }

  function _mint(address to, uint tokenId) internal override {
    emit Transfer(address(0), to, tokenId);
  }
}

File 2 of 19 : IERC721Batch.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

interface IERC721Batch {
  function isOwnerOf( address account, uint[] calldata tokenIds ) external view returns( bool );
  function transferBatch( address from, address to, uint[] calldata tokenIds, bytes calldata data ) external;
  function walletOfOwner( address account ) external view returns( uint[] memory );
}

File 3 of 19 : ERC721EnumerableB.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

/****************************************
 * @author: Danny1                      *
 * @team:   GoldenX                     *
 ****************************************
 *   Blimpie-ERC721 provides low-gas    *
 *           mints + transfers          *
 ****************************************/

import "./ERC721B.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";

abstract contract ERC721EnumerableB is ERC721B, IERC721Enumerable {
    mapping(address => uint) internal _balances;

    function balanceOf(address owner) public view virtual override(ERC721B,IERC721) returns (uint) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

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

    function tokenOfOwnerByIndex(address owner, uint index) public view override returns (uint tokenId) {
        uint count;
        for( uint i; i < tokens.length; ++i ){
            if( owner == tokens[i].owner ){
                if( count == index )
                    return i;
                else
                    ++count;
            }
        }

        revert("ERC721Enumerable: owner index out of bounds");
    }

    function tokenByIndex(uint index) external view override returns (uint) {
        require(index < totalSupply(), "ERC721Enumerable: global index out of bounds");
        return index;
    }

    function totalSupply() public view override(IERC721Enumerable, ERC721B) returns( uint ){
        return ERC721B.totalSupply();
    }

    function _beforeTokenTransfer(address from, address to) internal override{
        if( from != address(0))
            --_balances[from];

        if( to != address(0))
            ++_balances[to];
    }
}

File 4 of 19 : ERC721Batch.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

/****************************************
 * @author: Danny1                      *
 ****************************************
 *   Blimpie-FF721 provides low-gas     *
 *       mints + transfers              *
 ****************************************/

import "./IERC721Batch.sol";
import "./ERC721EnumerableB.sol";

abstract contract ERC721Batch is ERC721EnumerableB, IERC721Batch {
  function isOwnerOf( address account, uint[] calldata tokenIds ) external view override returns( bool ){
    for(uint i; i < tokenIds.length; ++i ){
      if( account != tokens[ tokenIds[i] ].owner )
        return false;
    }

    return true;
  }

  function transferBatch( address from, address to, uint[] calldata tokenIds, bytes calldata data ) external override{
    for(uint i; i < tokenIds.length; ++i ){
      safeTransferFrom( from, to, tokenIds[i], data );
    }
  }

  function walletOfOwner( address account ) public view override returns( uint[] memory wallet ){
    uint count;
    uint quantity = balanceOf( account );
    wallet = new uint[]( quantity );
    for( uint i; i < tokens.length; ++i ){
      if( account == tokens[i].owner ){
        wallet[ count++ ] = i;
        if( count == quantity )
          break;
      }
    }
    return wallet;
  }
}

File 5 of 19 : ERC721B.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

abstract contract ERC721B is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;

    enum TOKEN_TYPE {
        SILVER,
        GOLD
    }

    struct Token {
        address owner;
        uint16 typeIndex;
        TOKEN_TYPE tokenType;
    }

    Token[] public tokens;
    string private _name;
    string private _symbol;

    mapping(uint => address) internal _tokenApprovals;
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    constructor(string memory name_, string memory symbol_ ){
        _name = name_;
        _symbol = symbol_;
    }

    //public
    function balanceOf(address owner) public view virtual override returns (uint) {
        require(owner != address(0), "ERC721: balance query for the zero address");

        uint count;
        for( uint i; i < tokens.length; ++i ){
          if( owner == tokens[i].owner )
            ++count;
        }
        return count;
    }

    function name() external view override returns (string memory) {
        return _name;
    }

    function ownerOf(uint tokenId) public view override returns (address) {
        return tokens[tokenId].owner;
    }

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

    function symbol() external view override returns (string memory) {
        return _symbol;
    }

    function totalSupply() public view virtual returns (uint) {
        return tokens.length;
    }


    function approve(address to, uint tokenId) external override {
        address owner = 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);
    }

    function getApproved(uint tokenId) public view override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");
        return _tokenApprovals[tokenId];
    }

    function isApprovedForAll(address owner, address operator) public view override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    function setApprovalForAll(address operator, bool approved) external override {
        require(operator != _msgSender(), "ERC721: approve to caller");
        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    function transferFrom(
        address from,
        address to,
        uint tokenId
    ) public override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _transfer(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint tokenId) external override {
        safeTransferFrom(from, to, tokenId, "");
    }

    function safeTransferFrom(address from, address to, uint tokenId, bytes memory _data) public override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }


    //internal
    function _approve(address to, uint tokenId) internal {
        _tokenApprovals[tokenId] = to;
        emit Approval(ownerOf(tokenId), to, tokenId);
    }

    function _beforeTokenTransfer( address from, address to) internal virtual;

    function _checkOnERC721Received(address from, address to, uint 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;
        }
    }

    function _exists(uint tokenId) internal view returns (bool) {
        return tokenId < tokens.length && tokens[tokenId].owner != address(0);
    }

    function _isApprovedOrOwner(address spender, uint tokenId) internal view returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    function _mint(address to, uint tokenId) internal virtual;

    function _next() internal view virtual returns(uint){
        return tokens.length;
    }

    function _safeMint(address to, uint tokenId) internal {
        _safeMint(to, tokenId, "");
    }

    function _safeMint(address to, uint tokenId, bytes memory _data) internal {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    function _safeTransfer(address from, address to, uint tokenId, bytes memory _data) internal {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    function _transfer(address from, address to, uint tokenId) internal {
        require(ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);
        tokens[tokenId].owner = to;

        emit Transfer(from, to, tokenId);
    }
}

File 6 of 19 : Delegated.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

/***********************
* @author: squeebo_nft *
************************/

import "@openzeppelin/contracts/access/Ownable.sol";

contract Delegated is Ownable{
  mapping(address => bool) internal _delegates;

  constructor(){
    _delegates[owner()] = true;
  }

  modifier onlyDelegates {
    require(_delegates[msg.sender], "Invalid delegate" );
    _;
  }

  //onlyOwner
  function isDelegate( address addr ) external view onlyOwner returns ( bool ){
    return _delegates[addr];
  }

  function setDelegate( address addr, bool isDelegate_ ) external onlyOwner{
    _delegates[addr] = isDelegate_;
  }

  function transferOwnership(address newOwner) public virtual override onlyOwner {
    _delegates[newOwner] = true;
    super.transferOwnership( newOwner );
  }
}

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 13 of 19 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 tokenId);

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../token/ERC20/utils/SafeERC20.sol";
import "../utils/Address.sol";
import "../utils/Context.sol";

/**
 * @title PaymentSplitter
 * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware
 * that the Ether will be split in this way, since it is handled transparently by the contract.
 *
 * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each
 * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim
 * an amount proportional to the percentage of total shares they were assigned.
 *
 * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
 * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
 * function.
 *
 * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and
 * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you
 * to run tests before sending real value to this contract.
 */
contract PaymentSplitter is Context {
    event PayeeAdded(address account, uint256 shares);
    event PaymentReleased(address to, uint256 amount);
    event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount);
    event PaymentReceived(address from, uint256 amount);

    uint256 private _totalShares;
    uint256 private _totalReleased;

    mapping(address => uint256) private _shares;
    mapping(address => uint256) private _released;
    address[] private _payees;

    mapping(IERC20 => uint256) private _erc20TotalReleased;
    mapping(IERC20 => mapping(address => uint256)) private _erc20Released;

    /**
     * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at
     * the matching position in the `shares` array.
     *
     * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no
     * duplicates in `payees`.
     */
    constructor(address[] memory payees, uint256[] memory shares_) payable {
        require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch");
        require(payees.length > 0, "PaymentSplitter: no payees");

        for (uint256 i = 0; i < payees.length; i++) {
            _addPayee(payees[i], shares_[i]);
        }
    }

    /**
     * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully
     * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the
     * reliability of the events, and not the actual splitting of Ether.
     *
     * To learn more about this see the Solidity documentation for
     * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback
     * functions].
     */
    receive() external payable virtual {
        emit PaymentReceived(_msgSender(), msg.value);
    }

    /**
     * @dev Getter for the total shares held by payees.
     */
    function totalShares() public view returns (uint256) {
        return _totalShares;
    }

    /**
     * @dev Getter for the total amount of Ether already released.
     */
    function totalReleased() public view returns (uint256) {
        return _totalReleased;
    }

    /**
     * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20
     * contract.
     */
    function totalReleased(IERC20 token) public view returns (uint256) {
        return _erc20TotalReleased[token];
    }

    /**
     * @dev Getter for the amount of shares held by an account.
     */
    function shares(address account) public view returns (uint256) {
        return _shares[account];
    }

    /**
     * @dev Getter for the amount of Ether already released to a payee.
     */
    function released(address account) public view returns (uint256) {
        return _released[account];
    }

    /**
     * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an
     * IERC20 contract.
     */
    function released(IERC20 token, address account) public view returns (uint256) {
        return _erc20Released[token][account];
    }

    /**
     * @dev Getter for the address of the payee number `index`.
     */
    function payee(uint256 index) public view returns (address) {
        return _payees[index];
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
     * total shares and their previous withdrawals.
     */
    function release(address payable account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = address(this).balance + totalReleased();
        uint256 payment = _pendingPayment(account, totalReceived, released(account));

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _released[account] += payment;
        _totalReleased += payment;

        Address.sendValue(account, payment);
        emit PaymentReleased(account, payment);
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their
     * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20
     * contract.
     */
    function release(IERC20 token, address account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token);
        uint256 payment = _pendingPayment(account, totalReceived, released(token, account));

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _erc20Released[token][account] += payment;
        _erc20TotalReleased[token] += payment;

        SafeERC20.safeTransfer(token, account, payment);
        emit ERC20PaymentReleased(token, account, payment);
    }

    /**
     * @dev internal logic for computing the pending payment of an `account` given the token historical balances and
     * already released amounts.
     */
    function _pendingPayment(
        address account,
        uint256 totalReceived,
        uint256 alreadyReleased
    ) private view returns (uint256) {
        return (totalReceived * _shares[account]) / _totalShares - alreadyReleased;
    }

    /**
     * @dev Add a new payee to the contract.
     * @param account The address of the payee to add.
     * @param shares_ The number of shares owned by the payee.
     */
    function _addPayee(address account, uint256 shares_) private {
        require(account != address(0), "PaymentSplitter: account is the zero address");
        require(shares_ > 0, "PaymentSplitter: shares are 0");
        require(_shares[account] == 0, "PaymentSplitter: account already has shares");

        _payees.push(account);
        _shares[account] = shares_;
        _totalShares = _totalShares + shares_;
        emit PayeeAdded(account, shares_);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","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":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"MAX_GOLD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PRESALE","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":[],"name":"MAX_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"PRICES","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"godjiraExpansion","outputs":[{"internalType":"contract IGodjira","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"godjiraGenesis","outputs":[{"internalType":"contract IGodjira","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"isDelegate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"isOwnerOf","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[2]","name":"_tokenMint","type":"uint256[2]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"enum ERC721B.TOKEN_TYPE[]","name":"types","type":"uint8[]"},{"internalType":"uint256[]","name":"quantity","type":"uint256[]"},{"internalType":"address[]","name":"recipient","type":"address[]"}],"name":"mintTo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleState","outputs":[{"internalType":"enum CatharsisXGodjira.SaleState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newPrefix","type":"string"},{"internalType":"string","name":"_newSuffix","type":"string"},{"internalType":"string","name":"_newSeparator","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"maxGold","type":"uint256"},{"internalType":"uint256","name":"maxPresale","type":"uint256"},{"internalType":"uint256","name":"maxTx","type":"uint256"},{"internalType":"uint256[2]","name":"prices","type":"uint256[2]"}],"name":"setConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"isDelegate_","type":"bool"}],"name":"setDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_godjiraGenesis","type":"address"},{"internalType":"address","name":"_godjiraExpansion","type":"address"}],"name":"setGodjiraContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum CatharsisXGodjira.SaleState","name":"_state","type":"uint8"}],"name":"setSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"tokenId","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokens","outputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint16","name":"typeIndex","type":"uint16"},{"internalType":"enum ERC721B.TOKEN_TYPE","name":"tokenType","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","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":"tokenIds","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"transferBatch","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":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum ERC721B.TOKEN_TYPE","name":"","type":"uint8"}],"name":"typeBalance","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum ERC721B.TOKEN_TYPE","name":"type_","type":"uint8"}],"name":"typeSold","outputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"wallet","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

6103e7600f5561014d6010556001601155600a60125560c060405267016345785d8a0000608081815260a0919091526200003e90601390600262000617565b5060158054749ada21a8bc6c33b49a089cfc1c24545d2a27cd8100610100600160a81b0319909116179055601680546001600160a01b03191673edc3ad89f7b0963fe23d714b34185713706b815b1790556040805180820190915273ed386149321fbd84f0c4e27a1701ad05eca32f8a815273172c418b3bda2ad1226287376051f5749567d5686020820152620000da90601b90600262000665565b5060408051808201909152600a8152605a60208201526200010090601c906002620006bd565b503480156200010e57600080fd5b50601b8054806020026020016040519081016040528092919081815260200182805480156200016757602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831162000148575b5050505050601c805480602002602001604051908101604052809291908181526020018280548015620001ba57602002820191906000526020600020905b815481526020019060010190808311620001a5575b50505050506040518060400160405280601381526020017f436174686172736973205820476f646a697261000000000000000000000000008152506040518060400160405280600481526020016321ac23a560e11b8152506200022c62000226620003d560201b60201c565b620003d9565b6001806000620002446000546001600160a01b031690565b6001600160a01b03168152602080820192909252604001600020805460ff191692151592909217909155825162000282916003919085019062000700565b5080516200029890600490602084019062000700565b50505080518251146200030d5760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620003605760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f20706179656573000000000000604482015260640162000304565b60005b8251811015620003cc57620003b783828151811062000386576200038662000794565b6020026020010151838381518110620003a357620003a362000794565b60200260200101516200042960201b60201c565b80620003c381620007c0565b91505062000363565b50505062000836565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216620004965760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b606482015260840162000304565b60008111620004e85760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a20736861726573206172652030000000604482015260640162000304565b6001600160a01b0382166000908152600a602052604090205415620005645760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b606482015260840162000304565b600c8054600181019091557fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70180546001600160a01b0319166001600160a01b0384169081179091556000908152600a60205260409020819055600854620005ce908290620007de565b600855604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b826002810192821562000653579160200282015b828111156200065357825182906001600160401b03169055916020019190600101906200062b565b50620006619291506200077d565b5090565b82805482825590600052602060002090810192821562000653579160200282015b828111156200065357825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000686565b82805482825590600052602060002090810192821562000653579160200282015b8281111562000653578251829060ff16905591602001919060010190620006de565b8280546200070e90620007f9565b90600052602060002090601f01602090048101928262000732576000855562000653565b82601f106200074d57805160ff191683800117855562000653565b8280016001018555821562000653579182015b828111156200065357825182559160200191906001019062000760565b5b808211156200066157600081556001016200077e565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415620007d757620007d7620007aa565b5060010190565b60008219821115620007f457620007f4620007aa565b500190565b600181811c908216806200080e57607f821691505b602082108114156200083057634e487b7160e01b600052602260045260246000fd5b50919050565b613b8480620008466000396000f3fe6080604052600436106102955760003560e01c80636352211e11610159578063b88d4fde116100c6578063d79779b211610082578063d79779b214610872578063d8da19df146108a8578063e33b7de3146108c8578063e985e9c5146108dd578063f2fde38b146108fd578063f3b2db3f1461091d578063fb5ae0081461093357005b8063b88d4fde1461079c578063bd0be0f4146107bc578063c3c9e553146107dc578063c87b56dd146107fc578063caa77ac71461081c578063ce7c2ac21461083c57005b806395d89b411161011557806395d89b41146106e85780639852595c146106fd578063a22cb46514610733578063a2a92d6b14610753578063ac1730a114610766578063b534a5c41461077c57005b80636352211e1461064b57806370a082311461066b578063715018a61461068b5780638b83209b146106a05780638da5cb5b146106c0578063956fce7e146106d557005b806332cb6b0c116102025780634a994eef116101be5780634a994eef1461055f5780634d44660c1461057f5780634d4c4e991461059f5780634f64b2be146105b55780634f6ccce7146105e45780635a67de0714610604578063603f4d521461062457005b806332cb6b0c146104a75780633a98ef39146104bd578063406072a9146104d257806342842e0e146104f2578063438b63001461051257806348b750441461053f57005b80630dd886e2116102515780630dd886e2146103df57806318160ddd1461040457806319165587146104275780631c0860d11461044757806323b872dd146104675780632f745c591461048757005b806301ffc9a7146102d757806306fdde031461030c578063077796271461032e578063081812fc1461034e578063095ea7b31461037b57806309749a5e1461039b57005b366102d5577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033346040516102cb929190612f9a565b60405180910390a1005b005b3480156102e357600080fd5b506102f76102f2366004612fc9565b610953565b60405190151581526020015b60405180910390f35b34801561031857600080fd5b5061032161097e565b604051610303919061303e565b34801561033a57600080fd5b506102f7610349366004613066565b610a10565b34801561035a57600080fd5b5061036e610369366004613083565b610a69565b604051610303919061309c565b34801561038757600080fd5b506102d56103963660046130b0565b610af1565b3480156103a757600080fd5b506103cc6103b63660046130dc565b60176020526000908152604090205461ffff1681565b60405161ffff9091168152602001610303565b3480156103eb57600080fd5b5060155461036e9061010090046001600160a01b031681565b34801561041057600080fd5b50610419610c02565b604051908152602001610303565b34801561043357600080fd5b506102d5610442366004613066565b610c12565b34801561045357600080fd5b506102d5610462366004613145565b610d37565b34801561047357600080fd5b506102d56104823660046131de565b610d95565b34801561049357600080fd5b506104196104a23660046130b0565b610dc6565b3480156104b357600080fd5b50610419600f5481565b3480156104c957600080fd5b50600854610419565b3480156104de57600080fd5b506104196104ed36600461321f565b610e92565b3480156104fe57600080fd5b506102d561050d3660046131de565b610ebd565b34801561051e57600080fd5b5061053261052d366004613066565b610ed8565b6040516103039190613258565b34801561054b57600080fd5b506102d561055a36600461321f565b610fba565b34801561056b57600080fd5b506102d561057a3660046132aa565b61116f565b34801561058b57600080fd5b506102f761059a36600461331c565b6111c9565b3480156105ab57600080fd5b5061041960115481565b3480156105c157600080fd5b506105d56105d0366004613083565b611245565b60405161030393929190613386565b3480156105f057600080fd5b506104196105ff366004613083565b611286565b34801561061057600080fd5b506102d561061f3660046133be565b6112f7565b34801561063057600080fd5b5060155461063e9060ff1681565b60405161030391906133df565b34801561065757600080fd5b5061036e610666366004613083565b61134d565b34801561067757600080fd5b50610419610686366004613066565b61137d565b34801561069757600080fd5b506102d5611404565b3480156106ac57600080fd5b5061036e6106bb366004613083565b61143f565b3480156106cc57600080fd5b5061036e611454565b6102d56106e33660046133f9565b611463565b3480156106f457600080fd5b5061032161181d565b34801561070957600080fd5b50610419610718366004613066565b6001600160a01b03166000908152600b602052604090205490565b34801561073f57600080fd5b506102d561074e3660046132aa565b61182c565b6102d5610761366004613491565b6118ed565b34801561077257600080fd5b5061041960105481565b34801561078857600080fd5b506102d56107973660046134ad565b611dfe565b3480156107a857600080fd5b506102d56107b7366004613538565b611e73565b3480156107c857600080fd5b506102d56107d7366004613617565b611eab565b3480156107e857600080fd5b506104196107f73660046130dc565b611f9a565b34801561080857600080fd5b50610321610817366004613083565b61201c565b34801561082857600080fd5b50610419610837366004613083565b61213c565b34801561084857600080fd5b50610419610857366004613066565b6001600160a01b03166000908152600a602052604090205490565b34801561087e57600080fd5b5061041961088d366004613066565b6001600160a01b03166000908152600d602052604090205490565b3480156108b457600080fd5b5060165461036e906001600160a01b031681565b3480156108d457600080fd5b50600954610419565b3480156108e957600080fd5b506102f76108f836600461321f565b612153565b34801561090957600080fd5b506102d5610918366004613066565b612181565b34801561092957600080fd5b5061041960125481565b34801561093f57600080fd5b506102d561094e36600461321f565b6121e2565b60006001600160e01b0319821663780e9d6360e01b1480610978575061097882612281565b92915050565b60606003805461098d90613661565b80601f01602080910402602001604051908101604052809291908181526020018280546109b990613661565b8015610a065780601f106109db57610100808354040283529160200191610a06565b820191906000526020600020905b8154815290600101906020018083116109e957829003601f168201915b5050505050905090565b600033610a1b611454565b6001600160a01b031614610a4a5760405162461bcd60e51b8152600401610a4190613696565b60405180910390fd5b506001600160a01b031660009081526001602052604090205460ff1690565b6000610a74826122d1565b610ad55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a41565b506000908152600560205260409020546001600160a01b031690565b6000610afc8261134d565b9050806001600160a01b0316836001600160a01b03161415610b6a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a41565b336001600160a01b0382161480610b865750610b868133612153565b610bf35760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610a41565b610bfd838361231b565b505050565b6000610c0d60025490565b905090565b6001600160a01b0381166000908152600a6020526040902054610c475760405162461bcd60e51b8152600401610a41906136cb565b6000610c5260095490565b610c5c9047613727565b90506000610c898383610c84866001600160a01b03166000908152600b602052604090205490565b612389565b905080610ca85760405162461bcd60e51b8152600401610a419061373f565b6001600160a01b0383166000908152600b602052604081208054839290610cd0908490613727565b925050819055508060096000828254610ce99190613727565b90915550610cf9905083826123cf565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0568382604051610d2a929190612f9a565b60405180910390a1505050565b3360009081526001602052604090205460ff16610d665760405162461bcd60e51b8152600401610a419061378a565b610d7260188787612ee7565b50610d7f60198585612ee7565b50610d8c601a8383612ee7565b50505050505050565b610d9f33826124e8565b610dbb5760405162461bcd60e51b8152600401610a41906137b4565b610bfd8383836125aa565b60008060005b600254811015610e355760028181548110610de957610de9613805565b6000918252602090912001546001600160a01b0386811691161415610e255783821415610e195791506109789050565b610e228261381b565b91505b610e2e8161381b565b9050610dcc565b5060405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610a41565b6001600160a01b039182166000908152600e6020908152604080832093909416825291909152205490565b610bfd83838360405180602001604052806000815250611e73565b6060600080610ee68461137d565b9050806001600160401b03811115610f0057610f00613522565b604051908082528060200260200182016040528015610f29578160200160208202803683370190505b50925060005b600254811015610fb25760028181548110610f4c57610f4c613805565b6000918252602090912001546001600160a01b0386811691161415610fa257808484610f778161381b565b955081518110610f8957610f89613805565b60200260200101818152505081831415610fa257610fb2565b610fab8161381b565b9050610f2f565b505050919050565b6001600160a01b0381166000908152600a6020526040902054610fef5760405162461bcd60e51b8152600401610a41906136cb565b6001600160a01b0382166000908152600d60205260408120546040516370a0823160e01b81526001600160a01b038516906370a082319061103490309060040161309c565b602060405180830381865afa158015611051573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110759190613836565b61107f9190613727565b905060006110928383610c848787610e92565b9050806110b15760405162461bcd60e51b8152600401610a419061373f565b6001600160a01b038085166000908152600e60209081526040808320938716835292905290812080548392906110e8908490613727565b90915550506001600160a01b0384166000908152600d602052604081208054839290611115908490613727565b90915550611126905084848361270a565b836001600160a01b03167f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a8483604051611161929190612f9a565b60405180910390a250505050565b33611178611454565b6001600160a01b03161461119e5760405162461bcd60e51b8152600401610a4190613696565b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b6000805b828110156112385760028484838181106111e9576111e9613805565b905060200201358154811061120057611200613805565b6000918252602090912001546001600160a01b0386811691161461122857600091505061123e565b6112318161381b565b90506111cd565b50600190505b9392505050565b6002818154811061125557600080fd5b6000918252602090912001546001600160a01b0381169150600160a01b810461ffff1690600160b01b900460ff1683565b6000611290610c02565b82106112f35760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610a41565b5090565b3360009081526001602052604090205460ff166113265760405162461bcd60e51b8152600401610a419061378a565b6015805482919060ff1916600183600381111561134557611345613370565b021790555050565b60006002828154811061136257611362613805565b6000918252602090912001546001600160a01b031692915050565b60006001600160a01b0382166113e85760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a41565b506001600160a01b031660009081526007602052604090205490565b3361140d611454565b6001600160a01b0316146114335760405162461bcd60e51b8152600401610a4190613696565b61143d6000612760565b565b6000600c828154811061136257611362613805565b6000546001600160a01b031690565b3360009081526001602052604090205460ff166114925760405162461bcd60e51b8152600401610a419061378a565b8483146114f15760405162461bcd60e51b815260206004820152602760248201527f6d7573742070726f7669646520657175616c20747970657320616e64207175616044820152666e74697469657360c81b6064820152608401610a41565b8281146115555760405162461bcd60e51b815260206004820152602c60248201527f6d7573742070726f7669646520657175616c207175616e74697469657320616e60448201526b6420726563697069656e747360a01b6064820152608401610a41565b61155d612f67565b60005b8481101561166457600088888381811061157c5761157c613805565b905060200201602081019061159191906130dc565b60018111156115a2576115a2613370565b14156115e4578585828181106115ba576115ba613805565b90506020020135826000600281106115d4576115d4613805565b602002018051909101905261165c565b60018888838181106115f8576115f8613805565b905060200201602081019061160d91906130dc565b600181111561161e5761161e613370565b141561165c5785858281811061163657611636613805565b905060200201358260016002811061165057611650613805565b60200201805190910190525b600101611560565b50601054602082810151600160005260179091527ff36d6bc9642eb6fb6ee9998b09ce990566df752ab06e11f8de7ab633bbd57b8f5461ffff160111156116bd5760405162461bcd60e51b8152600401610a419061384f565b601054600f5482516000805260176020527fd840e16649f6b9a295d95876f4633d3a6b10b55e8162971cf78afd886d5ec89b549290910361ffff9092160111156117195760405162461bcd60e51b8152600401610a419061387d565b60005b828110156118135785858281811061173657611736613805565b905060200201356007600086868581811061175357611753613805565b90506020020160208101906117689190613066565b6001600160a01b031681526020810191909152604001600090812080549092019091555b86868381811061179e5761179e613805565b9050602002013581101561180a576118028585848181106117c1576117c1613805565b90506020020160208101906117d69190613066565b8a8a858181106117e8576117e8613805565b90506020020160208101906117fd91906130dc565b6127b0565b60010161178c565b5060010161171c565b5050505050505050565b60606004805461098d90613661565b6001600160a01b0382163314156118815760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610a41565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600060155460ff16600381111561190657611906613370565b116119485760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b6044820152606401610a41565b600061195960208301358335613727565b9050600081116119a25760405162461bcd60e51b815260206004820152601460248201527343616e6e6f74206d696e74203020746f6b656e7360601b6044820152606401610a41565b6010546001600052601760209081527ff36d6bc9642eb6fb6ee9998b09ce990566df752ab06e11f8de7ab633bbd57b8f546119e4918501359061ffff16613727565b1115611a025760405162461bcd60e51b8152600401610a419061384f565b601054600f54611a1291906138ad565b6000805260176020527fd840e16649f6b9a295d95876f4633d3a6b10b55e8162971cf78afd886d5ec89b54611a4d9084359061ffff16613727565b1115611a6b5760405162461bcd60e51b8152600401610a419061387d565b6015546040516370a0823160e01b815260009161010090046001600160a01b0316906370a0823190611aa190339060040161309c565b602060405180830381865afa158015611abe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ae29190613836565b9050600160155460ff166003811115611afd57611afd613370565b1415611bbf5760008111611b4e5760405162461bcd60e51b81526020600482015260186024820152774d757374206f776e2047656e6573697320476f646a69726160401b6044820152606401610a41565b60115433600090815260076020526040902054611b6c908490613727565b1115611bba5760405162461bcd60e51b815260206004820152601e60248201527f4d696e7420657863656564732070726573616c6520616c6c6f77616e636500006044820152606401610a41565b611cf2565b600360155460ff166003811115611bd857611bd8613370565b1015611ca0576016546040516370a0823160e01b81526001600160a01b03909116906370a0823190611c0e90339060040161309c565b602060405180830381865afa158015611c2b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c4f9190613836565b611c599082613727565b905060008111611b4e5760405162461bcd60e51b81526020600482015260126024820152714d757374206f776e206120476f646a69726160701b6044820152606401610a41565b601254821115611cf25760405162461bcd60e51b815260206004820152601e60248201527f4d696e742065786365656473207472616e73616374696f6e206c696d697400006044820152606401610a41565b601454600090611d07906020860135906138c4565b601354611d16908635906138c4565b611d209190613727565b905080341015611d6e5760405162461bcd60e51b8152602060048201526019602482015278115d1a195c881cd95b9d081a5cc81b9bdd0818dbdc9c9958dd603a1b6044820152606401610a41565b3360009081526007602052604081208054859290611d8d908490613727565b90915550600090505b6002811015611df75760005b858260028110611db457611db4613805565b6020020135811015611de657611dd6338360018111156117fd576117fd613370565b611ddf8161381b565b9050611da2565b50611df08161381b565b9050611d96565b5050505050565b60005b83811015610d8c57611e638787878785818110611e2057611e20613805565b9050602002013586868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611e7392505050565b611e6c8161381b565b9050611e01565b611e7d33836124e8565b611e995760405162461bcd60e51b8152600401610a41906137b4565b611ea5848484846128f4565b50505050565b3360009081526001602052604090205460ff16611eda5760405162461bcd60e51b8152600401610a419061378a565b84600f5414611ee957600f8590555b8360105414611ef85760108490555b8260115414611f075760118390555b8160125414611f165760128290555b60005b6002811015611f9257818160028110611f3457611f34613805565b602002013560138260028110611f4c57611f4c613805565b015414611f8057818160028110611f6557611f65613805565b602002013560138260028110611f7d57611f7d613805565b01555b80611f8a8161381b565b915050611f19565b505050505050565b6000805b60025481101561201657826001811115611fba57611fba613370565b60028281548110611fcd57611fcd613805565b600091825260209091200154600160b01b900460ff166001811115611ff457611ff4613370565b1415612006576120038261381b565b91505b61200f8161381b565b9050611f9e565b50919050565b6060612027826122d1565b61208b5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a41565b601861209683612927565b601a6120da600286815481106120ae576120ae613805565b600091825260209091200154600160b01b900460ff1660018111156120d5576120d5613370565b612927565b601a61210e600288815481106120f2576120f2613805565b600091825260209091200154600160a01b900461ffff16612927565b6019604051602001612126979695949392919061397d565b6040516020818303038152906040529050919050565b6013816002811061214c57600080fd5b0154905081565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b3361218a611454565b6001600160a01b0316146121b05760405162461bcd60e51b8152600401610a4190613696565b6001600160a01b0381166000908152600160208190526040909120805460ff191690911790556121df81612a24565b50565b3360009081526001602052604090205460ff166122115760405162461bcd60e51b8152600401610a419061378a565b6015546001600160a01b03838116610100909204161461224c5760158054610100600160a81b0319166101006001600160a01b038516021790555b6016546001600160a01b0382811691161461227d57601680546001600160a01b0319166001600160a01b0383161790555b5050565b60006001600160e01b031982166380ac58cd60e01b14806122b257506001600160e01b03198216635b5e139f60e01b145b8061097857506301ffc9a760e01b6001600160e01b0319831614610978565b60025460009082108015610978575060006001600160a01b0316600283815481106122fe576122fe613805565b6000918252602090912001546001600160a01b0316141592915050565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906123508261134d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6008546001600160a01b0384166000908152600a6020526040812054909183916123b390866138c4565b6123bd9190613a08565b6123c791906138ad565b949350505050565b8047101561241f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610a41565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461246c576040519150601f19603f3d011682016040523d82523d6000602084013e612471565b606091505b5050905080610bfd5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610a41565b60006124f3826122d1565b6125545760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a41565b600061255f8361134d565b9050806001600160a01b0316846001600160a01b0316148061259a5750836001600160a01b031661258f84610a69565b6001600160a01b0316145b806123c757506123c78185612153565b826001600160a01b03166125bd8261134d565b6001600160a01b0316146126255760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a41565b6001600160a01b0382166126875760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a41565b6126918383612ac1565b61269c60008261231b565b81600282815481106126b0576126b0613805565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b610bfd8363a9059cbb60e01b8484604051602401612729929190612f9a565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612b38565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000601760008360018111156127c8576127c8613370565b60018111156127d9576127d9613370565b815260208101919091526040016000908120805461ffff16916127fb83613a1c565b91906101000a81548161ffff021916908361ffff1602179055509050600061282260025490565b905060026040518060600160405280866001600160a01b031681526020018461ffff16815260200185600181111561285c5761285c613370565b905281546001818101845560009384526020938490208351920180549484015161ffff16600160a01b026001600160b01b03199095166001600160a01b03909316929092179390931780825560408301519293919291839160ff60b01b191690600160b01b9084908111156128d3576128d3613370565b02179055505050611ea5848260405180602001604052806000815250612c0a565b6128ff8484846125aa565b61290b84848484612c3d565b611ea55760405162461bcd60e51b8152600401610a4190613a3e565b60608161294b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612975578061295f8161381b565b915061296e9050600a83613a08565b915061294f565b6000816001600160401b0381111561298f5761298f613522565b6040519080825280601f01601f1916602001820160405280156129b9576020820181803683370190505b5090505b84156123c7576129ce6001836138ad565b91506129db600a86613a90565b6129e6906030613727565b60f81b8183815181106129fb576129fb613805565b60200101906001600160f81b031916908160001a905350612a1d600a86613a08565b94506129bd565b33612a2d611454565b6001600160a01b031614612a535760405162461bcd60e51b8152600401610a4190613696565b6001600160a01b038116612ab85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a41565b6121df81612760565b6001600160a01b03821615612afb576001600160a01b03821660009081526007602052604081208054909190612af690613aa4565b909155505b6001600160a01b0381161561227d576001600160a01b03811660009081526007602052604081208054909190612b309061381b565b909155505050565b6000612b8d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612d3b9092919063ffffffff16565b805190915015610bfd5780806020019051810190612bab9190613abb565b610bfd5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610a41565b612c148383612d4a565b612c216000848484612c3d565b610bfd5760405162461bcd60e51b8152600401610a4190613a3e565b60006001600160a01b0384163b15612d3057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612c81903390899088908890600401613ad8565b6020604051808303816000875af1925050508015612cbc575060408051601f3d908101601f19168201909252612cb991810190613b15565b60015b612d16573d808015612cea576040519150601f19603f3d011682016040523d82523d6000602084013e612cef565b606091505b508051612d0e5760405162461bcd60e51b8152600401610a4190613a3e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506123c7565b506001949350505050565b60606123c78484600085612d86565b60405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b606082471015612de75760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610a41565b843b612e355760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610a41565b600080866001600160a01b03168587604051612e519190613b32565b60006040518083038185875af1925050503d8060008114612e8e576040519150601f19603f3d011682016040523d82523d6000602084013e612e93565b606091505b5091509150612ea3828286612eae565b979650505050505050565b60608315612ebd57508161123e565b825115612ecd5782518084602001fd5b8160405162461bcd60e51b8152600401610a41919061303e565b828054612ef390613661565b90600052602060002090601f016020900481019282612f155760008555612f5b565b82601f10612f2e5782800160ff19823516178555612f5b565b82800160010185558215612f5b579182015b82811115612f5b578235825591602001919060010190612f40565b506112f3929150612f85565b60405180604001604052806002906020820280368337509192915050565b5b808211156112f35760008155600101612f86565b6001600160a01b03929092168252602082015260400190565b6001600160e01b0319811681146121df57600080fd5b600060208284031215612fdb57600080fd5b813561123e81612fb3565b60005b83811015613001578181015183820152602001612fe9565b83811115611ea55750506000910152565b6000815180845261302a816020860160208601612fe6565b601f01601f19169290920160200192915050565b60208152600061123e6020830184613012565b6001600160a01b03811681146121df57600080fd5b60006020828403121561307857600080fd5b813561123e81613051565b60006020828403121561309557600080fd5b5035919050565b6001600160a01b0391909116815260200190565b600080604083850312156130c357600080fd5b82356130ce81613051565b946020939093013593505050565b6000602082840312156130ee57600080fd5b81356002811061123e57600080fd5b60008083601f84011261310f57600080fd5b5081356001600160401b0381111561312657600080fd5b60208301915083602082850101111561313e57600080fd5b9250929050565b6000806000806000806060878903121561315e57600080fd5b86356001600160401b038082111561317557600080fd5b6131818a838b016130fd565b9098509650602089013591508082111561319a57600080fd5b6131a68a838b016130fd565b909650945060408901359150808211156131bf57600080fd5b506131cc89828a016130fd565b979a9699509497509295939492505050565b6000806000606084860312156131f357600080fd5b83356131fe81613051565b9250602084013561320e81613051565b929592945050506040919091013590565b6000806040838503121561323257600080fd5b823561323d81613051565b9150602083013561324d81613051565b809150509250929050565b6020808252825182820181905260009190848201906040850190845b8181101561329057835183529284019291840191600101613274565b50909695505050505050565b80151581146121df57600080fd5b600080604083850312156132bd57600080fd5b82356132c881613051565b9150602083013561324d8161329c565b60008083601f8401126132ea57600080fd5b5081356001600160401b0381111561330157600080fd5b6020830191508360208260051b850101111561313e57600080fd5b60008060006040848603121561333157600080fd5b833561333c81613051565b925060208401356001600160401b0381111561335757600080fd5b613363868287016132d8565b9497909650939450505050565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b038416815261ffff8316602082015260608101600283106133b0576133b0613370565b826040830152949350505050565b6000602082840312156133d057600080fd5b81356004811061123e57600080fd5b60208101600483106133f3576133f3613370565b91905290565b6000806000806000806060878903121561341257600080fd5b86356001600160401b038082111561342957600080fd5b6134358a838b016132d8565b9098509650602089013591508082111561344e57600080fd5b61345a8a838b016132d8565b9096509450604089013591508082111561347357600080fd5b506131cc89828a016132d8565b806040810183101561097857600080fd5b6000604082840312156134a357600080fd5b61123e8383613480565b600080600080600080608087890312156134c657600080fd5b86356134d181613051565b955060208701356134e181613051565b945060408701356001600160401b03808211156134fd57600080fd5b6135098a838b016132d8565b909650945060608901359150808211156131bf57600080fd5b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561354e57600080fd5b843561355981613051565b9350602085013561356981613051565b92506040850135915060608501356001600160401b038082111561358c57600080fd5b818701915087601f8301126135a057600080fd5b8135818111156135b2576135b2613522565b604051601f8201601f19908116603f011681019083821181831017156135da576135da613522565b816040528281528a60208487010111156135f357600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080600080600060c0868803121561362f57600080fd5b853594506020860135935060408601359250606086013591506136558760808801613480565b90509295509295909350565b600181811c9082168061367557607f821691505b6020821081141561201657634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561373a5761373a613711565b500190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b600060001982141561382f5761382f613711565b5060010190565b60006020828403121561384857600080fd5b5051919050565b60208082526014908201527311dbdb19081cdd5c1c1b1e48195e18d95959195960621b604082015260600190565b60208082526016908201527514da5b1d995c881cdd5c1c1b1e48195e18d95959195960521b604082015260600190565b6000828210156138bf576138bf613711565b500390565b60008160001904831182151516156138de576138de613711565b500290565b8054600090600181811c90808316806138fd57607f831692505b602080841082141561391f57634e487b7160e01b600052602260045260246000fd5b818015613933576001811461394457613971565b60ff19861689528489019650613971565b60008881526020902060005b868110156139695781548b820152908501908301613950565b505084890196505b50505050505092915050565b6000613989828a6138e3565b8851613999818360208d01612fe6565b6139a58183018a6138e3565b91505086516139b8818360208b01612fe6565b6139c4818301886138e3565b91505084516139d7818360208901612fe6565b6139e3818301866138e3565b9b9a5050505050505050505050565b634e487b7160e01b600052601260045260246000fd5b600082613a1757613a176139f2565b500490565b600061ffff80831681811415613a3457613a34613711565b6001019392505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082613a9f57613a9f6139f2565b500690565b600081613ab357613ab3613711565b506000190190565b600060208284031215613acd57600080fd5b815161123e8161329c565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613b0b90830184613012565b9695505050505050565b600060208284031215613b2757600080fd5b815161123e81612fb3565b60008251613b44818460208701612fe6565b919091019291505056fea26469706673582212202a35c21af3eda9ce07a133831752c46eca2ca6acdfe28dd10cc32ff8350043f664736f6c634300080c0033

Deployed Bytecode

0x6080604052600436106102955760003560e01c80636352211e11610159578063b88d4fde116100c6578063d79779b211610082578063d79779b214610872578063d8da19df146108a8578063e33b7de3146108c8578063e985e9c5146108dd578063f2fde38b146108fd578063f3b2db3f1461091d578063fb5ae0081461093357005b8063b88d4fde1461079c578063bd0be0f4146107bc578063c3c9e553146107dc578063c87b56dd146107fc578063caa77ac71461081c578063ce7c2ac21461083c57005b806395d89b411161011557806395d89b41146106e85780639852595c146106fd578063a22cb46514610733578063a2a92d6b14610753578063ac1730a114610766578063b534a5c41461077c57005b80636352211e1461064b57806370a082311461066b578063715018a61461068b5780638b83209b146106a05780638da5cb5b146106c0578063956fce7e146106d557005b806332cb6b0c116102025780634a994eef116101be5780634a994eef1461055f5780634d44660c1461057f5780634d4c4e991461059f5780634f64b2be146105b55780634f6ccce7146105e45780635a67de0714610604578063603f4d521461062457005b806332cb6b0c146104a75780633a98ef39146104bd578063406072a9146104d257806342842e0e146104f2578063438b63001461051257806348b750441461053f57005b80630dd886e2116102515780630dd886e2146103df57806318160ddd1461040457806319165587146104275780631c0860d11461044757806323b872dd146104675780632f745c591461048757005b806301ffc9a7146102d757806306fdde031461030c578063077796271461032e578063081812fc1461034e578063095ea7b31461037b57806309749a5e1461039b57005b366102d5577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033346040516102cb929190612f9a565b60405180910390a1005b005b3480156102e357600080fd5b506102f76102f2366004612fc9565b610953565b60405190151581526020015b60405180910390f35b34801561031857600080fd5b5061032161097e565b604051610303919061303e565b34801561033a57600080fd5b506102f7610349366004613066565b610a10565b34801561035a57600080fd5b5061036e610369366004613083565b610a69565b604051610303919061309c565b34801561038757600080fd5b506102d56103963660046130b0565b610af1565b3480156103a757600080fd5b506103cc6103b63660046130dc565b60176020526000908152604090205461ffff1681565b60405161ffff9091168152602001610303565b3480156103eb57600080fd5b5060155461036e9061010090046001600160a01b031681565b34801561041057600080fd5b50610419610c02565b604051908152602001610303565b34801561043357600080fd5b506102d5610442366004613066565b610c12565b34801561045357600080fd5b506102d5610462366004613145565b610d37565b34801561047357600080fd5b506102d56104823660046131de565b610d95565b34801561049357600080fd5b506104196104a23660046130b0565b610dc6565b3480156104b357600080fd5b50610419600f5481565b3480156104c957600080fd5b50600854610419565b3480156104de57600080fd5b506104196104ed36600461321f565b610e92565b3480156104fe57600080fd5b506102d561050d3660046131de565b610ebd565b34801561051e57600080fd5b5061053261052d366004613066565b610ed8565b6040516103039190613258565b34801561054b57600080fd5b506102d561055a36600461321f565b610fba565b34801561056b57600080fd5b506102d561057a3660046132aa565b61116f565b34801561058b57600080fd5b506102f761059a36600461331c565b6111c9565b3480156105ab57600080fd5b5061041960115481565b3480156105c157600080fd5b506105d56105d0366004613083565b611245565b60405161030393929190613386565b3480156105f057600080fd5b506104196105ff366004613083565b611286565b34801561061057600080fd5b506102d561061f3660046133be565b6112f7565b34801561063057600080fd5b5060155461063e9060ff1681565b60405161030391906133df565b34801561065757600080fd5b5061036e610666366004613083565b61134d565b34801561067757600080fd5b50610419610686366004613066565b61137d565b34801561069757600080fd5b506102d5611404565b3480156106ac57600080fd5b5061036e6106bb366004613083565b61143f565b3480156106cc57600080fd5b5061036e611454565b6102d56106e33660046133f9565b611463565b3480156106f457600080fd5b5061032161181d565b34801561070957600080fd5b50610419610718366004613066565b6001600160a01b03166000908152600b602052604090205490565b34801561073f57600080fd5b506102d561074e3660046132aa565b61182c565b6102d5610761366004613491565b6118ed565b34801561077257600080fd5b5061041960105481565b34801561078857600080fd5b506102d56107973660046134ad565b611dfe565b3480156107a857600080fd5b506102d56107b7366004613538565b611e73565b3480156107c857600080fd5b506102d56107d7366004613617565b611eab565b3480156107e857600080fd5b506104196107f73660046130dc565b611f9a565b34801561080857600080fd5b50610321610817366004613083565b61201c565b34801561082857600080fd5b50610419610837366004613083565b61213c565b34801561084857600080fd5b50610419610857366004613066565b6001600160a01b03166000908152600a602052604090205490565b34801561087e57600080fd5b5061041961088d366004613066565b6001600160a01b03166000908152600d602052604090205490565b3480156108b457600080fd5b5060165461036e906001600160a01b031681565b3480156108d457600080fd5b50600954610419565b3480156108e957600080fd5b506102f76108f836600461321f565b612153565b34801561090957600080fd5b506102d5610918366004613066565b612181565b34801561092957600080fd5b5061041960125481565b34801561093f57600080fd5b506102d561094e36600461321f565b6121e2565b60006001600160e01b0319821663780e9d6360e01b1480610978575061097882612281565b92915050565b60606003805461098d90613661565b80601f01602080910402602001604051908101604052809291908181526020018280546109b990613661565b8015610a065780601f106109db57610100808354040283529160200191610a06565b820191906000526020600020905b8154815290600101906020018083116109e957829003601f168201915b5050505050905090565b600033610a1b611454565b6001600160a01b031614610a4a5760405162461bcd60e51b8152600401610a4190613696565b60405180910390fd5b506001600160a01b031660009081526001602052604090205460ff1690565b6000610a74826122d1565b610ad55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a41565b506000908152600560205260409020546001600160a01b031690565b6000610afc8261134d565b9050806001600160a01b0316836001600160a01b03161415610b6a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a41565b336001600160a01b0382161480610b865750610b868133612153565b610bf35760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610a41565b610bfd838361231b565b505050565b6000610c0d60025490565b905090565b6001600160a01b0381166000908152600a6020526040902054610c475760405162461bcd60e51b8152600401610a41906136cb565b6000610c5260095490565b610c5c9047613727565b90506000610c898383610c84866001600160a01b03166000908152600b602052604090205490565b612389565b905080610ca85760405162461bcd60e51b8152600401610a419061373f565b6001600160a01b0383166000908152600b602052604081208054839290610cd0908490613727565b925050819055508060096000828254610ce99190613727565b90915550610cf9905083826123cf565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0568382604051610d2a929190612f9a565b60405180910390a1505050565b3360009081526001602052604090205460ff16610d665760405162461bcd60e51b8152600401610a419061378a565b610d7260188787612ee7565b50610d7f60198585612ee7565b50610d8c601a8383612ee7565b50505050505050565b610d9f33826124e8565b610dbb5760405162461bcd60e51b8152600401610a41906137b4565b610bfd8383836125aa565b60008060005b600254811015610e355760028181548110610de957610de9613805565b6000918252602090912001546001600160a01b0386811691161415610e255783821415610e195791506109789050565b610e228261381b565b91505b610e2e8161381b565b9050610dcc565b5060405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610a41565b6001600160a01b039182166000908152600e6020908152604080832093909416825291909152205490565b610bfd83838360405180602001604052806000815250611e73565b6060600080610ee68461137d565b9050806001600160401b03811115610f0057610f00613522565b604051908082528060200260200182016040528015610f29578160200160208202803683370190505b50925060005b600254811015610fb25760028181548110610f4c57610f4c613805565b6000918252602090912001546001600160a01b0386811691161415610fa257808484610f778161381b565b955081518110610f8957610f89613805565b60200260200101818152505081831415610fa257610fb2565b610fab8161381b565b9050610f2f565b505050919050565b6001600160a01b0381166000908152600a6020526040902054610fef5760405162461bcd60e51b8152600401610a41906136cb565b6001600160a01b0382166000908152600d60205260408120546040516370a0823160e01b81526001600160a01b038516906370a082319061103490309060040161309c565b602060405180830381865afa158015611051573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110759190613836565b61107f9190613727565b905060006110928383610c848787610e92565b9050806110b15760405162461bcd60e51b8152600401610a419061373f565b6001600160a01b038085166000908152600e60209081526040808320938716835292905290812080548392906110e8908490613727565b90915550506001600160a01b0384166000908152600d602052604081208054839290611115908490613727565b90915550611126905084848361270a565b836001600160a01b03167f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a8483604051611161929190612f9a565b60405180910390a250505050565b33611178611454565b6001600160a01b03161461119e5760405162461bcd60e51b8152600401610a4190613696565b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b6000805b828110156112385760028484838181106111e9576111e9613805565b905060200201358154811061120057611200613805565b6000918252602090912001546001600160a01b0386811691161461122857600091505061123e565b6112318161381b565b90506111cd565b50600190505b9392505050565b6002818154811061125557600080fd5b6000918252602090912001546001600160a01b0381169150600160a01b810461ffff1690600160b01b900460ff1683565b6000611290610c02565b82106112f35760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610a41565b5090565b3360009081526001602052604090205460ff166113265760405162461bcd60e51b8152600401610a419061378a565b6015805482919060ff1916600183600381111561134557611345613370565b021790555050565b60006002828154811061136257611362613805565b6000918252602090912001546001600160a01b031692915050565b60006001600160a01b0382166113e85760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a41565b506001600160a01b031660009081526007602052604090205490565b3361140d611454565b6001600160a01b0316146114335760405162461bcd60e51b8152600401610a4190613696565b61143d6000612760565b565b6000600c828154811061136257611362613805565b6000546001600160a01b031690565b3360009081526001602052604090205460ff166114925760405162461bcd60e51b8152600401610a419061378a565b8483146114f15760405162461bcd60e51b815260206004820152602760248201527f6d7573742070726f7669646520657175616c20747970657320616e64207175616044820152666e74697469657360c81b6064820152608401610a41565b8281146115555760405162461bcd60e51b815260206004820152602c60248201527f6d7573742070726f7669646520657175616c207175616e74697469657320616e60448201526b6420726563697069656e747360a01b6064820152608401610a41565b61155d612f67565b60005b8481101561166457600088888381811061157c5761157c613805565b905060200201602081019061159191906130dc565b60018111156115a2576115a2613370565b14156115e4578585828181106115ba576115ba613805565b90506020020135826000600281106115d4576115d4613805565b602002018051909101905261165c565b60018888838181106115f8576115f8613805565b905060200201602081019061160d91906130dc565b600181111561161e5761161e613370565b141561165c5785858281811061163657611636613805565b905060200201358260016002811061165057611650613805565b60200201805190910190525b600101611560565b50601054602082810151600160005260179091527ff36d6bc9642eb6fb6ee9998b09ce990566df752ab06e11f8de7ab633bbd57b8f5461ffff160111156116bd5760405162461bcd60e51b8152600401610a419061384f565b601054600f5482516000805260176020527fd840e16649f6b9a295d95876f4633d3a6b10b55e8162971cf78afd886d5ec89b549290910361ffff9092160111156117195760405162461bcd60e51b8152600401610a419061387d565b60005b828110156118135785858281811061173657611736613805565b905060200201356007600086868581811061175357611753613805565b90506020020160208101906117689190613066565b6001600160a01b031681526020810191909152604001600090812080549092019091555b86868381811061179e5761179e613805565b9050602002013581101561180a576118028585848181106117c1576117c1613805565b90506020020160208101906117d69190613066565b8a8a858181106117e8576117e8613805565b90506020020160208101906117fd91906130dc565b6127b0565b60010161178c565b5060010161171c565b5050505050505050565b60606004805461098d90613661565b6001600160a01b0382163314156118815760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610a41565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600060155460ff16600381111561190657611906613370565b116119485760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b6044820152606401610a41565b600061195960208301358335613727565b9050600081116119a25760405162461bcd60e51b815260206004820152601460248201527343616e6e6f74206d696e74203020746f6b656e7360601b6044820152606401610a41565b6010546001600052601760209081527ff36d6bc9642eb6fb6ee9998b09ce990566df752ab06e11f8de7ab633bbd57b8f546119e4918501359061ffff16613727565b1115611a025760405162461bcd60e51b8152600401610a419061384f565b601054600f54611a1291906138ad565b6000805260176020527fd840e16649f6b9a295d95876f4633d3a6b10b55e8162971cf78afd886d5ec89b54611a4d9084359061ffff16613727565b1115611a6b5760405162461bcd60e51b8152600401610a419061387d565b6015546040516370a0823160e01b815260009161010090046001600160a01b0316906370a0823190611aa190339060040161309c565b602060405180830381865afa158015611abe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ae29190613836565b9050600160155460ff166003811115611afd57611afd613370565b1415611bbf5760008111611b4e5760405162461bcd60e51b81526020600482015260186024820152774d757374206f776e2047656e6573697320476f646a69726160401b6044820152606401610a41565b60115433600090815260076020526040902054611b6c908490613727565b1115611bba5760405162461bcd60e51b815260206004820152601e60248201527f4d696e7420657863656564732070726573616c6520616c6c6f77616e636500006044820152606401610a41565b611cf2565b600360155460ff166003811115611bd857611bd8613370565b1015611ca0576016546040516370a0823160e01b81526001600160a01b03909116906370a0823190611c0e90339060040161309c565b602060405180830381865afa158015611c2b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c4f9190613836565b611c599082613727565b905060008111611b4e5760405162461bcd60e51b81526020600482015260126024820152714d757374206f776e206120476f646a69726160701b6044820152606401610a41565b601254821115611cf25760405162461bcd60e51b815260206004820152601e60248201527f4d696e742065786365656473207472616e73616374696f6e206c696d697400006044820152606401610a41565b601454600090611d07906020860135906138c4565b601354611d16908635906138c4565b611d209190613727565b905080341015611d6e5760405162461bcd60e51b8152602060048201526019602482015278115d1a195c881cd95b9d081a5cc81b9bdd0818dbdc9c9958dd603a1b6044820152606401610a41565b3360009081526007602052604081208054859290611d8d908490613727565b90915550600090505b6002811015611df75760005b858260028110611db457611db4613805565b6020020135811015611de657611dd6338360018111156117fd576117fd613370565b611ddf8161381b565b9050611da2565b50611df08161381b565b9050611d96565b5050505050565b60005b83811015610d8c57611e638787878785818110611e2057611e20613805565b9050602002013586868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611e7392505050565b611e6c8161381b565b9050611e01565b611e7d33836124e8565b611e995760405162461bcd60e51b8152600401610a41906137b4565b611ea5848484846128f4565b50505050565b3360009081526001602052604090205460ff16611eda5760405162461bcd60e51b8152600401610a419061378a565b84600f5414611ee957600f8590555b8360105414611ef85760108490555b8260115414611f075760118390555b8160125414611f165760128290555b60005b6002811015611f9257818160028110611f3457611f34613805565b602002013560138260028110611f4c57611f4c613805565b015414611f8057818160028110611f6557611f65613805565b602002013560138260028110611f7d57611f7d613805565b01555b80611f8a8161381b565b915050611f19565b505050505050565b6000805b60025481101561201657826001811115611fba57611fba613370565b60028281548110611fcd57611fcd613805565b600091825260209091200154600160b01b900460ff166001811115611ff457611ff4613370565b1415612006576120038261381b565b91505b61200f8161381b565b9050611f9e565b50919050565b6060612027826122d1565b61208b5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a41565b601861209683612927565b601a6120da600286815481106120ae576120ae613805565b600091825260209091200154600160b01b900460ff1660018111156120d5576120d5613370565b612927565b601a61210e600288815481106120f2576120f2613805565b600091825260209091200154600160a01b900461ffff16612927565b6019604051602001612126979695949392919061397d565b6040516020818303038152906040529050919050565b6013816002811061214c57600080fd5b0154905081565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b3361218a611454565b6001600160a01b0316146121b05760405162461bcd60e51b8152600401610a4190613696565b6001600160a01b0381166000908152600160208190526040909120805460ff191690911790556121df81612a24565b50565b3360009081526001602052604090205460ff166122115760405162461bcd60e51b8152600401610a419061378a565b6015546001600160a01b03838116610100909204161461224c5760158054610100600160a81b0319166101006001600160a01b038516021790555b6016546001600160a01b0382811691161461227d57601680546001600160a01b0319166001600160a01b0383161790555b5050565b60006001600160e01b031982166380ac58cd60e01b14806122b257506001600160e01b03198216635b5e139f60e01b145b8061097857506301ffc9a760e01b6001600160e01b0319831614610978565b60025460009082108015610978575060006001600160a01b0316600283815481106122fe576122fe613805565b6000918252602090912001546001600160a01b0316141592915050565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906123508261134d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6008546001600160a01b0384166000908152600a6020526040812054909183916123b390866138c4565b6123bd9190613a08565b6123c791906138ad565b949350505050565b8047101561241f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610a41565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461246c576040519150601f19603f3d011682016040523d82523d6000602084013e612471565b606091505b5050905080610bfd5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610a41565b60006124f3826122d1565b6125545760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a41565b600061255f8361134d565b9050806001600160a01b0316846001600160a01b0316148061259a5750836001600160a01b031661258f84610a69565b6001600160a01b0316145b806123c757506123c78185612153565b826001600160a01b03166125bd8261134d565b6001600160a01b0316146126255760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a41565b6001600160a01b0382166126875760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a41565b6126918383612ac1565b61269c60008261231b565b81600282815481106126b0576126b0613805565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b610bfd8363a9059cbb60e01b8484604051602401612729929190612f9a565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612b38565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000601760008360018111156127c8576127c8613370565b60018111156127d9576127d9613370565b815260208101919091526040016000908120805461ffff16916127fb83613a1c565b91906101000a81548161ffff021916908361ffff1602179055509050600061282260025490565b905060026040518060600160405280866001600160a01b031681526020018461ffff16815260200185600181111561285c5761285c613370565b905281546001818101845560009384526020938490208351920180549484015161ffff16600160a01b026001600160b01b03199095166001600160a01b03909316929092179390931780825560408301519293919291839160ff60b01b191690600160b01b9084908111156128d3576128d3613370565b02179055505050611ea5848260405180602001604052806000815250612c0a565b6128ff8484846125aa565b61290b84848484612c3d565b611ea55760405162461bcd60e51b8152600401610a4190613a3e565b60608161294b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612975578061295f8161381b565b915061296e9050600a83613a08565b915061294f565b6000816001600160401b0381111561298f5761298f613522565b6040519080825280601f01601f1916602001820160405280156129b9576020820181803683370190505b5090505b84156123c7576129ce6001836138ad565b91506129db600a86613a90565b6129e6906030613727565b60f81b8183815181106129fb576129fb613805565b60200101906001600160f81b031916908160001a905350612a1d600a86613a08565b94506129bd565b33612a2d611454565b6001600160a01b031614612a535760405162461bcd60e51b8152600401610a4190613696565b6001600160a01b038116612ab85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a41565b6121df81612760565b6001600160a01b03821615612afb576001600160a01b03821660009081526007602052604081208054909190612af690613aa4565b909155505b6001600160a01b0381161561227d576001600160a01b03811660009081526007602052604081208054909190612b309061381b565b909155505050565b6000612b8d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612d3b9092919063ffffffff16565b805190915015610bfd5780806020019051810190612bab9190613abb565b610bfd5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610a41565b612c148383612d4a565b612c216000848484612c3d565b610bfd5760405162461bcd60e51b8152600401610a4190613a3e565b60006001600160a01b0384163b15612d3057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612c81903390899088908890600401613ad8565b6020604051808303816000875af1925050508015612cbc575060408051601f3d908101601f19168201909252612cb991810190613b15565b60015b612d16573d808015612cea576040519150601f19603f3d011682016040523d82523d6000602084013e612cef565b606091505b508051612d0e5760405162461bcd60e51b8152600401610a4190613a3e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506123c7565b506001949350505050565b60606123c78484600085612d86565b60405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b606082471015612de75760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610a41565b843b612e355760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610a41565b600080866001600160a01b03168587604051612e519190613b32565b60006040518083038185875af1925050503d8060008114612e8e576040519150601f19603f3d011682016040523d82523d6000602084013e612e93565b606091505b5091509150612ea3828286612eae565b979650505050505050565b60608315612ebd57508161123e565b825115612ecd5782518084602001fd5b8160405162461bcd60e51b8152600401610a41919061303e565b828054612ef390613661565b90600052602060002090601f016020900481019282612f155760008555612f5b565b82601f10612f2e5782800160ff19823516178555612f5b565b82800160010185558215612f5b579182015b82811115612f5b578235825591602001919060010190612f40565b506112f3929150612f85565b60405180604001604052806002906020820280368337509192915050565b5b808211156112f35760008155600101612f86565b6001600160a01b03929092168252602082015260400190565b6001600160e01b0319811681146121df57600080fd5b600060208284031215612fdb57600080fd5b813561123e81612fb3565b60005b83811015613001578181015183820152602001612fe9565b83811115611ea55750506000910152565b6000815180845261302a816020860160208601612fe6565b601f01601f19169290920160200192915050565b60208152600061123e6020830184613012565b6001600160a01b03811681146121df57600080fd5b60006020828403121561307857600080fd5b813561123e81613051565b60006020828403121561309557600080fd5b5035919050565b6001600160a01b0391909116815260200190565b600080604083850312156130c357600080fd5b82356130ce81613051565b946020939093013593505050565b6000602082840312156130ee57600080fd5b81356002811061123e57600080fd5b60008083601f84011261310f57600080fd5b5081356001600160401b0381111561312657600080fd5b60208301915083602082850101111561313e57600080fd5b9250929050565b6000806000806000806060878903121561315e57600080fd5b86356001600160401b038082111561317557600080fd5b6131818a838b016130fd565b9098509650602089013591508082111561319a57600080fd5b6131a68a838b016130fd565b909650945060408901359150808211156131bf57600080fd5b506131cc89828a016130fd565b979a9699509497509295939492505050565b6000806000606084860312156131f357600080fd5b83356131fe81613051565b9250602084013561320e81613051565b929592945050506040919091013590565b6000806040838503121561323257600080fd5b823561323d81613051565b9150602083013561324d81613051565b809150509250929050565b6020808252825182820181905260009190848201906040850190845b8181101561329057835183529284019291840191600101613274565b50909695505050505050565b80151581146121df57600080fd5b600080604083850312156132bd57600080fd5b82356132c881613051565b9150602083013561324d8161329c565b60008083601f8401126132ea57600080fd5b5081356001600160401b0381111561330157600080fd5b6020830191508360208260051b850101111561313e57600080fd5b60008060006040848603121561333157600080fd5b833561333c81613051565b925060208401356001600160401b0381111561335757600080fd5b613363868287016132d8565b9497909650939450505050565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b038416815261ffff8316602082015260608101600283106133b0576133b0613370565b826040830152949350505050565b6000602082840312156133d057600080fd5b81356004811061123e57600080fd5b60208101600483106133f3576133f3613370565b91905290565b6000806000806000806060878903121561341257600080fd5b86356001600160401b038082111561342957600080fd5b6134358a838b016132d8565b9098509650602089013591508082111561344e57600080fd5b61345a8a838b016132d8565b9096509450604089013591508082111561347357600080fd5b506131cc89828a016132d8565b806040810183101561097857600080fd5b6000604082840312156134a357600080fd5b61123e8383613480565b600080600080600080608087890312156134c657600080fd5b86356134d181613051565b955060208701356134e181613051565b945060408701356001600160401b03808211156134fd57600080fd5b6135098a838b016132d8565b909650945060608901359150808211156131bf57600080fd5b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561354e57600080fd5b843561355981613051565b9350602085013561356981613051565b92506040850135915060608501356001600160401b038082111561358c57600080fd5b818701915087601f8301126135a057600080fd5b8135818111156135b2576135b2613522565b604051601f8201601f19908116603f011681019083821181831017156135da576135da613522565b816040528281528a60208487010111156135f357600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080600080600060c0868803121561362f57600080fd5b853594506020860135935060408601359250606086013591506136558760808801613480565b90509295509295909350565b600181811c9082168061367557607f821691505b6020821081141561201657634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561373a5761373a613711565b500190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b600060001982141561382f5761382f613711565b5060010190565b60006020828403121561384857600080fd5b5051919050565b60208082526014908201527311dbdb19081cdd5c1c1b1e48195e18d95959195960621b604082015260600190565b60208082526016908201527514da5b1d995c881cdd5c1c1b1e48195e18d95959195960521b604082015260600190565b6000828210156138bf576138bf613711565b500390565b60008160001904831182151516156138de576138de613711565b500290565b8054600090600181811c90808316806138fd57607f831692505b602080841082141561391f57634e487b7160e01b600052602260045260246000fd5b818015613933576001811461394457613971565b60ff19861689528489019650613971565b60008881526020902060005b868110156139695781548b820152908501908301613950565b505084890196505b50505050505092915050565b6000613989828a6138e3565b8851613999818360208d01612fe6565b6139a58183018a6138e3565b91505086516139b8818360208b01612fe6565b6139c4818301886138e3565b91505084516139d7818360208901612fe6565b6139e3818301866138e3565b9b9a5050505050505050505050565b634e487b7160e01b600052601260045260246000fd5b600082613a1757613a176139f2565b500490565b600061ffff80831681811415613a3457613a34613711565b6001019392505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082613a9f57613a9f6139f2565b500690565b600081613ab357613ab3613711565b506000190190565b600060208284031215613acd57600080fd5b815161123e8161329c565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613b0b90830184613012565b9695505050505050565b600060208284031215613b2757600080fd5b815161123e81612fb3565b60008251613b44818460208701612fe6565b919091019291505056fea26469706673582212202a35c21af3eda9ce07a133831752c46eca2ca6acdfe28dd10cc32ff8350043f664736f6c634300080c0033

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.