ETH Price: $3,112.74 (+0.47%)
Gas: 3 Gwei

Token

Below Bored (BBC)
 

Overview

Max Total Supply

805 BBC

Holders

325

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
gwagsus.eth
Balance
1 BBC
0x25c365ADE307C55E16DCB6541c25660b0Bd70E98
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:
BelowBored

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 2000 runs

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

pragma solidity ^0.8.11;




import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/math/SafeCast.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";


struct ActOneConfig {
  uint32 startTime;
  uint32 endTime;
 
}

struct ActTwoConfig {
  uint32 startTime;
  uint32 endTime;
  
}

struct PublicSaleConfig {
  uint32 startTime;
  uint32 endTime;
 }


  contract BelowBored is Ownable, ERC721, ReentrancyGuard {
    using SafeCast for uint256;
        
    uint public maxPublicSupply = 10000;
    uint public maxSupply = 10169;
    uint public _reserveTokenId = maxPublicSupply;

    string internal baseTokenURI = "https://ipfssite.com/";
    using Counters for Counters.Counter;
    Counters.Counter private _tokenId;
 

    uint public price = 0.15 ether;


    //Percentages//

    //Laughing Ape Company 
    uint public p1 = 3737;
    //Founder 
    uint public p2 = 2500;
    //Partner
    uint public p3 = 1000;
    //Project Manager
    uint public p4 = 813;
    //Dev
    uint public p5 = 700;
    //Marketing
    uint public p6 = 100;
    //Community Manager
    uint public p7 = 600;
    //Architect
    uint public p8 = 500;
    //BK
    uint public p9 = 50;


     
    //Wallets//

    //Laughing Ape
    address public a1 = 0x0000000000000000000000000000000000000000;
    //Founder
    address public a2 = 0x0000000000000000000000000000000000000000;
    //Project Manager
    address public a3 = 0x0000000000000000000000000000000000000000;
    //Partner
    address public a4 = 0x0000000000000000000000000000000000000000;
    //Dev
    address public a5 = 0x0000000000000000000000000000000000000000;
    //Marketing
    address public a6 = 0x0000000000000000000000000000000000000000;
    //Community Manager
    address public a7 = 0x0000000000000000000000000000000000000000;
    //Architect
    address public a8 = 0x0000000000000000000000000000000000000000;
    //BK
    address public a9 = 0x0000000000000000000000000000000000000000;
    

   // EVENTS
  event ActOneConfigUpdated();
  event ActTwoConfigUpdated();
  event PublicSaleConfigUpdated();


  bool public isDeusXClaimActive;

    ActOneConfig public  actoneConfig;
    ActTwoConfig public acttwoConfig;
    PublicSaleConfig public  publicsaleConfig;

  mapping(address => uint8) public deusxAllowance;
 mapping(address => bool) public isAllowlisted;
   constructor(
   
  ) ERC721("Below Bored", "BBC") {
   
     
      actoneConfig = ActOneConfig({
      startTime: 1660068000, 
      endTime: 1660072140 
      });
     acttwoConfig = ActTwoConfig({
      startTime: 1660072142, 
      endTime: 1660076280 
     
    });
     publicsaleConfig = PublicSaleConfig({
      startTime: 1660076282, 
      endTime: 1660158000
     
    });
    
  }




 //Act One

  
    function ActOneMint(uint _amount) external payable {
        ActOneConfig memory _config = actoneConfig;
 require(
      block.timestamp >= _config.startTime && block.timestamp < _config.endTime,
      "Act one is not active"
    );
    require(_amount > 0, "You must mint at least 1 NFT");
        require(_tokenId.current() + _amount <= maxPublicSupply, "Max public supply exceeded");
        
        require(price * _amount == msg.value, "Wrong ETH amount");
  
       require(isAllowlisted[msg.sender], "Only Allow Listed users Authorized");
                     
        _mintBored(msg.sender,  _amount);
    
    }

  //Act Two
  
    function ActTwoMint(uint _amount) external payable {
          ActTwoConfig memory _config = acttwoConfig;
 require(
      block.timestamp >= _config.startTime && block.timestamp < _config.endTime,
      "Presale is not active"
    );
         require(_tokenId.current() + _amount <= maxPublicSupply, "Max public supply exceeded");
        
        require(price * _amount == msg.value, "Wrong ETH amount");

        
       require(isAllowlisted[msg.sender], "Only Allow Listed users Authorized");
    

        _mintBored(msg.sender, _amount);
    
    }

  //Public Mint

   function PublicMint( uint _amount) external payable {
          PublicSaleConfig memory _config = publicsaleConfig;
 require(
      block.timestamp >= _config.startTime && block.timestamp < _config.endTime,
      "Public Sale is not active"
    );
       require(_tokenId.current() + _amount <= maxPublicSupply, "Max public supply exceeded");
        require(price * _amount == msg.value, "Wrong ETH amount");

                  
        _mintBored(msg.sender, _amount);
    

   }

   //DeusX Claim
function claimDeusX() external {
    require(isDeusXClaimActive, "Airdrop is inactive");
    uint _allowance = deusxAllowance[msg.sender];
    require(_allowance > 0, "You have no airdrops to claim");
    require(_tokenId.current() + _allowance <= maxPublicSupply, "Max public supply exceeded");
    
      
      _mintBored(msg.sender, _allowance);
    
    deusxAllowance[msg.sender] = 0;
  }
  
  function devReserve(address _to, uint _amount) external onlyOwner {
        require(_reserveTokenId + _amount <= maxSupply, "Max reserve supply exceeded");
    for (uint i = 0; i < _amount; i++) {
      _reserveTokenId++;
      _safeMint(_to, _reserveTokenId);
    }
  }
 
 function _mintBored(address _to, uint _amount) internal {
         for (uint i = 0; i < _amount; i++) {
        _tokenId.increment();
            _safeMint(_to, _tokenId.current());
        }
    }


    //Sale Config
 function configureActOne(uint256 startTime, uint256 endTime)
    external
    onlyOwner
  {
    uint32 _startTime = startTime.toUint32();
    uint32 _endTime = endTime.toUint32();

    require(0 < _startTime, "Invalid time");
    require(_startTime < _endTime, "Invalid time");
        
    actoneConfig.startTime = _startTime;
    actoneConfig.endTime = _endTime;

    emit ActOneConfigUpdated();
  }



  function configureActTwo(uint256 startTime, uint256 endTime)
    external
    onlyOwner
  {
    uint32 _startTime = startTime.toUint32();
    uint32 _endTime = endTime.toUint32();

    require(0 < _startTime, "Invalid time");
    require(_startTime < _endTime, "Invalid time");
        
    acttwoConfig.startTime = _startTime;
    acttwoConfig.endTime = _endTime;

    emit ActTwoConfigUpdated();
  }
 

 function configurePublicSale(uint256 startTime, uint256 endTime)
    external
    onlyOwner
  {
    uint32 _startTime = startTime.toUint32();
    uint32 _endTime = endTime.toUint32();

    require(0 < _startTime, "Invalid time");
    require(_startTime < _endTime, "Invalid time");
        
    publicsaleConfig.startTime = _startTime;
    publicsaleConfig.endTime = _endTime;

    emit PublicSaleConfigUpdated();
  }
  
//DeusX Stuff
function setDeusxClaimActive(bool _state) public onlyOwner {
    isDeusXClaimActive = _state;
  }
 
  function setDeusxClaimAllowance(address[] calldata _users, uint8[] calldata _allowances) public onlyOwner {
      require(_users.length == _allowances.length, "Length mismatch");
      for(uint i = 0; i < _users.length; i++) {
          deusxAllowance[_users[i]] = _allowances[i];
      }
  }




    //Wallets
  function setMembersAddresses(address[] memory _a) external onlyOwner {
        a1 = _a[0];
        a2 = _a[1];
        a3 = _a[2];
        a4 = _a[3];
        a5 = _a[4];
        a6 = _a[5];
        a7 = _a[6];
        a8 = _a[7];
        a9 = _a[8];
       
    }



  //WITHDRAW FUNCTIONS
  function withdrawTeam() public payable onlyOwner {
        uint256 balance = address(this).balance;
        require(payable(a1).send((balance /10000) * p1));
        require(payable(a2).send((balance /10000) * p2));
        require(payable(a3).send((balance /10000) * p3));
        require(payable(a4).send((balance /10000) * p4));
        require(payable(a5).send((balance /10000) * p5));
        require(payable(a6).send((balance /10000) * p6));
        require(payable(a7).send((balance /10000) * p7));
        require(payable(a8).send((balance /10000) * p8));
        require(payable(a9).send((balance /10000) * p9));
    }

   

   
  function withdrawOwner() external onlyOwner {
        payable(msg.sender).transfer(address(this).balance);
    }


    //Supply
     function totalSupply() public view returns(uint) {
     return _tokenId.current() + _reserveTokenId - maxPublicSupply;
   }



//TOKEN LOCATION
   

   function setBaseTokenURI(string calldata _uri) external onlyOwner {
        baseTokenURI = _uri;
    }
   

   function _baseURI() internal view override returns (string memory) {
        return baseTokenURI;
    }

    //PRICE

      function setPrice(uint _newPrice) external onlyOwner {
        price = _newPrice;
    }



function setMembersPercentages(uint[] memory _p) external onlyOwner {
        p1 = _p[0];
        p2 = _p[1];
        p3 = _p[2];
        p4 = _p[3];
        p5 = _p[4];
        p6 = _p[5];
        p7 = _p[6];
        p8 = _p[7];
        p9 = _p[8];
       
    }

//AllowList 


 function allowlist(address[] calldata _users) public onlyOwner {
      for (uint i = 0; i < _users.length; i++) {
          isAllowlisted[_users[i]] = true;
      }
  }
function unAllowlist(address[] calldata _users) public onlyOwner {
     for(uint i = 0; i < _users.length; i++) {
          isAllowlisted[_users[i]] = false;
     }



  }
  }

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 3 of 14 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 4 of 14 : SafeCast.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/math/SafeCast.sol)

pragma solidity ^0.8.0;

/**
 * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow
 * checks.
 *
 * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can
 * easily result in undesired exploitation or bugs, since developers usually
 * assume that overflows raise errors. `SafeCast` restores this intuition by
 * reverting the transaction when such an operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 *
 * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing
 * all math on `uint256` and `int256` and then downcasting.
 */
library SafeCast {
    /**
     * @dev Returns the downcasted uint248 from uint256, reverting on
     * overflow (when the input is greater than largest uint248).
     *
     * Counterpart to Solidity's `uint248` operator.
     *
     * Requirements:
     *
     * - input must fit into 248 bits
     *
     * _Available since v4.7._
     */
    function toUint248(uint256 value) internal pure returns (uint248) {
        require(value <= type(uint248).max, "SafeCast: value doesn't fit in 248 bits");
        return uint248(value);
    }

    /**
     * @dev Returns the downcasted uint240 from uint256, reverting on
     * overflow (when the input is greater than largest uint240).
     *
     * Counterpart to Solidity's `uint240` operator.
     *
     * Requirements:
     *
     * - input must fit into 240 bits
     *
     * _Available since v4.7._
     */
    function toUint240(uint256 value) internal pure returns (uint240) {
        require(value <= type(uint240).max, "SafeCast: value doesn't fit in 240 bits");
        return uint240(value);
    }

    /**
     * @dev Returns the downcasted uint232 from uint256, reverting on
     * overflow (when the input is greater than largest uint232).
     *
     * Counterpart to Solidity's `uint232` operator.
     *
     * Requirements:
     *
     * - input must fit into 232 bits
     *
     * _Available since v4.7._
     */
    function toUint232(uint256 value) internal pure returns (uint232) {
        require(value <= type(uint232).max, "SafeCast: value doesn't fit in 232 bits");
        return uint232(value);
    }

    /**
     * @dev Returns the downcasted uint224 from uint256, reverting on
     * overflow (when the input is greater than largest uint224).
     *
     * Counterpart to Solidity's `uint224` operator.
     *
     * Requirements:
     *
     * - input must fit into 224 bits
     *
     * _Available since v4.2._
     */
    function toUint224(uint256 value) internal pure returns (uint224) {
        require(value <= type(uint224).max, "SafeCast: value doesn't fit in 224 bits");
        return uint224(value);
    }

    /**
     * @dev Returns the downcasted uint216 from uint256, reverting on
     * overflow (when the input is greater than largest uint216).
     *
     * Counterpart to Solidity's `uint216` operator.
     *
     * Requirements:
     *
     * - input must fit into 216 bits
     *
     * _Available since v4.7._
     */
    function toUint216(uint256 value) internal pure returns (uint216) {
        require(value <= type(uint216).max, "SafeCast: value doesn't fit in 216 bits");
        return uint216(value);
    }

    /**
     * @dev Returns the downcasted uint208 from uint256, reverting on
     * overflow (when the input is greater than largest uint208).
     *
     * Counterpart to Solidity's `uint208` operator.
     *
     * Requirements:
     *
     * - input must fit into 208 bits
     *
     * _Available since v4.7._
     */
    function toUint208(uint256 value) internal pure returns (uint208) {
        require(value <= type(uint208).max, "SafeCast: value doesn't fit in 208 bits");
        return uint208(value);
    }

    /**
     * @dev Returns the downcasted uint200 from uint256, reverting on
     * overflow (when the input is greater than largest uint200).
     *
     * Counterpart to Solidity's `uint200` operator.
     *
     * Requirements:
     *
     * - input must fit into 200 bits
     *
     * _Available since v4.7._
     */
    function toUint200(uint256 value) internal pure returns (uint200) {
        require(value <= type(uint200).max, "SafeCast: value doesn't fit in 200 bits");
        return uint200(value);
    }

    /**
     * @dev Returns the downcasted uint192 from uint256, reverting on
     * overflow (when the input is greater than largest uint192).
     *
     * Counterpart to Solidity's `uint192` operator.
     *
     * Requirements:
     *
     * - input must fit into 192 bits
     *
     * _Available since v4.7._
     */
    function toUint192(uint256 value) internal pure returns (uint192) {
        require(value <= type(uint192).max, "SafeCast: value doesn't fit in 192 bits");
        return uint192(value);
    }

    /**
     * @dev Returns the downcasted uint184 from uint256, reverting on
     * overflow (when the input is greater than largest uint184).
     *
     * Counterpart to Solidity's `uint184` operator.
     *
     * Requirements:
     *
     * - input must fit into 184 bits
     *
     * _Available since v4.7._
     */
    function toUint184(uint256 value) internal pure returns (uint184) {
        require(value <= type(uint184).max, "SafeCast: value doesn't fit in 184 bits");
        return uint184(value);
    }

    /**
     * @dev Returns the downcasted uint176 from uint256, reverting on
     * overflow (when the input is greater than largest uint176).
     *
     * Counterpart to Solidity's `uint176` operator.
     *
     * Requirements:
     *
     * - input must fit into 176 bits
     *
     * _Available since v4.7._
     */
    function toUint176(uint256 value) internal pure returns (uint176) {
        require(value <= type(uint176).max, "SafeCast: value doesn't fit in 176 bits");
        return uint176(value);
    }

    /**
     * @dev Returns the downcasted uint168 from uint256, reverting on
     * overflow (when the input is greater than largest uint168).
     *
     * Counterpart to Solidity's `uint168` operator.
     *
     * Requirements:
     *
     * - input must fit into 168 bits
     *
     * _Available since v4.7._
     */
    function toUint168(uint256 value) internal pure returns (uint168) {
        require(value <= type(uint168).max, "SafeCast: value doesn't fit in 168 bits");
        return uint168(value);
    }

    /**
     * @dev Returns the downcasted uint160 from uint256, reverting on
     * overflow (when the input is greater than largest uint160).
     *
     * Counterpart to Solidity's `uint160` operator.
     *
     * Requirements:
     *
     * - input must fit into 160 bits
     *
     * _Available since v4.7._
     */
    function toUint160(uint256 value) internal pure returns (uint160) {
        require(value <= type(uint160).max, "SafeCast: value doesn't fit in 160 bits");
        return uint160(value);
    }

    /**
     * @dev Returns the downcasted uint152 from uint256, reverting on
     * overflow (when the input is greater than largest uint152).
     *
     * Counterpart to Solidity's `uint152` operator.
     *
     * Requirements:
     *
     * - input must fit into 152 bits
     *
     * _Available since v4.7._
     */
    function toUint152(uint256 value) internal pure returns (uint152) {
        require(value <= type(uint152).max, "SafeCast: value doesn't fit in 152 bits");
        return uint152(value);
    }

    /**
     * @dev Returns the downcasted uint144 from uint256, reverting on
     * overflow (when the input is greater than largest uint144).
     *
     * Counterpart to Solidity's `uint144` operator.
     *
     * Requirements:
     *
     * - input must fit into 144 bits
     *
     * _Available since v4.7._
     */
    function toUint144(uint256 value) internal pure returns (uint144) {
        require(value <= type(uint144).max, "SafeCast: value doesn't fit in 144 bits");
        return uint144(value);
    }

    /**
     * @dev Returns the downcasted uint136 from uint256, reverting on
     * overflow (when the input is greater than largest uint136).
     *
     * Counterpart to Solidity's `uint136` operator.
     *
     * Requirements:
     *
     * - input must fit into 136 bits
     *
     * _Available since v4.7._
     */
    function toUint136(uint256 value) internal pure returns (uint136) {
        require(value <= type(uint136).max, "SafeCast: value doesn't fit in 136 bits");
        return uint136(value);
    }

    /**
     * @dev Returns the downcasted uint128 from uint256, reverting on
     * overflow (when the input is greater than largest uint128).
     *
     * Counterpart to Solidity's `uint128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     *
     * _Available since v2.5._
     */
    function toUint128(uint256 value) internal pure returns (uint128) {
        require(value <= type(uint128).max, "SafeCast: value doesn't fit in 128 bits");
        return uint128(value);
    }

    /**
     * @dev Returns the downcasted uint120 from uint256, reverting on
     * overflow (when the input is greater than largest uint120).
     *
     * Counterpart to Solidity's `uint120` operator.
     *
     * Requirements:
     *
     * - input must fit into 120 bits
     *
     * _Available since v4.7._
     */
    function toUint120(uint256 value) internal pure returns (uint120) {
        require(value <= type(uint120).max, "SafeCast: value doesn't fit in 120 bits");
        return uint120(value);
    }

    /**
     * @dev Returns the downcasted uint112 from uint256, reverting on
     * overflow (when the input is greater than largest uint112).
     *
     * Counterpart to Solidity's `uint112` operator.
     *
     * Requirements:
     *
     * - input must fit into 112 bits
     *
     * _Available since v4.7._
     */
    function toUint112(uint256 value) internal pure returns (uint112) {
        require(value <= type(uint112).max, "SafeCast: value doesn't fit in 112 bits");
        return uint112(value);
    }

    /**
     * @dev Returns the downcasted uint104 from uint256, reverting on
     * overflow (when the input is greater than largest uint104).
     *
     * Counterpart to Solidity's `uint104` operator.
     *
     * Requirements:
     *
     * - input must fit into 104 bits
     *
     * _Available since v4.7._
     */
    function toUint104(uint256 value) internal pure returns (uint104) {
        require(value <= type(uint104).max, "SafeCast: value doesn't fit in 104 bits");
        return uint104(value);
    }

    /**
     * @dev Returns the downcasted uint96 from uint256, reverting on
     * overflow (when the input is greater than largest uint96).
     *
     * Counterpart to Solidity's `uint96` operator.
     *
     * Requirements:
     *
     * - input must fit into 96 bits
     *
     * _Available since v4.2._
     */
    function toUint96(uint256 value) internal pure returns (uint96) {
        require(value <= type(uint96).max, "SafeCast: value doesn't fit in 96 bits");
        return uint96(value);
    }

    /**
     * @dev Returns the downcasted uint88 from uint256, reverting on
     * overflow (when the input is greater than largest uint88).
     *
     * Counterpart to Solidity's `uint88` operator.
     *
     * Requirements:
     *
     * - input must fit into 88 bits
     *
     * _Available since v4.7._
     */
    function toUint88(uint256 value) internal pure returns (uint88) {
        require(value <= type(uint88).max, "SafeCast: value doesn't fit in 88 bits");
        return uint88(value);
    }

    /**
     * @dev Returns the downcasted uint80 from uint256, reverting on
     * overflow (when the input is greater than largest uint80).
     *
     * Counterpart to Solidity's `uint80` operator.
     *
     * Requirements:
     *
     * - input must fit into 80 bits
     *
     * _Available since v4.7._
     */
    function toUint80(uint256 value) internal pure returns (uint80) {
        require(value <= type(uint80).max, "SafeCast: value doesn't fit in 80 bits");
        return uint80(value);
    }

    /**
     * @dev Returns the downcasted uint72 from uint256, reverting on
     * overflow (when the input is greater than largest uint72).
     *
     * Counterpart to Solidity's `uint72` operator.
     *
     * Requirements:
     *
     * - input must fit into 72 bits
     *
     * _Available since v4.7._
     */
    function toUint72(uint256 value) internal pure returns (uint72) {
        require(value <= type(uint72).max, "SafeCast: value doesn't fit in 72 bits");
        return uint72(value);
    }

    /**
     * @dev Returns the downcasted uint64 from uint256, reverting on
     * overflow (when the input is greater than largest uint64).
     *
     * Counterpart to Solidity's `uint64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     *
     * _Available since v2.5._
     */
    function toUint64(uint256 value) internal pure returns (uint64) {
        require(value <= type(uint64).max, "SafeCast: value doesn't fit in 64 bits");
        return uint64(value);
    }

    /**
     * @dev Returns the downcasted uint56 from uint256, reverting on
     * overflow (when the input is greater than largest uint56).
     *
     * Counterpart to Solidity's `uint56` operator.
     *
     * Requirements:
     *
     * - input must fit into 56 bits
     *
     * _Available since v4.7._
     */
    function toUint56(uint256 value) internal pure returns (uint56) {
        require(value <= type(uint56).max, "SafeCast: value doesn't fit in 56 bits");
        return uint56(value);
    }

    /**
     * @dev Returns the downcasted uint48 from uint256, reverting on
     * overflow (when the input is greater than largest uint48).
     *
     * Counterpart to Solidity's `uint48` operator.
     *
     * Requirements:
     *
     * - input must fit into 48 bits
     *
     * _Available since v4.7._
     */
    function toUint48(uint256 value) internal pure returns (uint48) {
        require(value <= type(uint48).max, "SafeCast: value doesn't fit in 48 bits");
        return uint48(value);
    }

    /**
     * @dev Returns the downcasted uint40 from uint256, reverting on
     * overflow (when the input is greater than largest uint40).
     *
     * Counterpart to Solidity's `uint40` operator.
     *
     * Requirements:
     *
     * - input must fit into 40 bits
     *
     * _Available since v4.7._
     */
    function toUint40(uint256 value) internal pure returns (uint40) {
        require(value <= type(uint40).max, "SafeCast: value doesn't fit in 40 bits");
        return uint40(value);
    }

    /**
     * @dev Returns the downcasted uint32 from uint256, reverting on
     * overflow (when the input is greater than largest uint32).
     *
     * Counterpart to Solidity's `uint32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     *
     * _Available since v2.5._
     */
    function toUint32(uint256 value) internal pure returns (uint32) {
        require(value <= type(uint32).max, "SafeCast: value doesn't fit in 32 bits");
        return uint32(value);
    }

    /**
     * @dev Returns the downcasted uint24 from uint256, reverting on
     * overflow (when the input is greater than largest uint24).
     *
     * Counterpart to Solidity's `uint24` operator.
     *
     * Requirements:
     *
     * - input must fit into 24 bits
     *
     * _Available since v4.7._
     */
    function toUint24(uint256 value) internal pure returns (uint24) {
        require(value <= type(uint24).max, "SafeCast: value doesn't fit in 24 bits");
        return uint24(value);
    }

    /**
     * @dev Returns the downcasted uint16 from uint256, reverting on
     * overflow (when the input is greater than largest uint16).
     *
     * Counterpart to Solidity's `uint16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     *
     * _Available since v2.5._
     */
    function toUint16(uint256 value) internal pure returns (uint16) {
        require(value <= type(uint16).max, "SafeCast: value doesn't fit in 16 bits");
        return uint16(value);
    }

    /**
     * @dev Returns the downcasted uint8 from uint256, reverting on
     * overflow (when the input is greater than largest uint8).
     *
     * Counterpart to Solidity's `uint8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits
     *
     * _Available since v2.5._
     */
    function toUint8(uint256 value) internal pure returns (uint8) {
        require(value <= type(uint8).max, "SafeCast: value doesn't fit in 8 bits");
        return uint8(value);
    }

    /**
     * @dev Converts a signed int256 into an unsigned uint256.
     *
     * Requirements:
     *
     * - input must be greater than or equal to 0.
     *
     * _Available since v3.0._
     */
    function toUint256(int256 value) internal pure returns (uint256) {
        require(value >= 0, "SafeCast: value must be positive");
        return uint256(value);
    }

    /**
     * @dev Returns the downcasted int248 from int256, reverting on
     * overflow (when the input is less than smallest int248 or
     * greater than largest int248).
     *
     * Counterpart to Solidity's `int248` operator.
     *
     * Requirements:
     *
     * - input must fit into 248 bits
     *
     * _Available since v4.7._
     */
    function toInt248(int256 value) internal pure returns (int248) {
        require(value >= type(int248).min && value <= type(int248).max, "SafeCast: value doesn't fit in 248 bits");
        return int248(value);
    }

    /**
     * @dev Returns the downcasted int240 from int256, reverting on
     * overflow (when the input is less than smallest int240 or
     * greater than largest int240).
     *
     * Counterpart to Solidity's `int240` operator.
     *
     * Requirements:
     *
     * - input must fit into 240 bits
     *
     * _Available since v4.7._
     */
    function toInt240(int256 value) internal pure returns (int240) {
        require(value >= type(int240).min && value <= type(int240).max, "SafeCast: value doesn't fit in 240 bits");
        return int240(value);
    }

    /**
     * @dev Returns the downcasted int232 from int256, reverting on
     * overflow (when the input is less than smallest int232 or
     * greater than largest int232).
     *
     * Counterpart to Solidity's `int232` operator.
     *
     * Requirements:
     *
     * - input must fit into 232 bits
     *
     * _Available since v4.7._
     */
    function toInt232(int256 value) internal pure returns (int232) {
        require(value >= type(int232).min && value <= type(int232).max, "SafeCast: value doesn't fit in 232 bits");
        return int232(value);
    }

    /**
     * @dev Returns the downcasted int224 from int256, reverting on
     * overflow (when the input is less than smallest int224 or
     * greater than largest int224).
     *
     * Counterpart to Solidity's `int224` operator.
     *
     * Requirements:
     *
     * - input must fit into 224 bits
     *
     * _Available since v4.7._
     */
    function toInt224(int256 value) internal pure returns (int224) {
        require(value >= type(int224).min && value <= type(int224).max, "SafeCast: value doesn't fit in 224 bits");
        return int224(value);
    }

    /**
     * @dev Returns the downcasted int216 from int256, reverting on
     * overflow (when the input is less than smallest int216 or
     * greater than largest int216).
     *
     * Counterpart to Solidity's `int216` operator.
     *
     * Requirements:
     *
     * - input must fit into 216 bits
     *
     * _Available since v4.7._
     */
    function toInt216(int256 value) internal pure returns (int216) {
        require(value >= type(int216).min && value <= type(int216).max, "SafeCast: value doesn't fit in 216 bits");
        return int216(value);
    }

    /**
     * @dev Returns the downcasted int208 from int256, reverting on
     * overflow (when the input is less than smallest int208 or
     * greater than largest int208).
     *
     * Counterpart to Solidity's `int208` operator.
     *
     * Requirements:
     *
     * - input must fit into 208 bits
     *
     * _Available since v4.7._
     */
    function toInt208(int256 value) internal pure returns (int208) {
        require(value >= type(int208).min && value <= type(int208).max, "SafeCast: value doesn't fit in 208 bits");
        return int208(value);
    }

    /**
     * @dev Returns the downcasted int200 from int256, reverting on
     * overflow (when the input is less than smallest int200 or
     * greater than largest int200).
     *
     * Counterpart to Solidity's `int200` operator.
     *
     * Requirements:
     *
     * - input must fit into 200 bits
     *
     * _Available since v4.7._
     */
    function toInt200(int256 value) internal pure returns (int200) {
        require(value >= type(int200).min && value <= type(int200).max, "SafeCast: value doesn't fit in 200 bits");
        return int200(value);
    }

    /**
     * @dev Returns the downcasted int192 from int256, reverting on
     * overflow (when the input is less than smallest int192 or
     * greater than largest int192).
     *
     * Counterpart to Solidity's `int192` operator.
     *
     * Requirements:
     *
     * - input must fit into 192 bits
     *
     * _Available since v4.7._
     */
    function toInt192(int256 value) internal pure returns (int192) {
        require(value >= type(int192).min && value <= type(int192).max, "SafeCast: value doesn't fit in 192 bits");
        return int192(value);
    }

    /**
     * @dev Returns the downcasted int184 from int256, reverting on
     * overflow (when the input is less than smallest int184 or
     * greater than largest int184).
     *
     * Counterpart to Solidity's `int184` operator.
     *
     * Requirements:
     *
     * - input must fit into 184 bits
     *
     * _Available since v4.7._
     */
    function toInt184(int256 value) internal pure returns (int184) {
        require(value >= type(int184).min && value <= type(int184).max, "SafeCast: value doesn't fit in 184 bits");
        return int184(value);
    }

    /**
     * @dev Returns the downcasted int176 from int256, reverting on
     * overflow (when the input is less than smallest int176 or
     * greater than largest int176).
     *
     * Counterpart to Solidity's `int176` operator.
     *
     * Requirements:
     *
     * - input must fit into 176 bits
     *
     * _Available since v4.7._
     */
    function toInt176(int256 value) internal pure returns (int176) {
        require(value >= type(int176).min && value <= type(int176).max, "SafeCast: value doesn't fit in 176 bits");
        return int176(value);
    }

    /**
     * @dev Returns the downcasted int168 from int256, reverting on
     * overflow (when the input is less than smallest int168 or
     * greater than largest int168).
     *
     * Counterpart to Solidity's `int168` operator.
     *
     * Requirements:
     *
     * - input must fit into 168 bits
     *
     * _Available since v4.7._
     */
    function toInt168(int256 value) internal pure returns (int168) {
        require(value >= type(int168).min && value <= type(int168).max, "SafeCast: value doesn't fit in 168 bits");
        return int168(value);
    }

    /**
     * @dev Returns the downcasted int160 from int256, reverting on
     * overflow (when the input is less than smallest int160 or
     * greater than largest int160).
     *
     * Counterpart to Solidity's `int160` operator.
     *
     * Requirements:
     *
     * - input must fit into 160 bits
     *
     * _Available since v4.7._
     */
    function toInt160(int256 value) internal pure returns (int160) {
        require(value >= type(int160).min && value <= type(int160).max, "SafeCast: value doesn't fit in 160 bits");
        return int160(value);
    }

    /**
     * @dev Returns the downcasted int152 from int256, reverting on
     * overflow (when the input is less than smallest int152 or
     * greater than largest int152).
     *
     * Counterpart to Solidity's `int152` operator.
     *
     * Requirements:
     *
     * - input must fit into 152 bits
     *
     * _Available since v4.7._
     */
    function toInt152(int256 value) internal pure returns (int152) {
        require(value >= type(int152).min && value <= type(int152).max, "SafeCast: value doesn't fit in 152 bits");
        return int152(value);
    }

    /**
     * @dev Returns the downcasted int144 from int256, reverting on
     * overflow (when the input is less than smallest int144 or
     * greater than largest int144).
     *
     * Counterpart to Solidity's `int144` operator.
     *
     * Requirements:
     *
     * - input must fit into 144 bits
     *
     * _Available since v4.7._
     */
    function toInt144(int256 value) internal pure returns (int144) {
        require(value >= type(int144).min && value <= type(int144).max, "SafeCast: value doesn't fit in 144 bits");
        return int144(value);
    }

    /**
     * @dev Returns the downcasted int136 from int256, reverting on
     * overflow (when the input is less than smallest int136 or
     * greater than largest int136).
     *
     * Counterpart to Solidity's `int136` operator.
     *
     * Requirements:
     *
     * - input must fit into 136 bits
     *
     * _Available since v4.7._
     */
    function toInt136(int256 value) internal pure returns (int136) {
        require(value >= type(int136).min && value <= type(int136).max, "SafeCast: value doesn't fit in 136 bits");
        return int136(value);
    }

    /**
     * @dev Returns the downcasted int128 from int256, reverting on
     * overflow (when the input is less than smallest int128 or
     * greater than largest int128).
     *
     * Counterpart to Solidity's `int128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     *
     * _Available since v3.1._
     */
    function toInt128(int256 value) internal pure returns (int128) {
        require(value >= type(int128).min && value <= type(int128).max, "SafeCast: value doesn't fit in 128 bits");
        return int128(value);
    }

    /**
     * @dev Returns the downcasted int120 from int256, reverting on
     * overflow (when the input is less than smallest int120 or
     * greater than largest int120).
     *
     * Counterpart to Solidity's `int120` operator.
     *
     * Requirements:
     *
     * - input must fit into 120 bits
     *
     * _Available since v4.7._
     */
    function toInt120(int256 value) internal pure returns (int120) {
        require(value >= type(int120).min && value <= type(int120).max, "SafeCast: value doesn't fit in 120 bits");
        return int120(value);
    }

    /**
     * @dev Returns the downcasted int112 from int256, reverting on
     * overflow (when the input is less than smallest int112 or
     * greater than largest int112).
     *
     * Counterpart to Solidity's `int112` operator.
     *
     * Requirements:
     *
     * - input must fit into 112 bits
     *
     * _Available since v4.7._
     */
    function toInt112(int256 value) internal pure returns (int112) {
        require(value >= type(int112).min && value <= type(int112).max, "SafeCast: value doesn't fit in 112 bits");
        return int112(value);
    }

    /**
     * @dev Returns the downcasted int104 from int256, reverting on
     * overflow (when the input is less than smallest int104 or
     * greater than largest int104).
     *
     * Counterpart to Solidity's `int104` operator.
     *
     * Requirements:
     *
     * - input must fit into 104 bits
     *
     * _Available since v4.7._
     */
    function toInt104(int256 value) internal pure returns (int104) {
        require(value >= type(int104).min && value <= type(int104).max, "SafeCast: value doesn't fit in 104 bits");
        return int104(value);
    }

    /**
     * @dev Returns the downcasted int96 from int256, reverting on
     * overflow (when the input is less than smallest int96 or
     * greater than largest int96).
     *
     * Counterpart to Solidity's `int96` operator.
     *
     * Requirements:
     *
     * - input must fit into 96 bits
     *
     * _Available since v4.7._
     */
    function toInt96(int256 value) internal pure returns (int96) {
        require(value >= type(int96).min && value <= type(int96).max, "SafeCast: value doesn't fit in 96 bits");
        return int96(value);
    }

    /**
     * @dev Returns the downcasted int88 from int256, reverting on
     * overflow (when the input is less than smallest int88 or
     * greater than largest int88).
     *
     * Counterpart to Solidity's `int88` operator.
     *
     * Requirements:
     *
     * - input must fit into 88 bits
     *
     * _Available since v4.7._
     */
    function toInt88(int256 value) internal pure returns (int88) {
        require(value >= type(int88).min && value <= type(int88).max, "SafeCast: value doesn't fit in 88 bits");
        return int88(value);
    }

    /**
     * @dev Returns the downcasted int80 from int256, reverting on
     * overflow (when the input is less than smallest int80 or
     * greater than largest int80).
     *
     * Counterpart to Solidity's `int80` operator.
     *
     * Requirements:
     *
     * - input must fit into 80 bits
     *
     * _Available since v4.7._
     */
    function toInt80(int256 value) internal pure returns (int80) {
        require(value >= type(int80).min && value <= type(int80).max, "SafeCast: value doesn't fit in 80 bits");
        return int80(value);
    }

    /**
     * @dev Returns the downcasted int72 from int256, reverting on
     * overflow (when the input is less than smallest int72 or
     * greater than largest int72).
     *
     * Counterpart to Solidity's `int72` operator.
     *
     * Requirements:
     *
     * - input must fit into 72 bits
     *
     * _Available since v4.7._
     */
    function toInt72(int256 value) internal pure returns (int72) {
        require(value >= type(int72).min && value <= type(int72).max, "SafeCast: value doesn't fit in 72 bits");
        return int72(value);
    }

    /**
     * @dev Returns the downcasted int64 from int256, reverting on
     * overflow (when the input is less than smallest int64 or
     * greater than largest int64).
     *
     * Counterpart to Solidity's `int64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     *
     * _Available since v3.1._
     */
    function toInt64(int256 value) internal pure returns (int64) {
        require(value >= type(int64).min && value <= type(int64).max, "SafeCast: value doesn't fit in 64 bits");
        return int64(value);
    }

    /**
     * @dev Returns the downcasted int56 from int256, reverting on
     * overflow (when the input is less than smallest int56 or
     * greater than largest int56).
     *
     * Counterpart to Solidity's `int56` operator.
     *
     * Requirements:
     *
     * - input must fit into 56 bits
     *
     * _Available since v4.7._
     */
    function toInt56(int256 value) internal pure returns (int56) {
        require(value >= type(int56).min && value <= type(int56).max, "SafeCast: value doesn't fit in 56 bits");
        return int56(value);
    }

    /**
     * @dev Returns the downcasted int48 from int256, reverting on
     * overflow (when the input is less than smallest int48 or
     * greater than largest int48).
     *
     * Counterpart to Solidity's `int48` operator.
     *
     * Requirements:
     *
     * - input must fit into 48 bits
     *
     * _Available since v4.7._
     */
    function toInt48(int256 value) internal pure returns (int48) {
        require(value >= type(int48).min && value <= type(int48).max, "SafeCast: value doesn't fit in 48 bits");
        return int48(value);
    }

    /**
     * @dev Returns the downcasted int40 from int256, reverting on
     * overflow (when the input is less than smallest int40 or
     * greater than largest int40).
     *
     * Counterpart to Solidity's `int40` operator.
     *
     * Requirements:
     *
     * - input must fit into 40 bits
     *
     * _Available since v4.7._
     */
    function toInt40(int256 value) internal pure returns (int40) {
        require(value >= type(int40).min && value <= type(int40).max, "SafeCast: value doesn't fit in 40 bits");
        return int40(value);
    }

    /**
     * @dev Returns the downcasted int32 from int256, reverting on
     * overflow (when the input is less than smallest int32 or
     * greater than largest int32).
     *
     * Counterpart to Solidity's `int32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     *
     * _Available since v3.1._
     */
    function toInt32(int256 value) internal pure returns (int32) {
        require(value >= type(int32).min && value <= type(int32).max, "SafeCast: value doesn't fit in 32 bits");
        return int32(value);
    }

    /**
     * @dev Returns the downcasted int24 from int256, reverting on
     * overflow (when the input is less than smallest int24 or
     * greater than largest int24).
     *
     * Counterpart to Solidity's `int24` operator.
     *
     * Requirements:
     *
     * - input must fit into 24 bits
     *
     * _Available since v4.7._
     */
    function toInt24(int256 value) internal pure returns (int24) {
        require(value >= type(int24).min && value <= type(int24).max, "SafeCast: value doesn't fit in 24 bits");
        return int24(value);
    }

    /**
     * @dev Returns the downcasted int16 from int256, reverting on
     * overflow (when the input is less than smallest int16 or
     * greater than largest int16).
     *
     * Counterpart to Solidity's `int16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     *
     * _Available since v3.1._
     */
    function toInt16(int256 value) internal pure returns (int16) {
        require(value >= type(int16).min && value <= type(int16).max, "SafeCast: value doesn't fit in 16 bits");
        return int16(value);
    }

    /**
     * @dev Returns the downcasted int8 from int256, reverting on
     * overflow (when the input is less than smallest int8 or
     * greater than largest int8).
     *
     * Counterpart to Solidity's `int8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits
     *
     * _Available since v3.1._
     */
    function toInt8(int256 value) internal pure returns (int8) {
        require(value >= type(int8).min && value <= type(int8).max, "SafeCast: value doesn't fit in 8 bits");
        return int8(value);
    }

    /**
     * @dev Converts an unsigned uint256 into a signed int256.
     *
     * Requirements:
     *
     * - input must be less than or equal to maxInt256.
     *
     * _Available since v3.0._
     */
    function toInt256(uint256 value) internal pure returns (int256) {
        // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive
        require(value <= uint256(type(int256).max), "SafeCast: value doesn't fit in an int256");
        return int256(value);
    }
}

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

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 6 of 14 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

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

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

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

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

        _afterTokenTransfer(address(0), to, tokenId);
    }

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

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

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

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

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

        _afterTokenTransfer(owner, address(0), tokenId);
    }

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

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

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

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

File 7 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

File 8 of 14 : 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 14 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 10 of 14 : 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 14 : 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 12 of 14 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 13 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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`.
     *
     * 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;

    /**
     * @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 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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[],"name":"ActOneConfigUpdated","type":"event"},{"anonymous":false,"inputs":[],"name":"ActTwoConfigUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[],"name":"PublicSaleConfigUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"ActOneMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"ActTwoMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"PublicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"_reserveTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"a1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"a2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"a3","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"a4","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"a5","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"a6","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"a7","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"a8","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"a9","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"actoneConfig","outputs":[{"internalType":"uint32","name":"startTime","type":"uint32"},{"internalType":"uint32","name":"endTime","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acttwoConfig","outputs":[{"internalType":"uint32","name":"startTime","type":"uint32"},{"internalType":"uint32","name":"endTime","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"}],"name":"allowlist","outputs":[],"stateMutability":"nonpayable","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":[],"name":"claimDeusX","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"}],"name":"configureActOne","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"}],"name":"configureActTwo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"}],"name":"configurePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"deusxAllowance","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"devReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isAllowlisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isDeusXClaimActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPublicSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"p1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"p2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"p3","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"p4","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"p5","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"p6","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"p7","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"p8","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"p9","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicsaleConfig","outputs":[{"internalType":"uint32","name":"startTime","type":"uint32"},{"internalType":"uint32","name":"endTime","type":"uint32"}],"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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setDeusxClaimActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"},{"internalType":"uint8[]","name":"_allowances","type":"uint8[]"}],"name":"setDeusxClaimAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_a","type":"address[]"}],"name":"setMembersAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_p","type":"uint256[]"}],"name":"setMembersPercentages","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"}],"name":"unAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawTeam","outputs":[],"stateMutability":"payable","type":"function"}]

61271060088190556127b9600955600a5560c0604052601560809081527f68747470733a2f2f69706673736974652e636f6d2f000000000000000000000060a052600b906200004f9082620002fd565b50670214e8348c4f0000600d55610e99600e556109c4600f556103e860105561032d6011556102bc60125560646013556102586014556101f46015556032601655601780546001600160a01b031990811690915560188054821690556019805482169055601a805482169055601b805482169055601c805482169055601d805482169055601e805482169055601f80549091169055348015620000f157600080fd5b506040518060400160405280600b81526020016a10995b1bddc8109bdc995960aa1b8152506040518060400160405280600381526020016242424360e81b8152506200014c620001466200020460201b60201c565b62000208565b60016200015a8382620002fd565b506002620001698282620002fd565b50506001600755506040805180820182526362f2a0a081526362f2b0cc60209182015280546001600160401b03199081166762f2b0cc62f2a0a0178255825180840184526362f2b0ce81526362f2c0f8908301526021805482166762f2c0f862f2b0ce17905582518084019093526362f2c0fa83526362f400309290910191909152602280549091166762f4003062f2c0fa179055620003c9565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200028357607f821691505b602082108103620002a457634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002f857600081815260208120601f850160051c81016020861015620002d35750805b601f850160051c820191505b81811015620002f457828155600101620002df565b5050505b505050565b81516001600160401b0381111562000319576200031962000258565b62000331816200032a84546200026e565b84620002aa565b602080601f831160018114620003695760008415620003505750858301515b600019600386901b1c1916600185901b178555620002f4565b600085815260208120601f198616915b828110156200039a5788860151825594840194600190910190840162000379565b5085821015620003b95787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61376480620003d96000396000f3fe6080604052600436106103b85760003560e01c8063752201f6116101f2578063bb51f32d1161010d578063e17b8b7f116100a0578063f17cc5061161006f578063f17cc50614610b07578063f22e0ce014610b27578063f2fde38b14610b47578063f74ea41814610b6757600080fd5b8063e17b8b7f14610a73578063e8cc00ad14610a89578063e985e9c514610a9e578063ed2fa73214610ae757600080fd5b8063c87b56dd116100dc578063c87b56dd146109eb578063c8af83da14610a0b578063d3b2bc7114610a3d578063d5abeb0114610a5d57600080fd5b8063bb51f32d146109a4578063c2a2747b146109ac578063c3b9f21e146109c2578063c5fab6ac146109d857600080fd5b806395d89b4111610185578063a22cb46511610154578063a22cb4651461092e578063a48caeaa1461094e578063af3b89d91461096e578063b88d4fde1461098457600080fd5b806395d89b41146108d0578063969e9d0c146108e55780639fb17e3414610905578063a035b1fe1461091857600080fd5b8063865de996116101c1578063865de996146108305780638da5cb5b1461087257806391b7f5ed146108905780639426eef8146108b057600080fd5b8063752201f6146107ce5780637e8d3b5e146107e45780637f3942c01461080457806381d01ed31461081a57600080fd5b806343970161116102e25780635fd00fad116102755780636e219667116102445780636e2196671461076357806370a0823114610779578063715018a61461079957806372b308fa146107ae57600080fd5b80635fd00fad146106da578063615db6e1146107035780636352211e146107235780636ad847ff1461074357600080fd5b806355dfbc6f116102b157806355dfbc6f14610664578063590dca3c1461067a5780635b2b251f1461069a5780635e048cc9146106ba57600080fd5b806343970161146105fc578063475053801461061c5780634d7a14001461063c57806354efcc8e1461064f57600080fd5b8063119552a11161035a57806326a74d8e1161032957806326a74d8e1461059057806330176e13146105a657806333705526146105c657806342842e0e146105dc57600080fd5b8063119552a11461050457806315fabac91461052457806318160ddd1461054d57806323b872dd1461057057600080fd5b806306fdde031161039657806306fdde0314610468578063072ab75a1461048a578063081812fc146104ac578063095ea7b3146104e457600080fd5b8063011d5385146103bd57806301ffc9a71461040857806305a3b80914610438575b600080fd5b3480156103c957600080fd5b506021546103e69063ffffffff8082169164010000000090041682565b6040805163ffffffff9384168152929091166020830152015b60405180910390f35b34801561041457600080fd5b50610428610423366004612ec7565b610b87565b60405190151581526020016103ff565b34801561044457600080fd5b50610428610453366004612f00565b60246020526000908152604090205460ff1681565b34801561047457600080fd5b5061047d610c6c565b6040516103ff9190612f73565b34801561049657600080fd5b506104aa6104a5366004612f86565b610cfe565b005b3480156104b857600080fd5b506104cc6104c7366004612fa8565b610e0a565b6040516001600160a01b0390911681526020016103ff565b3480156104f057600080fd5b506104aa6104ff366004612fc1565b610e31565b34801561051057600080fd5b506017546104cc906001600160a01b031681565b34801561053057600080fd5b506022546103e69063ffffffff8082169164010000000090041682565b34801561055957600080fd5b50610562610f62565b6040519081526020016103ff565b34801561057c57600080fd5b506104aa61058b366004612feb565b610f8c565b34801561059c57600080fd5b5061056260085481565b3480156105b257600080fd5b506104aa6105c1366004613027565b611013565b3480156105d257600080fd5b5061056260125481565b3480156105e857600080fd5b506104aa6105f7366004612feb565b611028565b34801561060857600080fd5b506104aa610617366004613104565b611043565b34801561062857600080fd5b50601c546104cc906001600160a01b031681565b6104aa61064a366004612fa8565b611297565b34801561065b57600080fd5b506104aa611476565b34801561067057600080fd5b5061056260145481565b34801561068657600080fd5b506104aa610695366004612f86565b6115c9565b3480156106a657600080fd5b506104aa6106b5366004612fc1565b6116d0565b3480156106c657600080fd5b50601d546104cc906001600160a01b031681565b3480156106e657600080fd5b506020546103e69063ffffffff8082169164010000000090041682565b34801561070f57600080fd5b50601b546104cc906001600160a01b031681565b34801561072f57600080fd5b506104cc61073e366004612fa8565b611775565b34801561074f57600080fd5b50601e546104cc906001600160a01b031681565b34801561076f57600080fd5b5061056260105481565b34801561078557600080fd5b50610562610794366004612f00565b6117da565b3480156107a557600080fd5b506104aa611874565b3480156107ba57600080fd5b506104aa6107c9366004612f86565b611888565b3480156107da57600080fd5b5061056260155481565b3480156107f057600080fd5b506104aa6107ff3660046131ed565b61198f565b34801561081057600080fd5b5061056260165481565b34801561082657600080fd5b50610562600f5481565b34801561083c57600080fd5b5061086061084b366004612f00565b60236020526000908152604090205460ff1681565b60405160ff90911681526020016103ff565b34801561087e57600080fd5b506000546001600160a01b03166104cc565b34801561089c57600080fd5b506104aa6108ab366004612fa8565b611a09565b3480156108bc57600080fd5b506019546104cc906001600160a01b031681565b3480156108dc57600080fd5b5061047d611a16565b3480156108f157600080fd5b506018546104cc906001600160a01b031681565b6104aa610913366004612fa8565b611a25565b34801561092457600080fd5b50610562600d5481565b34801561093a57600080fd5b506104aa61094936600461323f565b611b71565b34801561095a57600080fd5b50601f546104cc906001600160a01b031681565b34801561097a57600080fd5b50610562600a5481565b34801561099057600080fd5b506104aa61099f366004613272565b611b7c565b6104aa611c0a565b3480156109b857600080fd5b50610562600e5481565b3480156109ce57600080fd5b5061056260115481565b6104aa6109e6366004612fa8565b611ec1565b3480156109f757600080fd5b5061047d610a06366004612fa8565b611f9f565b348015610a1757600080fd5b50601f546104289074010000000000000000000000000000000000000000900460ff1681565b348015610a4957600080fd5b506104aa610a58366004613332565b612006565b348015610a6957600080fd5b5061056260095481565b348015610a7f57600080fd5b5061056260135481565b348015610a9557600080fd5b506104aa612058565b348015610aaa57600080fd5b50610428610ab936600461334d565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610af357600080fd5b506104aa610b023660046131ed565b61208c565b348015610b1357600080fd5b506104aa610b22366004613377565b612106565b348015610b3357600080fd5b506104aa610b423660046133fd565b61223a565b348015610b5357600080fd5b506104aa610b62366004612f00565b612332565b348015610b7357600080fd5b50601a546104cc906001600160a01b031681565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480610c1a57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c6657507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060018054610c7b90613469565b80601f0160208091040260200160405190810160405280929190818152602001828054610ca790613469565b8015610cf45780601f10610cc957610100808354040283529160200191610cf4565b820191906000526020600020905b815481529060010190602001808311610cd757829003601f168201915b5050505050905090565b610d066123bf565b6000610d1183612419565b90506000610d1e83612419565b90508163ffffffff16600010610d6a5760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642074696d6560a01b60448201526064015b60405180910390fd5b8063ffffffff168263ffffffff1610610db45760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642074696d6560a01b6044820152606401610d61565b6021805463ffffffff8381166401000000000267ffffffffffffffff19909216908516171790556040517f38a695a43aa42ba29888248c741a9a850fe0a56f712717bf2776fc8fea46541590600090a150505050565b6000610e1582612499565b506000908152600560205260409020546001600160a01b031690565b6000610e3c82611775565b9050806001600160a01b0316836001600160a01b031603610ec55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610d61565b336001600160a01b0382161480610ee15750610ee18133610ab9565b610f535760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610d61565b610f5d83836124fd565b505050565b6000600854600a54610f73600c5490565b610f7d91906134b9565b610f8791906134d1565b905090565b610f963382612578565b6110085760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610d61565b610f5d8383836125f7565b61101b6123bf565b600b610f5d828483613536565b610f5d83838360405180602001604052806000815250611b7c565b61104b6123bf565b8060008151811061105e5761105e6135f6565b6020026020010151601760006101000a8154816001600160a01b0302191690836001600160a01b031602179055508060018151811061109f5761109f6135f6565b6020026020010151601860006101000a8154816001600160a01b0302191690836001600160a01b03160217905550806002815181106110e0576110e06135f6565b6020026020010151601960006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080600381518110611121576111216135f6565b6020026020010151601a60006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080600481518110611162576111626135f6565b6020026020010151601b60006101000a8154816001600160a01b0302191690836001600160a01b03160217905550806005815181106111a3576111a36135f6565b6020026020010151601c60006101000a8154816001600160a01b0302191690836001600160a01b03160217905550806006815181106111e4576111e46135f6565b6020026020010151601d60006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080600781518110611225576112256135f6565b6020026020010151601e60006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080600881518110611266576112666135f6565b6020026020010151601f60006101000a8154816001600160a01b0302191690836001600160a01b0316021790555050565b6040805180820190915260215463ffffffff80821680845264010000000090920416602083015242108015906112d65750806020015163ffffffff1642105b6113225760405162461bcd60e51b815260206004820152601560248201527f50726573616c65206973206e6f742061637469766500000000000000000000006044820152606401610d61565b6008548261132f600c5490565b61133991906134b9565b11156113875760405162461bcd60e51b815260206004820152601a60248201527f4d6178207075626c696320737570706c792065786365656465640000000000006044820152606401610d61565b3482600d54611396919061360c565b146113e35760405162461bcd60e51b815260206004820152601060248201527f57726f6e672045544820616d6f756e74000000000000000000000000000000006044820152606401610d61565b3360009081526024602052604090205460ff166114685760405162461bcd60e51b815260206004820152602260248201527f4f6e6c7920416c6c6f77204c697374656420757365727320417574686f72697a60448201527f65640000000000000000000000000000000000000000000000000000000000006064820152608401610d61565b61147233836127d1565b5050565b601f5474010000000000000000000000000000000000000000900460ff166114e05760405162461bcd60e51b815260206004820152601360248201527f41697264726f7020697320696e616374697665000000000000000000000000006044820152606401610d61565b3360009081526023602052604090205460ff16806115405760405162461bcd60e51b815260206004820152601d60248201527f596f752068617665206e6f2061697264726f707320746f20636c61696d0000006044820152606401610d61565b6008548161154d600c5490565b61155791906134b9565b11156115a55760405162461bcd60e51b815260206004820152601a60248201527f4d6178207075626c696320737570706c792065786365656465640000000000006044820152606401610d61565b6115af33826127d1565b50336000908152602360205260409020805460ff19169055565b6115d16123bf565b60006115dc83612419565b905060006115e983612419565b90508163ffffffff166000106116305760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642074696d6560a01b6044820152606401610d61565b8063ffffffff168263ffffffff161061167a5760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642074696d6560a01b6044820152606401610d61565b6020805463ffffffff8381166401000000000267ffffffffffffffff19909216908516171790556040517fdc98767773ec94104382e719e74b4066edd1fd00fdc7c9b96a02497f7ec147b090600090a150505050565b6116d86123bf565b60095481600a546116e991906134b9565b11156117375760405162461bcd60e51b815260206004820152601b60248201527f4d6178207265736572766520737570706c7920657863656564656400000000006044820152606401610d61565b60005b81811015610f5d57600a80549060006117528361362b565b919050555061176383600a5461280e565b8061176d8161362b565b91505061173a565b6000818152600360205260408120546001600160a01b031680610c665760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610d61565b60006001600160a01b0382166118585760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610d61565b506001600160a01b031660009081526004602052604090205490565b61187c6123bf565b6118866000612828565b565b6118906123bf565b600061189b83612419565b905060006118a883612419565b90508163ffffffff166000106118ef5760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642074696d6560a01b6044820152606401610d61565b8063ffffffff168263ffffffff16106119395760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642074696d6560a01b6044820152606401610d61565b6022805463ffffffff8381166401000000000267ffffffffffffffff19909216908516171790556040517ff41049be3aaada3410d1ff2f7ef8e7e53bc1d324091d5f71d95ea64ea8b6d0a790600090a150505050565b6119976123bf565b60005b81811015610f5d576001602460008585858181106119ba576119ba6135f6565b90506020020160208101906119cf9190612f00565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580611a018161362b565b91505061199a565b611a116123bf565b600d55565b606060028054610c7b90613469565b6040805180820190915260225463ffffffff8082168084526401000000009092041660208301524210801590611a645750806020015163ffffffff1642105b611ab05760405162461bcd60e51b815260206004820152601960248201527f5075626c69632053616c65206973206e6f7420616374697665000000000000006044820152606401610d61565b60085482611abd600c5490565b611ac791906134b9565b1115611b155760405162461bcd60e51b815260206004820152601a60248201527f4d6178207075626c696320737570706c792065786365656465640000000000006044820152606401610d61565b3482600d54611b24919061360c565b146114685760405162461bcd60e51b815260206004820152601060248201527f57726f6e672045544820616d6f756e74000000000000000000000000000000006044820152606401610d61565b611472338383612885565b611b863383612578565b611bf85760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610d61565b611c0484848484612953565b50505050565b611c126123bf565b601754600e5447916001600160a01b0316906108fc90611c346127108561365b565b611c3e919061360c565b6040518115909202916000818181858888f19350505050611c5e57600080fd5b601854600f546001600160a01b03909116906108fc90611c806127108561365b565b611c8a919061360c565b6040518115909202916000818181858888f19350505050611caa57600080fd5b6019546010546001600160a01b03909116906108fc90611ccc6127108561365b565b611cd6919061360c565b6040518115909202916000818181858888f19350505050611cf657600080fd5b601a546011546001600160a01b03909116906108fc90611d186127108561365b565b611d22919061360c565b6040518115909202916000818181858888f19350505050611d4257600080fd5b601b546012546001600160a01b03909116906108fc90611d646127108561365b565b611d6e919061360c565b6040518115909202916000818181858888f19350505050611d8e57600080fd5b601c546013546001600160a01b03909116906108fc90611db06127108561365b565b611dba919061360c565b6040518115909202916000818181858888f19350505050611dda57600080fd5b601d546014546001600160a01b03909116906108fc90611dfc6127108561365b565b611e06919061360c565b6040518115909202916000818181858888f19350505050611e2657600080fd5b601e546015546001600160a01b03909116906108fc90611e486127108561365b565b611e52919061360c565b6040518115909202916000818181858888f19350505050611e7257600080fd5b601f546016546001600160a01b03909116906108fc90611e946127108561365b565b611e9e919061360c565b6040518115909202916000818181858888f19350505050611ebe57600080fd5b50565b604080518082019091526020805463ffffffff80821680855264010000000090920416918301919091524210801590611f035750806020015163ffffffff1642105b611f4f5760405162461bcd60e51b815260206004820152601560248201527f416374206f6e65206973206e6f742061637469766500000000000000000000006044820152606401610d61565b600082116113225760405162461bcd60e51b815260206004820152601c60248201527f596f75206d757374206d696e74206174206c656173742031204e4654000000006044820152606401610d61565b6060611faa82612499565b6000611fb46129dc565b90506000815111611fd45760405180602001604052806000815250611fff565b80611fde846129eb565b604051602001611fef92919061366f565b6040516020818303038152906040525b9392505050565b61200e6123bf565b601f805491151574010000000000000000000000000000000000000000027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6120606123bf565b60405133904780156108fc02916000818181858888f19350505050158015611ebe573d6000803e3d6000fd5b6120946123bf565b60005b81811015610f5d576000602460008585858181106120b7576120b76135f6565b90506020020160208101906120cc9190612f00565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806120fe8161362b565b915050612097565b61210e6123bf565b80600081518110612121576121216135f6565b6020026020010151600e8190555080600181518110612142576121426135f6565b6020026020010151600f8190555080600281518110612163576121636135f6565b602002602001015160108190555080600381518110612184576121846135f6565b6020026020010151601181905550806004815181106121a5576121a56135f6565b6020026020010151601281905550806005815181106121c6576121c66135f6565b6020026020010151601381905550806006815181106121e7576121e76135f6565b602002602001015160148190555080600781518110612208576122086135f6565b602002602001015160158190555080600881518110612229576122296135f6565b602002602001015160168190555050565b6122426123bf565b8281146122915760405162461bcd60e51b815260206004820152600f60248201527f4c656e677468206d69736d6174636800000000000000000000000000000000006044820152606401610d61565b60005b8381101561232b578282828181106122ae576122ae6135f6565b90506020020160208101906122c3919061369e565b602360008787858181106122d9576122d96135f6565b90506020020160208101906122ee9190612f00565b6001600160a01b031681526020810191909152604001600020805460ff191660ff92909216919091179055806123238161362b565b915050612294565b5050505050565b61233a6123bf565b6001600160a01b0381166123b65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610d61565b611ebe81612828565b6000546001600160a01b031633146118865760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d61565b600063ffffffff8211156124955760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201527f32206269747300000000000000000000000000000000000000000000000000006064820152608401610d61565b5090565b6000818152600360205260409020546001600160a01b0316611ebe5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610d61565b6000818152600560205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416908117909155819061253f82611775565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061258483611775565b9050806001600160a01b0316846001600160a01b031614806125cb57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b806125ef5750836001600160a01b03166125e484610e0a565b6001600160a01b0316145b949350505050565b826001600160a01b031661260a82611775565b6001600160a01b0316146126865760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610d61565b6001600160a01b0382166127015760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610d61565b61270c6000826124fd565b6001600160a01b03831660009081526004602052604081208054600192906127359084906134d1565b90915550506001600160a01b03821660009081526004602052604081208054600192906127639084906134b9565b9091555050600081815260036020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60005b81811015610f5d576127ea600c80546001019055565b6127fc836127f7600c5490565b61280e565b806128068161362b565b9150506127d4565b611472828260405180602001604052806000815250612b20565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b0316036128e65760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d61565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61295e8484846125f7565b61296a84848484612ba9565b611c045760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d61565b6060600b8054610c7b90613469565b606081600003612a2e57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612a585780612a428161362b565b9150612a519050600a8361365b565b9150612a32565b60008167ffffffffffffffff811115612a7357612a73613099565b6040519080825280601f01601f191660200182016040528015612a9d576020820181803683370190505b5090505b84156125ef57612ab26001836134d1565b9150612abf600a866136c1565b612aca9060306134b9565b60f81b818381518110612adf57612adf6135f6565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612b19600a8661365b565b9450612aa1565b612b2a8383612d4a565b612b376000848484612ba9565b610f5d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d61565b60006001600160a01b0384163b15612d3f576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290612c069033908990889088906004016136d5565b6020604051808303816000875af1925050508015612c41575060408051601f3d908101601f19168201909252612c3e91810190613711565b60015b612cf4573d808015612c6f576040519150601f19603f3d011682016040523d82523d6000602084013e612c74565b606091505b508051600003612cec5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d61565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506125ef565b506001949350505050565b6001600160a01b038216612da05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d61565b6000818152600360205260409020546001600160a01b031615612e055760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610d61565b6001600160a01b0382166000908152600460205260408120805460019290612e2e9084906134b9565b9091555050600081815260036020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114611ebe57600080fd5b600060208284031215612ed957600080fd5b8135611fff81612e99565b80356001600160a01b0381168114612efb57600080fd5b919050565b600060208284031215612f1257600080fd5b611fff82612ee4565b60005b83811015612f36578181015183820152602001612f1e565b83811115611c045750506000910152565b60008151808452612f5f816020860160208601612f1b565b601f01601f19169290920160200192915050565b602081526000611fff6020830184612f47565b60008060408385031215612f9957600080fd5b50508035926020909101359150565b600060208284031215612fba57600080fd5b5035919050565b60008060408385031215612fd457600080fd5b612fdd83612ee4565b946020939093013593505050565b60008060006060848603121561300057600080fd5b61300984612ee4565b925061301760208501612ee4565b9150604084013590509250925092565b6000806020838503121561303a57600080fd5b823567ffffffffffffffff8082111561305257600080fd5b818501915085601f83011261306657600080fd5b81358181111561307557600080fd5b86602082850101111561308757600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156130d8576130d8613099565b604052919050565b600067ffffffffffffffff8211156130fa576130fa613099565b5060051b60200190565b6000602080838503121561311757600080fd5b823567ffffffffffffffff81111561312e57600080fd5b8301601f8101851361313f57600080fd5b803561315261314d826130e0565b6130af565b81815260059190911b8201830190838101908783111561317157600080fd5b928401925b828410156131965761318784612ee4565b82529284019290840190613176565b979650505050505050565b60008083601f8401126131b357600080fd5b50813567ffffffffffffffff8111156131cb57600080fd5b6020830191508360208260051b85010111156131e657600080fd5b9250929050565b6000806020838503121561320057600080fd5b823567ffffffffffffffff81111561321757600080fd5b613223858286016131a1565b90969095509350505050565b80358015158114612efb57600080fd5b6000806040838503121561325257600080fd5b61325b83612ee4565b91506132696020840161322f565b90509250929050565b6000806000806080858703121561328857600080fd5b61329185612ee4565b935060206132a0818701612ee4565b935060408601359250606086013567ffffffffffffffff808211156132c457600080fd5b818801915088601f8301126132d857600080fd5b8135818111156132ea576132ea613099565b6132fc84601f19601f840116016130af565b9150808252898482850101111561331257600080fd5b808484018584013760008482840101525080935050505092959194509250565b60006020828403121561334457600080fd5b611fff8261322f565b6000806040838503121561336057600080fd5b61336983612ee4565b915061326960208401612ee4565b6000602080838503121561338a57600080fd5b823567ffffffffffffffff8111156133a157600080fd5b8301601f810185136133b257600080fd5b80356133c061314d826130e0565b81815260059190911b820183019083810190878311156133df57600080fd5b928401925b82841015613196578335825292840192908401906133e4565b6000806000806040858703121561341357600080fd5b843567ffffffffffffffff8082111561342b57600080fd5b613437888389016131a1565b9096509450602087013591508082111561345057600080fd5b5061345d878288016131a1565b95989497509550505050565b600181811c9082168061347d57607f821691505b60208210810361349d57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156134cc576134cc6134a3565b500190565b6000828210156134e3576134e36134a3565b500390565b601f821115610f5d57600081815260208120601f850160051c8101602086101561350f5750805b601f850160051c820191505b8181101561352e5782815560010161351b565b505050505050565b67ffffffffffffffff83111561354e5761354e613099565b6135628361355c8354613469565b836134e8565b6000601f841160018114613596576000851561357e5750838201355b600019600387901b1c1916600186901b17835561232b565b600083815260209020601f19861690835b828110156135c757868501358255602094850194600190920191016135a7565b50868210156135e45760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b634e487b7160e01b600052603260045260246000fd5b6000816000190483118215151615613626576136266134a3565b500290565b6000600019820361363e5761363e6134a3565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261366a5761366a613645565b500490565b60008351613681818460208801612f1b565b835190830190613695818360208801612f1b565b01949350505050565b6000602082840312156136b057600080fd5b813560ff81168114611fff57600080fd5b6000826136d0576136d0613645565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526137076080830184612f47565b9695505050505050565b60006020828403121561372357600080fd5b8151611fff81612e9956fea2646970667358221220fb9846f017892609eef8a6764f71c1c1277ccc399d0713a6bc745ec84345d7bd64736f6c634300080f0033

Deployed Bytecode

0x6080604052600436106103b85760003560e01c8063752201f6116101f2578063bb51f32d1161010d578063e17b8b7f116100a0578063f17cc5061161006f578063f17cc50614610b07578063f22e0ce014610b27578063f2fde38b14610b47578063f74ea41814610b6757600080fd5b8063e17b8b7f14610a73578063e8cc00ad14610a89578063e985e9c514610a9e578063ed2fa73214610ae757600080fd5b8063c87b56dd116100dc578063c87b56dd146109eb578063c8af83da14610a0b578063d3b2bc7114610a3d578063d5abeb0114610a5d57600080fd5b8063bb51f32d146109a4578063c2a2747b146109ac578063c3b9f21e146109c2578063c5fab6ac146109d857600080fd5b806395d89b4111610185578063a22cb46511610154578063a22cb4651461092e578063a48caeaa1461094e578063af3b89d91461096e578063b88d4fde1461098457600080fd5b806395d89b41146108d0578063969e9d0c146108e55780639fb17e3414610905578063a035b1fe1461091857600080fd5b8063865de996116101c1578063865de996146108305780638da5cb5b1461087257806391b7f5ed146108905780639426eef8146108b057600080fd5b8063752201f6146107ce5780637e8d3b5e146107e45780637f3942c01461080457806381d01ed31461081a57600080fd5b806343970161116102e25780635fd00fad116102755780636e219667116102445780636e2196671461076357806370a0823114610779578063715018a61461079957806372b308fa146107ae57600080fd5b80635fd00fad146106da578063615db6e1146107035780636352211e146107235780636ad847ff1461074357600080fd5b806355dfbc6f116102b157806355dfbc6f14610664578063590dca3c1461067a5780635b2b251f1461069a5780635e048cc9146106ba57600080fd5b806343970161146105fc578063475053801461061c5780634d7a14001461063c57806354efcc8e1461064f57600080fd5b8063119552a11161035a57806326a74d8e1161032957806326a74d8e1461059057806330176e13146105a657806333705526146105c657806342842e0e146105dc57600080fd5b8063119552a11461050457806315fabac91461052457806318160ddd1461054d57806323b872dd1461057057600080fd5b806306fdde031161039657806306fdde0314610468578063072ab75a1461048a578063081812fc146104ac578063095ea7b3146104e457600080fd5b8063011d5385146103bd57806301ffc9a71461040857806305a3b80914610438575b600080fd5b3480156103c957600080fd5b506021546103e69063ffffffff8082169164010000000090041682565b6040805163ffffffff9384168152929091166020830152015b60405180910390f35b34801561041457600080fd5b50610428610423366004612ec7565b610b87565b60405190151581526020016103ff565b34801561044457600080fd5b50610428610453366004612f00565b60246020526000908152604090205460ff1681565b34801561047457600080fd5b5061047d610c6c565b6040516103ff9190612f73565b34801561049657600080fd5b506104aa6104a5366004612f86565b610cfe565b005b3480156104b857600080fd5b506104cc6104c7366004612fa8565b610e0a565b6040516001600160a01b0390911681526020016103ff565b3480156104f057600080fd5b506104aa6104ff366004612fc1565b610e31565b34801561051057600080fd5b506017546104cc906001600160a01b031681565b34801561053057600080fd5b506022546103e69063ffffffff8082169164010000000090041682565b34801561055957600080fd5b50610562610f62565b6040519081526020016103ff565b34801561057c57600080fd5b506104aa61058b366004612feb565b610f8c565b34801561059c57600080fd5b5061056260085481565b3480156105b257600080fd5b506104aa6105c1366004613027565b611013565b3480156105d257600080fd5b5061056260125481565b3480156105e857600080fd5b506104aa6105f7366004612feb565b611028565b34801561060857600080fd5b506104aa610617366004613104565b611043565b34801561062857600080fd5b50601c546104cc906001600160a01b031681565b6104aa61064a366004612fa8565b611297565b34801561065b57600080fd5b506104aa611476565b34801561067057600080fd5b5061056260145481565b34801561068657600080fd5b506104aa610695366004612f86565b6115c9565b3480156106a657600080fd5b506104aa6106b5366004612fc1565b6116d0565b3480156106c657600080fd5b50601d546104cc906001600160a01b031681565b3480156106e657600080fd5b506020546103e69063ffffffff8082169164010000000090041682565b34801561070f57600080fd5b50601b546104cc906001600160a01b031681565b34801561072f57600080fd5b506104cc61073e366004612fa8565b611775565b34801561074f57600080fd5b50601e546104cc906001600160a01b031681565b34801561076f57600080fd5b5061056260105481565b34801561078557600080fd5b50610562610794366004612f00565b6117da565b3480156107a557600080fd5b506104aa611874565b3480156107ba57600080fd5b506104aa6107c9366004612f86565b611888565b3480156107da57600080fd5b5061056260155481565b3480156107f057600080fd5b506104aa6107ff3660046131ed565b61198f565b34801561081057600080fd5b5061056260165481565b34801561082657600080fd5b50610562600f5481565b34801561083c57600080fd5b5061086061084b366004612f00565b60236020526000908152604090205460ff1681565b60405160ff90911681526020016103ff565b34801561087e57600080fd5b506000546001600160a01b03166104cc565b34801561089c57600080fd5b506104aa6108ab366004612fa8565b611a09565b3480156108bc57600080fd5b506019546104cc906001600160a01b031681565b3480156108dc57600080fd5b5061047d611a16565b3480156108f157600080fd5b506018546104cc906001600160a01b031681565b6104aa610913366004612fa8565b611a25565b34801561092457600080fd5b50610562600d5481565b34801561093a57600080fd5b506104aa61094936600461323f565b611b71565b34801561095a57600080fd5b50601f546104cc906001600160a01b031681565b34801561097a57600080fd5b50610562600a5481565b34801561099057600080fd5b506104aa61099f366004613272565b611b7c565b6104aa611c0a565b3480156109b857600080fd5b50610562600e5481565b3480156109ce57600080fd5b5061056260115481565b6104aa6109e6366004612fa8565b611ec1565b3480156109f757600080fd5b5061047d610a06366004612fa8565b611f9f565b348015610a1757600080fd5b50601f546104289074010000000000000000000000000000000000000000900460ff1681565b348015610a4957600080fd5b506104aa610a58366004613332565b612006565b348015610a6957600080fd5b5061056260095481565b348015610a7f57600080fd5b5061056260135481565b348015610a9557600080fd5b506104aa612058565b348015610aaa57600080fd5b50610428610ab936600461334d565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610af357600080fd5b506104aa610b023660046131ed565b61208c565b348015610b1357600080fd5b506104aa610b22366004613377565b612106565b348015610b3357600080fd5b506104aa610b423660046133fd565b61223a565b348015610b5357600080fd5b506104aa610b62366004612f00565b612332565b348015610b7357600080fd5b50601a546104cc906001600160a01b031681565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480610c1a57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c6657507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060018054610c7b90613469565b80601f0160208091040260200160405190810160405280929190818152602001828054610ca790613469565b8015610cf45780601f10610cc957610100808354040283529160200191610cf4565b820191906000526020600020905b815481529060010190602001808311610cd757829003601f168201915b5050505050905090565b610d066123bf565b6000610d1183612419565b90506000610d1e83612419565b90508163ffffffff16600010610d6a5760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642074696d6560a01b60448201526064015b60405180910390fd5b8063ffffffff168263ffffffff1610610db45760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642074696d6560a01b6044820152606401610d61565b6021805463ffffffff8381166401000000000267ffffffffffffffff19909216908516171790556040517f38a695a43aa42ba29888248c741a9a850fe0a56f712717bf2776fc8fea46541590600090a150505050565b6000610e1582612499565b506000908152600560205260409020546001600160a01b031690565b6000610e3c82611775565b9050806001600160a01b0316836001600160a01b031603610ec55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610d61565b336001600160a01b0382161480610ee15750610ee18133610ab9565b610f535760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610d61565b610f5d83836124fd565b505050565b6000600854600a54610f73600c5490565b610f7d91906134b9565b610f8791906134d1565b905090565b610f963382612578565b6110085760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610d61565b610f5d8383836125f7565b61101b6123bf565b600b610f5d828483613536565b610f5d83838360405180602001604052806000815250611b7c565b61104b6123bf565b8060008151811061105e5761105e6135f6565b6020026020010151601760006101000a8154816001600160a01b0302191690836001600160a01b031602179055508060018151811061109f5761109f6135f6565b6020026020010151601860006101000a8154816001600160a01b0302191690836001600160a01b03160217905550806002815181106110e0576110e06135f6565b6020026020010151601960006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080600381518110611121576111216135f6565b6020026020010151601a60006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080600481518110611162576111626135f6565b6020026020010151601b60006101000a8154816001600160a01b0302191690836001600160a01b03160217905550806005815181106111a3576111a36135f6565b6020026020010151601c60006101000a8154816001600160a01b0302191690836001600160a01b03160217905550806006815181106111e4576111e46135f6565b6020026020010151601d60006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080600781518110611225576112256135f6565b6020026020010151601e60006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080600881518110611266576112666135f6565b6020026020010151601f60006101000a8154816001600160a01b0302191690836001600160a01b0316021790555050565b6040805180820190915260215463ffffffff80821680845264010000000090920416602083015242108015906112d65750806020015163ffffffff1642105b6113225760405162461bcd60e51b815260206004820152601560248201527f50726573616c65206973206e6f742061637469766500000000000000000000006044820152606401610d61565b6008548261132f600c5490565b61133991906134b9565b11156113875760405162461bcd60e51b815260206004820152601a60248201527f4d6178207075626c696320737570706c792065786365656465640000000000006044820152606401610d61565b3482600d54611396919061360c565b146113e35760405162461bcd60e51b815260206004820152601060248201527f57726f6e672045544820616d6f756e74000000000000000000000000000000006044820152606401610d61565b3360009081526024602052604090205460ff166114685760405162461bcd60e51b815260206004820152602260248201527f4f6e6c7920416c6c6f77204c697374656420757365727320417574686f72697a60448201527f65640000000000000000000000000000000000000000000000000000000000006064820152608401610d61565b61147233836127d1565b5050565b601f5474010000000000000000000000000000000000000000900460ff166114e05760405162461bcd60e51b815260206004820152601360248201527f41697264726f7020697320696e616374697665000000000000000000000000006044820152606401610d61565b3360009081526023602052604090205460ff16806115405760405162461bcd60e51b815260206004820152601d60248201527f596f752068617665206e6f2061697264726f707320746f20636c61696d0000006044820152606401610d61565b6008548161154d600c5490565b61155791906134b9565b11156115a55760405162461bcd60e51b815260206004820152601a60248201527f4d6178207075626c696320737570706c792065786365656465640000000000006044820152606401610d61565b6115af33826127d1565b50336000908152602360205260409020805460ff19169055565b6115d16123bf565b60006115dc83612419565b905060006115e983612419565b90508163ffffffff166000106116305760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642074696d6560a01b6044820152606401610d61565b8063ffffffff168263ffffffff161061167a5760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642074696d6560a01b6044820152606401610d61565b6020805463ffffffff8381166401000000000267ffffffffffffffff19909216908516171790556040517fdc98767773ec94104382e719e74b4066edd1fd00fdc7c9b96a02497f7ec147b090600090a150505050565b6116d86123bf565b60095481600a546116e991906134b9565b11156117375760405162461bcd60e51b815260206004820152601b60248201527f4d6178207265736572766520737570706c7920657863656564656400000000006044820152606401610d61565b60005b81811015610f5d57600a80549060006117528361362b565b919050555061176383600a5461280e565b8061176d8161362b565b91505061173a565b6000818152600360205260408120546001600160a01b031680610c665760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610d61565b60006001600160a01b0382166118585760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610d61565b506001600160a01b031660009081526004602052604090205490565b61187c6123bf565b6118866000612828565b565b6118906123bf565b600061189b83612419565b905060006118a883612419565b90508163ffffffff166000106118ef5760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642074696d6560a01b6044820152606401610d61565b8063ffffffff168263ffffffff16106119395760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642074696d6560a01b6044820152606401610d61565b6022805463ffffffff8381166401000000000267ffffffffffffffff19909216908516171790556040517ff41049be3aaada3410d1ff2f7ef8e7e53bc1d324091d5f71d95ea64ea8b6d0a790600090a150505050565b6119976123bf565b60005b81811015610f5d576001602460008585858181106119ba576119ba6135f6565b90506020020160208101906119cf9190612f00565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580611a018161362b565b91505061199a565b611a116123bf565b600d55565b606060028054610c7b90613469565b6040805180820190915260225463ffffffff8082168084526401000000009092041660208301524210801590611a645750806020015163ffffffff1642105b611ab05760405162461bcd60e51b815260206004820152601960248201527f5075626c69632053616c65206973206e6f7420616374697665000000000000006044820152606401610d61565b60085482611abd600c5490565b611ac791906134b9565b1115611b155760405162461bcd60e51b815260206004820152601a60248201527f4d6178207075626c696320737570706c792065786365656465640000000000006044820152606401610d61565b3482600d54611b24919061360c565b146114685760405162461bcd60e51b815260206004820152601060248201527f57726f6e672045544820616d6f756e74000000000000000000000000000000006044820152606401610d61565b611472338383612885565b611b863383612578565b611bf85760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610d61565b611c0484848484612953565b50505050565b611c126123bf565b601754600e5447916001600160a01b0316906108fc90611c346127108561365b565b611c3e919061360c565b6040518115909202916000818181858888f19350505050611c5e57600080fd5b601854600f546001600160a01b03909116906108fc90611c806127108561365b565b611c8a919061360c565b6040518115909202916000818181858888f19350505050611caa57600080fd5b6019546010546001600160a01b03909116906108fc90611ccc6127108561365b565b611cd6919061360c565b6040518115909202916000818181858888f19350505050611cf657600080fd5b601a546011546001600160a01b03909116906108fc90611d186127108561365b565b611d22919061360c565b6040518115909202916000818181858888f19350505050611d4257600080fd5b601b546012546001600160a01b03909116906108fc90611d646127108561365b565b611d6e919061360c565b6040518115909202916000818181858888f19350505050611d8e57600080fd5b601c546013546001600160a01b03909116906108fc90611db06127108561365b565b611dba919061360c565b6040518115909202916000818181858888f19350505050611dda57600080fd5b601d546014546001600160a01b03909116906108fc90611dfc6127108561365b565b611e06919061360c565b6040518115909202916000818181858888f19350505050611e2657600080fd5b601e546015546001600160a01b03909116906108fc90611e486127108561365b565b611e52919061360c565b6040518115909202916000818181858888f19350505050611e7257600080fd5b601f546016546001600160a01b03909116906108fc90611e946127108561365b565b611e9e919061360c565b6040518115909202916000818181858888f19350505050611ebe57600080fd5b50565b604080518082019091526020805463ffffffff80821680855264010000000090920416918301919091524210801590611f035750806020015163ffffffff1642105b611f4f5760405162461bcd60e51b815260206004820152601560248201527f416374206f6e65206973206e6f742061637469766500000000000000000000006044820152606401610d61565b600082116113225760405162461bcd60e51b815260206004820152601c60248201527f596f75206d757374206d696e74206174206c656173742031204e4654000000006044820152606401610d61565b6060611faa82612499565b6000611fb46129dc565b90506000815111611fd45760405180602001604052806000815250611fff565b80611fde846129eb565b604051602001611fef92919061366f565b6040516020818303038152906040525b9392505050565b61200e6123bf565b601f805491151574010000000000000000000000000000000000000000027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6120606123bf565b60405133904780156108fc02916000818181858888f19350505050158015611ebe573d6000803e3d6000fd5b6120946123bf565b60005b81811015610f5d576000602460008585858181106120b7576120b76135f6565b90506020020160208101906120cc9190612f00565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806120fe8161362b565b915050612097565b61210e6123bf565b80600081518110612121576121216135f6565b6020026020010151600e8190555080600181518110612142576121426135f6565b6020026020010151600f8190555080600281518110612163576121636135f6565b602002602001015160108190555080600381518110612184576121846135f6565b6020026020010151601181905550806004815181106121a5576121a56135f6565b6020026020010151601281905550806005815181106121c6576121c66135f6565b6020026020010151601381905550806006815181106121e7576121e76135f6565b602002602001015160148190555080600781518110612208576122086135f6565b602002602001015160158190555080600881518110612229576122296135f6565b602002602001015160168190555050565b6122426123bf565b8281146122915760405162461bcd60e51b815260206004820152600f60248201527f4c656e677468206d69736d6174636800000000000000000000000000000000006044820152606401610d61565b60005b8381101561232b578282828181106122ae576122ae6135f6565b90506020020160208101906122c3919061369e565b602360008787858181106122d9576122d96135f6565b90506020020160208101906122ee9190612f00565b6001600160a01b031681526020810191909152604001600020805460ff191660ff92909216919091179055806123238161362b565b915050612294565b5050505050565b61233a6123bf565b6001600160a01b0381166123b65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610d61565b611ebe81612828565b6000546001600160a01b031633146118865760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d61565b600063ffffffff8211156124955760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201527f32206269747300000000000000000000000000000000000000000000000000006064820152608401610d61565b5090565b6000818152600360205260409020546001600160a01b0316611ebe5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610d61565b6000818152600560205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416908117909155819061253f82611775565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061258483611775565b9050806001600160a01b0316846001600160a01b031614806125cb57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b806125ef5750836001600160a01b03166125e484610e0a565b6001600160a01b0316145b949350505050565b826001600160a01b031661260a82611775565b6001600160a01b0316146126865760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610d61565b6001600160a01b0382166127015760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610d61565b61270c6000826124fd565b6001600160a01b03831660009081526004602052604081208054600192906127359084906134d1565b90915550506001600160a01b03821660009081526004602052604081208054600192906127639084906134b9565b9091555050600081815260036020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60005b81811015610f5d576127ea600c80546001019055565b6127fc836127f7600c5490565b61280e565b806128068161362b565b9150506127d4565b611472828260405180602001604052806000815250612b20565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b0316036128e65760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d61565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61295e8484846125f7565b61296a84848484612ba9565b611c045760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d61565b6060600b8054610c7b90613469565b606081600003612a2e57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612a585780612a428161362b565b9150612a519050600a8361365b565b9150612a32565b60008167ffffffffffffffff811115612a7357612a73613099565b6040519080825280601f01601f191660200182016040528015612a9d576020820181803683370190505b5090505b84156125ef57612ab26001836134d1565b9150612abf600a866136c1565b612aca9060306134b9565b60f81b818381518110612adf57612adf6135f6565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612b19600a8661365b565b9450612aa1565b612b2a8383612d4a565b612b376000848484612ba9565b610f5d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d61565b60006001600160a01b0384163b15612d3f576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290612c069033908990889088906004016136d5565b6020604051808303816000875af1925050508015612c41575060408051601f3d908101601f19168201909252612c3e91810190613711565b60015b612cf4573d808015612c6f576040519150601f19603f3d011682016040523d82523d6000602084013e612c74565b606091505b508051600003612cec5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d61565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506125ef565b506001949350505050565b6001600160a01b038216612da05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d61565b6000818152600360205260409020546001600160a01b031615612e055760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610d61565b6001600160a01b0382166000908152600460205260408120805460019290612e2e9084906134b9565b9091555050600081815260036020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114611ebe57600080fd5b600060208284031215612ed957600080fd5b8135611fff81612e99565b80356001600160a01b0381168114612efb57600080fd5b919050565b600060208284031215612f1257600080fd5b611fff82612ee4565b60005b83811015612f36578181015183820152602001612f1e565b83811115611c045750506000910152565b60008151808452612f5f816020860160208601612f1b565b601f01601f19169290920160200192915050565b602081526000611fff6020830184612f47565b60008060408385031215612f9957600080fd5b50508035926020909101359150565b600060208284031215612fba57600080fd5b5035919050565b60008060408385031215612fd457600080fd5b612fdd83612ee4565b946020939093013593505050565b60008060006060848603121561300057600080fd5b61300984612ee4565b925061301760208501612ee4565b9150604084013590509250925092565b6000806020838503121561303a57600080fd5b823567ffffffffffffffff8082111561305257600080fd5b818501915085601f83011261306657600080fd5b81358181111561307557600080fd5b86602082850101111561308757600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156130d8576130d8613099565b604052919050565b600067ffffffffffffffff8211156130fa576130fa613099565b5060051b60200190565b6000602080838503121561311757600080fd5b823567ffffffffffffffff81111561312e57600080fd5b8301601f8101851361313f57600080fd5b803561315261314d826130e0565b6130af565b81815260059190911b8201830190838101908783111561317157600080fd5b928401925b828410156131965761318784612ee4565b82529284019290840190613176565b979650505050505050565b60008083601f8401126131b357600080fd5b50813567ffffffffffffffff8111156131cb57600080fd5b6020830191508360208260051b85010111156131e657600080fd5b9250929050565b6000806020838503121561320057600080fd5b823567ffffffffffffffff81111561321757600080fd5b613223858286016131a1565b90969095509350505050565b80358015158114612efb57600080fd5b6000806040838503121561325257600080fd5b61325b83612ee4565b91506132696020840161322f565b90509250929050565b6000806000806080858703121561328857600080fd5b61329185612ee4565b935060206132a0818701612ee4565b935060408601359250606086013567ffffffffffffffff808211156132c457600080fd5b818801915088601f8301126132d857600080fd5b8135818111156132ea576132ea613099565b6132fc84601f19601f840116016130af565b9150808252898482850101111561331257600080fd5b808484018584013760008482840101525080935050505092959194509250565b60006020828403121561334457600080fd5b611fff8261322f565b6000806040838503121561336057600080fd5b61336983612ee4565b915061326960208401612ee4565b6000602080838503121561338a57600080fd5b823567ffffffffffffffff8111156133a157600080fd5b8301601f810185136133b257600080fd5b80356133c061314d826130e0565b81815260059190911b820183019083810190878311156133df57600080fd5b928401925b82841015613196578335825292840192908401906133e4565b6000806000806040858703121561341357600080fd5b843567ffffffffffffffff8082111561342b57600080fd5b613437888389016131a1565b9096509450602087013591508082111561345057600080fd5b5061345d878288016131a1565b95989497509550505050565b600181811c9082168061347d57607f821691505b60208210810361349d57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156134cc576134cc6134a3565b500190565b6000828210156134e3576134e36134a3565b500390565b601f821115610f5d57600081815260208120601f850160051c8101602086101561350f5750805b601f850160051c820191505b8181101561352e5782815560010161351b565b505050505050565b67ffffffffffffffff83111561354e5761354e613099565b6135628361355c8354613469565b836134e8565b6000601f841160018114613596576000851561357e5750838201355b600019600387901b1c1916600186901b17835561232b565b600083815260209020601f19861690835b828110156135c757868501358255602094850194600190920191016135a7565b50868210156135e45760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b634e487b7160e01b600052603260045260246000fd5b6000816000190483118215151615613626576136266134a3565b500290565b6000600019820361363e5761363e6134a3565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261366a5761366a613645565b500490565b60008351613681818460208801612f1b565b835190830190613695818360208801612f1b565b01949350505050565b6000602082840312156136b057600080fd5b813560ff81168114611fff57600080fd5b6000826136d0576136d0613645565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526137076080830184612f47565b9695505050505050565b60006020828403121561372357600080fd5b8151611fff81612e9956fea2646970667358221220fb9846f017892609eef8a6764f71c1c1277ccc399d0713a6bc745ec84345d7bd64736f6c634300080f0033

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.