ETH Price: $3,335.87 (-1.84%)

Token

The Pigeon Social (TPS)
 

Overview

Max Total Supply

10,001 TPS

Holders

1,260

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
14 TPS
0x94a88c4fd1c49681b6f02701e867a3b105121ef0
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

The Pigeon Social (TPS) is a collection of 10,000 hand drawn and randomly generated NFTs that fly around on the Ethereum Blockchain. TPS Members can participate in exclusive events such as NFT raffles, community giveaways, and lots more. All pigeons are dope, but some are rarer than others.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
ThePigeonSocial

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.8.0;

import './Blimpie/ERC721EnumerableB.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

contract ThePigeonSocial is ERC721EnumerableB, Ownable, PaymentSplitter {
    using Strings for uint256;

    uint256 private _price = 0.08 ether;

    string public _baseTokenURI = 'https://thepigeonsocial.com/metadata.php?tokenID=';
    string public _baseTokenSuffix = '.json';
    
    string public PIGEON_PROVENANCE = '';

    uint256 public MAX_TOKENS_PER_TRANSACTION = 20;

    uint256 public MAX_SUPPLY = 10001;

    uint256 public _presaleStartTime = 1635235190; // Tuesday Oct 26 @ 10am CET
    uint256 public _presaleEndTime = 1635282000; // Tuesday Oct 26 @ 10pm CET
    uint256 public _startTime = 1635454800; // Thursday Oct 28 @ 10pm CET

    string public LICENSE_TEXT = ""; // IT IS WHAT IT SAYS

    bool licenseLocked = false; // TEAM CAN'T EDIT THE LICENSE AFTER THIS GETS TRUE

    bool public isMetadataRevealed = false;

    event licenseisLocked(string _licenseText);

    // Withdrawal addresses
    address t1 = 0x71996EE4ca39C7833BD12AD64C7792c3AE19f48B;
    address t2 = 0x0B2d070b8062F1B8694d245fF8FC41cb02557F6E;
    address t3 = 0xBB12075398553702a676C77f8e2FF016165e8a00;
    address t4 = 0xB7edf3Cbb58ecb74BdE6298294c7AAb339F3cE4a;

    address[] addressList = [t1, t2, t3, t4];
    uint256[] shareList = [50, 425, 425, 100];

    mapping(address => bool) _premint;

    constructor()
    ERC721B("The Pigeon Social", "TPS")
    PaymentSplitter(addressList, shareList)  {
      //skip 0;
      _owners.push(address(0));
    }

    function tokenURI(uint256 tokenId) external override view returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

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

    function mint(uint256 _count) external payable {
        require( _count <= MAX_TOKENS_PER_TRANSACTION, "You can mint a maximum of 20 Pigeons at once" );
        require( block.timestamp >= _startTime, "Public sale has not started yet" );

        uint256 supply = totalSupply();
        require( supply + _count <= MAX_SUPPLY,        "Exceeds max Pigeon supply" );
        require( msg.value >= _price * _count,         "Ether sent is not correct" );

        for(uint256 i = 0; i < _count; ++i){
            _safeMint( msg.sender, supply + i, "" );
        }
    }

    function premint(uint256 _count) external payable {
        require( _count < 2, "You can only premint 1 Pigeon" );
        require( !_premint[msg.sender], "You can only premint 1 Pigeon" );
        require( block.timestamp > _presaleStartTime && block.timestamp < _presaleEndTime, "Presale has not started yet" );

        uint256 supply = totalSupply();
        require( supply + _count <= MAX_SUPPLY,        "Exceeds max Pigeon supply" );
        require( msg.value >= _price * _count,         "Ether sent is not correct" );

        _safeMint( msg.sender, supply + 1, "" );
        _premint[msg.sender] = true;
    }

    function airdrop(address _wallet, uint256 _count) external onlyOwner {
        uint256 supply = totalSupply();
        require(supply + _count <= MAX_SUPPLY, "Exceeds maximum Pigeon supply");
        
        for(uint256 i = 0; i < _count; ++i){
            _safeMint(_wallet, supply + i, "" );
        }
    }

    // Just in case Eth does some crazy stuff
    function setPrice(uint256 _newPrice) external onlyOwner {
        _price = _newPrice;
    }

    function getPrice() external view returns (uint256){
            return _price;
    }

    function setMaxSupply (uint256 _newMaxSupply) external onlyOwner { 
        MAX_SUPPLY = _newMaxSupply;
    }

    function setBaseURI(string calldata _newBaseURI, string calldata _newSuffix) external onlyOwner {
        _baseTokenURI = _newBaseURI;
        _baseTokenSuffix = _newSuffix;
    }

    function setProvenanceHash(string memory _provenanceHash) external onlyOwner {
        PIGEON_PROVENANCE = _provenanceHash;
    }
    
    // Returns the license for tokens
    function tokenLicense(uint _id) external view returns(string memory) {
        require(_id < totalSupply(), "Invalid ID");
        return LICENSE_TEXT;
    }
    
    // Locks the license to prevent further changes 
    function lockLicense() external onlyOwner {
        licenseLocked =  true;
        emit licenseisLocked(LICENSE_TEXT);
    }
    
    // Change the license
    function changeLicense(string memory _license) external onlyOwner {
        require(licenseLocked == false, "License already locked");
        LICENSE_TEXT = _license;
    }

    function walletOfOwner(address _owner) external view returns(uint256[] memory) {
        uint256 tokenCount = balanceOf(_owner);

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

    function setPresaleStartTime(uint256 _newStartTime) external onlyOwner {
        _presaleStartTime = _newStartTime;
    }

    function setPresaleEndTime(uint256 _newEndTime) external onlyOwner {
        _presaleEndTime = _newEndTime;
    }
    
    function setStartTime(uint256 _newStartTime) external onlyOwner {
        _startTime = _newStartTime;
    }

    function setIsMetadataRevealed(bool _newState) external onlyOwner {
        isMetadataRevealed = _newState;
    }
}

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

pragma solidity ^0.8.0;

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

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721EnumerableB is ERC721B, IERC721Enumerable {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721B) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }

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

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

        require(false, "ERC721Enumerable: owner index out of bounds");
    }

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

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

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

pragma solidity ^0.8.0;

/********************
* @author: Squeebo *
********************/

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    address[] internal _owners;

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

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

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

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

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

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

        return count;
    }

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

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


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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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


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

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

        _beforeTokenTransfer(address(0), to, tokenId);
        _owners.push(to);

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

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

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

        // Clear approvals
        _approve(address(0), tokenId);
        _owners[tokenId] = address(0);

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

        emit Transfer(from, to, tokenId);
    }

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


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

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

File 4 of 15 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 15 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 6 of 15 : ERC165.sol
// SPDX-License-Identifier: MIT

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 7 of 15 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 8 of 15 : Context.sol
// SPDX-License-Identifier: MIT

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 9 of 15 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 15 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

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 11 of 15 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 12 of 15 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 13 of 15 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 14 of 15 : PaymentSplitter.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Address.sol";
import "../utils/Context.sol";
import "../utils/math/SafeMath.sol";

/**
 * @title PaymentSplitter
 * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware
 * that the Ether will be split in this way, since it is handled transparently by the contract.
 *
 * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each
 * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim
 * an amount proportional to the percentage of total shares they were assigned.
 *
 * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
 * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
 * function.
 */
contract PaymentSplitter is Context {
    event PayeeAdded(address account, uint256 shares);
    event PaymentReleased(address to, uint256 amount);
    event PaymentReceived(address from, uint256 amount);

    uint256 private _totalShares;
    uint256 private _totalReleased;

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

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

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

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

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

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

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

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

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

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

        uint256 totalReceived = address(this).balance + _totalReleased;
        uint256 payment = (totalReceived * _shares[account]) / _totalShares - _released[account];

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

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

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

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

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

File 15 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_msgSender());
    }

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_licenseText","type":"string"}],"name":"licenseisLocked","type":"event"},{"inputs":[],"name":"LICENSE_TEXT","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS_PER_TRANSACTION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PIGEON_PROVENANCE","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_baseTokenSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_presaleEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_presaleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"airdrop","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":[{"internalType":"string","name":"_license","type":"string"}],"name":"changeLicense","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":[],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMetadataRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockLicense","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"premint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"},{"internalType":"string","name":"_newSuffix","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_newState","type":"bool"}],"name":"setIsMetadataRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newEndTime","type":"uint256"}],"name":"setPresaleEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newStartTime","type":"uint256"}],"name":"setPresaleStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_provenanceHash","type":"string"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newStartTime","type":"uint256"}],"name":"setStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"tokenLicense","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"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":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

67011c37937e080000600b5560e060405260316080818152906200376360a03980516200003591600c91602090910190620006df565b5060408051808201909152600580825264173539b7b760d91b60209092019182526200006491600d91620006df565b506040805160208101918290526000908190526200008591600e91620006df565b506014600f819055612711601055636177b5766011556361786c5060125563617b0f50601355604080516020810191829052600090819052620000ca929190620006df565b50601580546001600160b01b0319167571996ee4ca39c7833bd12ad64c7792c3ae19f48b0000179081905560168054730b2d070b8062f1b8694d245ff8fc41cb02557f6e6001600160a01b031991821681179092556017805473bb12075398553702a676c77f8e2ff016165e8a0090831681179091556018805473b7edf3cbb58ecb74bde6298294c7aab339f3ce4a931683179055604080516080810182526001600160a01b03620100009096049590951685526020850193909352918301919091526060820152620001a29060199060046200076e565b5060408051608081018252603281526101a9602082018190529181019190915260646060820152620001d990601a906004620007c6565b50348015620001e757600080fd5b5060198054806020026020016040519081016040528092919081815260200182805480156200024057602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831162000221575b5050505050601a8054806020026020016040519081016040528092919081815260200182805480156200029357602002820191906000526020600020905b8154815260200190600101908083116200027e575b50506040805180820182526011815270151a1948141a59d95bdb8814dbd8da585b607a1b60208083019182528351808501909452600384526254505360e81b908401528151919550919350620002ee925060009190620006df565b50805162000304906001906020840190620006df565b505050620003216200031b6200049b60201b60201c565b6200049f565b8051825114620003935760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620003e65760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f2070617965657300000000000060448201526064016200038a565b60005b825181101562000452576200043d8382815181106200040c576200040c62000821565b602002602001015183838151811062000429576200042962000821565b6020026020010151620004f160201b60201c565b8062000449816200084d565b915050620003e9565b5050600280546001810182556000919091527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b031916905550620008c3565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166200055e5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016200038a565b60008111620005b05760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200038a565b6001600160a01b038216600090815260086020526040902054156200062c5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016200038a565b600a8054600181019091557fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80180546001600160a01b0319166001600160a01b0384169081179091556000908152600860205260409020819055600654620006969082906200086b565b600655604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b828054620006ed9062000886565b90600052602060002090601f0160209004810192826200071157600085556200075c565b82601f106200072c57805160ff19168380011785556200075c565b828001600101855582156200075c579182015b828111156200075c5782518255916020019190600101906200073f565b506200076a9291506200080a565b5090565b8280548282559060005260206000209081019282156200075c579160200282015b828111156200075c57825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906200078f565b8280548282559060005260206000209081019282156200075c579160200282015b828111156200075c578251829061ffff16905591602001919060010190620007e7565b5b808211156200076a57600081556001016200080b565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141562000864576200086462000837565b5060010190565b6000821982111562000881576200088162000837565b500190565b600181811c908216806200089b57607f821691505b60208210811415620008bd57634e487b7160e01b600052602260045260246000fd5b50919050565b612e9080620008d36000396000f3fe6080604052600436106102e85760003560e01c80638b83209b11610190578063b88d4fde116100dc578063cfc86f7b11610095578063e985e9c51161006f578063e985e9c5146108d6578063f2fde38b1461091f578063fa1acb5c1461093f578063fb50eb0b1461095557600080fd5b8063cfc86f7b1461088c578063d9b137b2146108a1578063e33b7de3146108c157600080fd5b8063b88d4fde146107cc578063bf4702fc146107ec578063c87b56dd14610801578063ce7c2ac214610821578063cec6bab214610857578063cfa0136f1461086c57600080fd5b806398d5fdca11610149578063a0712d6811610123578063a0712d6814610763578063a22cb46514610776578063a91b9b2a14610796578063b09904b5146107ac57600080fd5b806398d5fdca146107265780639c3e72bd1461073b5780639d5aef301461075057600080fd5b80638b83209b1461065d5780638ba4cc3c1461067d5780638da5cb5b1461069d57806391b7f5ed146106bb57806395d89b41146106db5780639852595c146106f057600080fd5b806332cb6b0c1161024f5780634f6ccce7116102085780636790a9de116101e25780636790a9de146105e85780636f8b44b01461060857806370a0823114610628578063715018a61461064857600080fd5b80634f6ccce7146105925780634fce1de3146105b25780636352211e146105c857600080fd5b806332cb6b0c146104db5780633a98ef39146104f15780633cb8dcdd146105065780633e0a322d1461052557806342842e0e14610545578063438b63001461056557600080fd5b806318160ddd116102a157806318160ddd146104275780631916558714610446578063197c9d7c1461046657806323b872dd1461047b578063296cab551461049b5780632f745c59146104bb57600080fd5b806301ffc9a7146103365780630677d97b1461036b57806306fdde031461038d578063081812fc146103af578063095ea7b3146103e7578063109695231461040757600080fd5b36610331577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561034257600080fd5b50610356610351366004612682565b61096b565b60405190151581526020015b60405180910390f35b34801561037757600080fd5b5061038b6103863660046126b4565b610996565b005b34801561039957600080fd5b506103a26109e3565b6040516103629190612727565b3480156103bb57600080fd5b506103cf6103ca36600461273a565b610a75565b6040516001600160a01b039091168152602001610362565b3480156103f357600080fd5b5061038b610402366004612768565b610afd565b34801561041357600080fd5b5061038b610422366004612820565b610c13565b34801561043357600080fd5b506002545b604051908152602001610362565b34801561045257600080fd5b5061038b610461366004612869565b610c54565b34801561047257600080fd5b506103a2610e25565b34801561048757600080fd5b5061038b610496366004612886565b610eb3565b3480156104a757600080fd5b5061038b6104b636600461273a565b610ee4565b3480156104c757600080fd5b506104386104d6366004612768565b610f13565b3480156104e757600080fd5b5061043860105481565b3480156104fd57600080fd5b50600654610438565b34801561051257600080fd5b5060155461035690610100900460ff1681565b34801561053157600080fd5b5061038b61054036600461273a565b610fc2565b34801561055157600080fd5b5061038b610560366004612886565b610ff1565b34801561057157600080fd5b50610585610580366004612869565b61100c565b60405161036291906128c7565b34801561059e57600080fd5b506104386105ad36600461273a565b6110ae565b3480156105be57600080fd5b50610438600f5481565b3480156105d457600080fd5b506103cf6105e336600461273a565b611120565b3480156105f457600080fd5b5061038b610603366004612954565b6111ac565b34801561061457600080fd5b5061038b61062336600461273a565b6111f6565b34801561063457600080fd5b50610438610643366004612869565b611225565b34801561065457600080fd5b5061038b6112f7565b34801561066957600080fd5b506103cf61067836600461273a565b61132d565b34801561068957600080fd5b5061038b610698366004612768565b61135d565b3480156106a957600080fd5b506005546001600160a01b03166103cf565b3480156106c757600080fd5b5061038b6106d636600461273a565b611434565b3480156106e757600080fd5b506103a2611463565b3480156106fc57600080fd5b5061043861070b366004612869565b6001600160a01b031660009081526009602052604090205490565b34801561073257600080fd5b50600b54610438565b34801561074757600080fd5b506103a2611472565b61038b61075e36600461273a565b61147f565b61038b61077136600461273a565b611678565b34801561078257600080fd5b5061038b6107913660046129c0565b611818565b3480156107a257600080fd5b5061043860115481565b3480156107b857600080fd5b5061038b6107c7366004612820565b6118dd565b3480156107d857600080fd5b5061038b6107e73660046129f5565b611966565b3480156107f857600080fd5b5061038b611998565b34801561080d57600080fd5b506103a261081c36600461273a565b611a0a565b34801561082d57600080fd5b5061043861083c366004612869565b6001600160a01b031660009081526008602052604090205490565b34801561086357600080fd5b506103a2611b5b565b34801561087857600080fd5b5061038b61088736600461273a565b611b68565b34801561089857600080fd5b506103a2611b97565b3480156108ad57600080fd5b506103a26108bc36600461273a565b611ba4565b3480156108cd57600080fd5b50600754610438565b3480156108e257600080fd5b506103566108f1366004612a75565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b34801561092b57600080fd5b5061038b61093a366004612869565b611c7c565b34801561094b57600080fd5b5061043860135481565b34801561096157600080fd5b5061043860125481565b60006001600160e01b0319821663780e9d6360e01b1480610990575061099082611d17565b92915050565b6005546001600160a01b031633146109c95760405162461bcd60e51b81526004016109c090612aae565b60405180910390fd5b601580549115156101000261ff0019909216919091179055565b6060600080546109f290612ae3565b80601f0160208091040260200160405190810160405280929190818152602001828054610a1e90612ae3565b8015610a6b5780601f10610a4057610100808354040283529160200191610a6b565b820191906000526020600020905b815481529060010190602001808311610a4e57829003601f168201915b5050505050905090565b6000610a8082611d67565b610ae15760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109c0565b506000908152600360205260409020546001600160a01b031690565b6000610b0882611120565b9050806001600160a01b0316836001600160a01b03161415610b765760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016109c0565b336001600160a01b0382161480610b925750610b9281336108f1565b610c045760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109c0565b610c0e8383611db1565b505050565b6005546001600160a01b03163314610c3d5760405162461bcd60e51b81526004016109c090612aae565b8051610c5090600e906020840190612563565b5050565b6001600160a01b038116600090815260086020526040902054610cc85760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084016109c0565b600060075447610cd89190612b34565b6001600160a01b0383166000908152600960209081526040808320546006546008909352908320549394509192610d0f9085612b4c565b610d199190612b81565b610d239190612b95565b905080610d865760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b60648201526084016109c0565b6001600160a01b038316600090815260096020526040902054610daa908290612b34565b6001600160a01b038416600090815260096020526040902055600754610dd1908290612b34565b600755610dde8382611e1f565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b600d8054610e3290612ae3565b80601f0160208091040260200160405190810160405280929190818152602001828054610e5e90612ae3565b8015610eab5780601f10610e8057610100808354040283529160200191610eab565b820191906000526020600020905b815481529060010190602001808311610e8e57829003601f168201915b505050505081565b610ebd3382611f38565b610ed95760405162461bcd60e51b81526004016109c090612bac565b610c0e838383612022565b6005546001600160a01b03163314610f0e5760405162461bcd60e51b81526004016109c090612aae565b601155565b6000610f1e83611225565b8210610f3c5760405162461bcd60e51b81526004016109c090612bfd565b6000805b600254811015610fa95760028181548110610f5d57610f5d612c48565b6000918252602090912001546001600160a01b0386811691161415610f995783821415610f8d5791506109909050565b610f9682612c5e565b91505b610fa281612c5e565b9050610f40565b5060405162461bcd60e51b81526004016109c090612bfd565b6005546001600160a01b03163314610fec5760405162461bcd60e51b81526004016109c090612aae565b601355565b610c0e83838360405180602001604052806000815250611966565b6060600061101983611225565b905060008167ffffffffffffffff81111561103657611036612794565b60405190808252806020026020018201604052801561105f578160200160208202803683370190505b50905060005b828110156110a6576110778582610f13565b82828151811061108957611089612c48565b60209081029190910101528061109e81612c5e565b915050611065565b509392505050565b60006110b960025490565b821061111c5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016109c0565b5090565b6000806002838154811061113657611136612c48565b6000918252602090912001546001600160a01b03169050806109905760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016109c0565b6005546001600160a01b031633146111d65760405162461bcd60e51b81526004016109c090612aae565b6111e2600c85856125e3565b506111ef600d83836125e3565b5050505050565b6005546001600160a01b031633146112205760405162461bcd60e51b81526004016109c090612aae565b601055565b60006001600160a01b0382166112905760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016109c0565b6000805b6002548110156112f057600281815481106112b1576112b1612c48565b6000918252602090912001546001600160a01b03858116911614156112de57816112da81612c5e565b9250505b806112e881612c5e565b915050611294565b5092915050565b6005546001600160a01b031633146113215760405162461bcd60e51b81526004016109c090612aae565b61132b6000612178565b565b6000600a828154811061134257611342612c48565b6000918252602090912001546001600160a01b031692915050565b6005546001600160a01b031633146113875760405162461bcd60e51b81526004016109c090612aae565b600061139260025490565b6010549091506113a28383612b34565b11156113f05760405162461bcd60e51b815260206004820152601d60248201527f45786365656473206d6178696d756d20506967656f6e20737570706c7900000060448201526064016109c0565b60005b8281101561142e5761141e846114098385612b34565b604051806020016040528060008152506121ca565b61142781612c5e565b90506113f3565b50505050565b6005546001600160a01b0316331461145e5760405162461bcd60e51b81526004016109c090612aae565b600b55565b6060600180546109f290612ae3565b60148054610e3290612ae3565b600281106114cf5760405162461bcd60e51b815260206004820152601d60248201527f596f752063616e206f6e6c79207072656d696e74203120506967656f6e00000060448201526064016109c0565b336000908152601b602052604090205460ff161561152f5760405162461bcd60e51b815260206004820152601d60248201527f596f752063616e206f6e6c79207072656d696e74203120506967656f6e00000060448201526064016109c0565b60115442118015611541575060125442105b61158d5760405162461bcd60e51b815260206004820152601b60248201527f50726573616c6520686173206e6f74207374617274656420796574000000000060448201526064016109c0565b600061159860025490565b6010549091506115a88383612b34565b11156115f25760405162461bcd60e51b815260206004820152601960248201527845786365656473206d617820506967656f6e20737570706c7960381b60448201526064016109c0565b81600b546116009190612b4c565b34101561164b5760405162461bcd60e51b8152602060048201526019602482015278115d1a195c881cd95b9d081a5cc81b9bdd0818dbdc9c9958dd603a1b60448201526064016109c0565b61165a33611409836001612b34565b5050336000908152601b60205260409020805460ff19166001179055565b600f548111156116df5760405162461bcd60e51b815260206004820152602c60248201527f596f752063616e206d696e742061206d6178696d756d206f662032302050696760448201526b656f6e73206174206f6e636560a01b60648201526084016109c0565b6013544210156117315760405162461bcd60e51b815260206004820152601f60248201527f5075626c69632073616c6520686173206e6f742073746172746564207965740060448201526064016109c0565b600061173c60025490565b60105490915061174c8383612b34565b11156117965760405162461bcd60e51b815260206004820152601960248201527845786365656473206d617820506967656f6e20737570706c7960381b60448201526064016109c0565b81600b546117a49190612b4c565b3410156117ef5760405162461bcd60e51b8152602060048201526019602482015278115d1a195c881cd95b9d081a5cc81b9bdd0818dbdc9c9958dd603a1b60448201526064016109c0565b60005b82811015610c0e57611808336114098385612b34565b61181181612c5e565b90506117f2565b6001600160a01b0382163314156118715760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109c0565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6005546001600160a01b031633146119075760405162461bcd60e51b81526004016109c090612aae565b60155460ff16156119535760405162461bcd60e51b8152602060048201526016602482015275131a58d95b9cd948185b1c9958591e481b1bd8dad95960521b60448201526064016109c0565b8051610c50906014906020840190612563565b6119703383611f38565b61198c5760405162461bcd60e51b81526004016109c090612bac565b61142e848484846121fd565b6005546001600160a01b031633146119c25760405162461bcd60e51b81526004016109c090612aae565b6015805460ff191660011790556040517f92423ccd40e13759d50d24569dcbaccb20ade47247f3cf3e3951a9f29d2048b090611a0090601490612c79565b60405180910390a1565b6060611a1582611d67565b611a795760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016109c0565b6000600c8054611a8890612ae3565b80601f0160208091040260200160405190810160405280929190818152602001828054611ab490612ae3565b8015611b015780601f10611ad657610100808354040283529160200191611b01565b820191906000526020600020905b815481529060010190602001808311611ae457829003601f168201915b505050505090506000815111611b265760405180602001604052806000815250611b54565b80611b3084612230565b600d604051602001611b4493929190612cfe565b6040516020818303038152906040525b9392505050565b600e8054610e3290612ae3565b6005546001600160a01b03163314611b925760405162461bcd60e51b81526004016109c090612aae565b601255565b600c8054610e3290612ae3565b6060611baf60025490565b8210611bea5760405162461bcd60e51b815260206004820152600a602482015269125b9d985b1a5908125160b21b60448201526064016109c0565b60148054611bf790612ae3565b80601f0160208091040260200160405190810160405280929190818152602001828054611c2390612ae3565b8015611c705780601f10611c4557610100808354040283529160200191611c70565b820191906000526020600020905b815481529060010190602001808311611c5357829003601f168201915b50505050509050919050565b6005546001600160a01b03163314611ca65760405162461bcd60e51b81526004016109c090612aae565b6001600160a01b038116611d0b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109c0565b611d1481612178565b50565b60006001600160e01b031982166380ac58cd60e01b1480611d4857506001600160e01b03198216635b5e139f60e01b145b8061099057506301ffc9a760e01b6001600160e01b0319831614610990565b60025460009082108015610990575060006001600160a01b031660028381548110611d9457611d94612c48565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611de682611120565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b80471015611e6f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016109c0565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611ebc576040519150601f19603f3d011682016040523d82523d6000602084013e611ec1565b606091505b5050905080610c0e5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016109c0565b6000611f4382611d67565b611fa45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109c0565b6000611faf83611120565b9050806001600160a01b0316846001600160a01b03161480611fea5750836001600160a01b0316611fdf84610a75565b6001600160a01b0316145b8061201a57506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661203582611120565b6001600160a01b03161461209d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016109c0565b6001600160a01b0382166120ff5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109c0565b61210a600082611db1565b816002828154811061211e5761211e612c48565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6121d4838361232e565b6121e16000848484612456565b610c0e5760405162461bcd60e51b81526004016109c090612d9a565b612208848484612022565b61221484848484612456565b61142e5760405162461bcd60e51b81526004016109c090612d9a565b6060816122545750506040805180820190915260018152600360fc1b602082015290565b8160005b811561227e578061226881612c5e565b91506122779050600a83612b81565b9150612258565b60008167ffffffffffffffff81111561229957612299612794565b6040519080825280601f01601f1916602001820160405280156122c3576020820181803683370190505b5090505b841561201a576122d8600183612b95565b91506122e5600a86612dec565b6122f0906030612b34565b60f81b81838151811061230557612305612c48565b60200101906001600160f81b031916908160001a905350612327600a86612b81565b94506122c7565b6001600160a01b0382166123845760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109c0565b61238d81611d67565b156123da5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109c0565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b1561255857604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061249a903390899088908890600401612e00565b602060405180830381600087803b1580156124b457600080fd5b505af19250505080156124e4575060408051601f3d908101601f191682019092526124e191810190612e3d565b60015b61253e573d808015612512576040519150601f19603f3d011682016040523d82523d6000602084013e612517565b606091505b5080516125365760405162461bcd60e51b81526004016109c090612d9a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061201a565b506001949350505050565b82805461256f90612ae3565b90600052602060002090601f01602090048101928261259157600085556125d7565b82601f106125aa57805160ff19168380011785556125d7565b828001600101855582156125d7579182015b828111156125d75782518255916020019190600101906125bc565b5061111c929150612657565b8280546125ef90612ae3565b90600052602060002090601f01602090048101928261261157600085556125d7565b82601f1061262a5782800160ff198235161785556125d7565b828001600101855582156125d7579182015b828111156125d757823582559160200191906001019061263c565b5b8082111561111c5760008155600101612658565b6001600160e01b031981168114611d1457600080fd5b60006020828403121561269457600080fd5b8135611b548161266c565b803580151581146126af57600080fd5b919050565b6000602082840312156126c657600080fd5b611b548261269f565b60005b838110156126ea5781810151838201526020016126d2565b8381111561142e5750506000910152565b600081518084526127138160208601602086016126cf565b601f01601f19169290920160200192915050565b602081526000611b5460208301846126fb565b60006020828403121561274c57600080fd5b5035919050565b6001600160a01b0381168114611d1457600080fd5b6000806040838503121561277b57600080fd5b823561278681612753565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156127c5576127c5612794565b604051601f8501601f19908116603f011681019082821181831017156127ed576127ed612794565b8160405280935085815286868601111561280657600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561283257600080fd5b813567ffffffffffffffff81111561284957600080fd5b8201601f8101841361285a57600080fd5b61201a848235602084016127aa565b60006020828403121561287b57600080fd5b8135611b5481612753565b60008060006060848603121561289b57600080fd5b83356128a681612753565b925060208401356128b681612753565b929592945050506040919091013590565b6020808252825182820181905260009190848201906040850190845b818110156128ff578351835292840192918401916001016128e3565b50909695505050505050565b60008083601f84011261291d57600080fd5b50813567ffffffffffffffff81111561293557600080fd5b60208301915083602082850101111561294d57600080fd5b9250929050565b6000806000806040858703121561296a57600080fd5b843567ffffffffffffffff8082111561298257600080fd5b61298e8883890161290b565b909650945060208701359150808211156129a757600080fd5b506129b48782880161290b565b95989497509550505050565b600080604083850312156129d357600080fd5b82356129de81612753565b91506129ec6020840161269f565b90509250929050565b60008060008060808587031215612a0b57600080fd5b8435612a1681612753565b93506020850135612a2681612753565b925060408501359150606085013567ffffffffffffffff811115612a4957600080fd5b8501601f81018713612a5a57600080fd5b612a69878235602084016127aa565b91505092959194509250565b60008060408385031215612a8857600080fd5b8235612a9381612753565b91506020830135612aa381612753565b809150509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c90821680612af757607f821691505b60208210811415612b1857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115612b4757612b47612b1e565b500190565b6000816000190483118215151615612b6657612b66612b1e565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612b9057612b90612b6b565b500490565b600082821015612ba757612ba7612b1e565b500390565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612c7257612c72612b1e565b5060010190565b6000602080835260008454612c8d81612ae3565b80848701526040600180841660008114612cae5760018114612cc257612cf0565b60ff19851689840152606089019550612cf0565b896000528660002060005b85811015612ce85781548b8201860152908301908801612ccd565b8a0184019650505b509398975050505050505050565b600084516020612d118285838a016126cf565b855191840191612d248184848a016126cf565b8554920191600090612d3581612ae3565b60018281168015612d4d5760018114612d5e57612d8a565b60ff19841687528287019450612d8a565b896000528560002060005b84811015612d8257815489820152908301908701612d69565b505082870194505b50929a9950505050505050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082612dfb57612dfb612b6b565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612e33908301846126fb565b9695505050505050565b600060208284031215612e4f57600080fd5b8151611b548161266c56fea2646970667358221220c5e4146ffd9f5c8846516bbab5f3a6e85d4199c43c8033db9c3c4c8b7e02998f64736f6c6343000809003368747470733a2f2f746865706967656f6e736f6369616c2e636f6d2f6d657461646174612e7068703f746f6b656e49443d

Deployed Bytecode

0x6080604052600436106102e85760003560e01c80638b83209b11610190578063b88d4fde116100dc578063cfc86f7b11610095578063e985e9c51161006f578063e985e9c5146108d6578063f2fde38b1461091f578063fa1acb5c1461093f578063fb50eb0b1461095557600080fd5b8063cfc86f7b1461088c578063d9b137b2146108a1578063e33b7de3146108c157600080fd5b8063b88d4fde146107cc578063bf4702fc146107ec578063c87b56dd14610801578063ce7c2ac214610821578063cec6bab214610857578063cfa0136f1461086c57600080fd5b806398d5fdca11610149578063a0712d6811610123578063a0712d6814610763578063a22cb46514610776578063a91b9b2a14610796578063b09904b5146107ac57600080fd5b806398d5fdca146107265780639c3e72bd1461073b5780639d5aef301461075057600080fd5b80638b83209b1461065d5780638ba4cc3c1461067d5780638da5cb5b1461069d57806391b7f5ed146106bb57806395d89b41146106db5780639852595c146106f057600080fd5b806332cb6b0c1161024f5780634f6ccce7116102085780636790a9de116101e25780636790a9de146105e85780636f8b44b01461060857806370a0823114610628578063715018a61461064857600080fd5b80634f6ccce7146105925780634fce1de3146105b25780636352211e146105c857600080fd5b806332cb6b0c146104db5780633a98ef39146104f15780633cb8dcdd146105065780633e0a322d1461052557806342842e0e14610545578063438b63001461056557600080fd5b806318160ddd116102a157806318160ddd146104275780631916558714610446578063197c9d7c1461046657806323b872dd1461047b578063296cab551461049b5780632f745c59146104bb57600080fd5b806301ffc9a7146103365780630677d97b1461036b57806306fdde031461038d578063081812fc146103af578063095ea7b3146103e7578063109695231461040757600080fd5b36610331577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561034257600080fd5b50610356610351366004612682565b61096b565b60405190151581526020015b60405180910390f35b34801561037757600080fd5b5061038b6103863660046126b4565b610996565b005b34801561039957600080fd5b506103a26109e3565b6040516103629190612727565b3480156103bb57600080fd5b506103cf6103ca36600461273a565b610a75565b6040516001600160a01b039091168152602001610362565b3480156103f357600080fd5b5061038b610402366004612768565b610afd565b34801561041357600080fd5b5061038b610422366004612820565b610c13565b34801561043357600080fd5b506002545b604051908152602001610362565b34801561045257600080fd5b5061038b610461366004612869565b610c54565b34801561047257600080fd5b506103a2610e25565b34801561048757600080fd5b5061038b610496366004612886565b610eb3565b3480156104a757600080fd5b5061038b6104b636600461273a565b610ee4565b3480156104c757600080fd5b506104386104d6366004612768565b610f13565b3480156104e757600080fd5b5061043860105481565b3480156104fd57600080fd5b50600654610438565b34801561051257600080fd5b5060155461035690610100900460ff1681565b34801561053157600080fd5b5061038b61054036600461273a565b610fc2565b34801561055157600080fd5b5061038b610560366004612886565b610ff1565b34801561057157600080fd5b50610585610580366004612869565b61100c565b60405161036291906128c7565b34801561059e57600080fd5b506104386105ad36600461273a565b6110ae565b3480156105be57600080fd5b50610438600f5481565b3480156105d457600080fd5b506103cf6105e336600461273a565b611120565b3480156105f457600080fd5b5061038b610603366004612954565b6111ac565b34801561061457600080fd5b5061038b61062336600461273a565b6111f6565b34801561063457600080fd5b50610438610643366004612869565b611225565b34801561065457600080fd5b5061038b6112f7565b34801561066957600080fd5b506103cf61067836600461273a565b61132d565b34801561068957600080fd5b5061038b610698366004612768565b61135d565b3480156106a957600080fd5b506005546001600160a01b03166103cf565b3480156106c757600080fd5b5061038b6106d636600461273a565b611434565b3480156106e757600080fd5b506103a2611463565b3480156106fc57600080fd5b5061043861070b366004612869565b6001600160a01b031660009081526009602052604090205490565b34801561073257600080fd5b50600b54610438565b34801561074757600080fd5b506103a2611472565b61038b61075e36600461273a565b61147f565b61038b61077136600461273a565b611678565b34801561078257600080fd5b5061038b6107913660046129c0565b611818565b3480156107a257600080fd5b5061043860115481565b3480156107b857600080fd5b5061038b6107c7366004612820565b6118dd565b3480156107d857600080fd5b5061038b6107e73660046129f5565b611966565b3480156107f857600080fd5b5061038b611998565b34801561080d57600080fd5b506103a261081c36600461273a565b611a0a565b34801561082d57600080fd5b5061043861083c366004612869565b6001600160a01b031660009081526008602052604090205490565b34801561086357600080fd5b506103a2611b5b565b34801561087857600080fd5b5061038b61088736600461273a565b611b68565b34801561089857600080fd5b506103a2611b97565b3480156108ad57600080fd5b506103a26108bc36600461273a565b611ba4565b3480156108cd57600080fd5b50600754610438565b3480156108e257600080fd5b506103566108f1366004612a75565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b34801561092b57600080fd5b5061038b61093a366004612869565b611c7c565b34801561094b57600080fd5b5061043860135481565b34801561096157600080fd5b5061043860125481565b60006001600160e01b0319821663780e9d6360e01b1480610990575061099082611d17565b92915050565b6005546001600160a01b031633146109c95760405162461bcd60e51b81526004016109c090612aae565b60405180910390fd5b601580549115156101000261ff0019909216919091179055565b6060600080546109f290612ae3565b80601f0160208091040260200160405190810160405280929190818152602001828054610a1e90612ae3565b8015610a6b5780601f10610a4057610100808354040283529160200191610a6b565b820191906000526020600020905b815481529060010190602001808311610a4e57829003601f168201915b5050505050905090565b6000610a8082611d67565b610ae15760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109c0565b506000908152600360205260409020546001600160a01b031690565b6000610b0882611120565b9050806001600160a01b0316836001600160a01b03161415610b765760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016109c0565b336001600160a01b0382161480610b925750610b9281336108f1565b610c045760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109c0565b610c0e8383611db1565b505050565b6005546001600160a01b03163314610c3d5760405162461bcd60e51b81526004016109c090612aae565b8051610c5090600e906020840190612563565b5050565b6001600160a01b038116600090815260086020526040902054610cc85760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084016109c0565b600060075447610cd89190612b34565b6001600160a01b0383166000908152600960209081526040808320546006546008909352908320549394509192610d0f9085612b4c565b610d199190612b81565b610d239190612b95565b905080610d865760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b60648201526084016109c0565b6001600160a01b038316600090815260096020526040902054610daa908290612b34565b6001600160a01b038416600090815260096020526040902055600754610dd1908290612b34565b600755610dde8382611e1f565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b600d8054610e3290612ae3565b80601f0160208091040260200160405190810160405280929190818152602001828054610e5e90612ae3565b8015610eab5780601f10610e8057610100808354040283529160200191610eab565b820191906000526020600020905b815481529060010190602001808311610e8e57829003601f168201915b505050505081565b610ebd3382611f38565b610ed95760405162461bcd60e51b81526004016109c090612bac565b610c0e838383612022565b6005546001600160a01b03163314610f0e5760405162461bcd60e51b81526004016109c090612aae565b601155565b6000610f1e83611225565b8210610f3c5760405162461bcd60e51b81526004016109c090612bfd565b6000805b600254811015610fa95760028181548110610f5d57610f5d612c48565b6000918252602090912001546001600160a01b0386811691161415610f995783821415610f8d5791506109909050565b610f9682612c5e565b91505b610fa281612c5e565b9050610f40565b5060405162461bcd60e51b81526004016109c090612bfd565b6005546001600160a01b03163314610fec5760405162461bcd60e51b81526004016109c090612aae565b601355565b610c0e83838360405180602001604052806000815250611966565b6060600061101983611225565b905060008167ffffffffffffffff81111561103657611036612794565b60405190808252806020026020018201604052801561105f578160200160208202803683370190505b50905060005b828110156110a6576110778582610f13565b82828151811061108957611089612c48565b60209081029190910101528061109e81612c5e565b915050611065565b509392505050565b60006110b960025490565b821061111c5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016109c0565b5090565b6000806002838154811061113657611136612c48565b6000918252602090912001546001600160a01b03169050806109905760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016109c0565b6005546001600160a01b031633146111d65760405162461bcd60e51b81526004016109c090612aae565b6111e2600c85856125e3565b506111ef600d83836125e3565b5050505050565b6005546001600160a01b031633146112205760405162461bcd60e51b81526004016109c090612aae565b601055565b60006001600160a01b0382166112905760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016109c0565b6000805b6002548110156112f057600281815481106112b1576112b1612c48565b6000918252602090912001546001600160a01b03858116911614156112de57816112da81612c5e565b9250505b806112e881612c5e565b915050611294565b5092915050565b6005546001600160a01b031633146113215760405162461bcd60e51b81526004016109c090612aae565b61132b6000612178565b565b6000600a828154811061134257611342612c48565b6000918252602090912001546001600160a01b031692915050565b6005546001600160a01b031633146113875760405162461bcd60e51b81526004016109c090612aae565b600061139260025490565b6010549091506113a28383612b34565b11156113f05760405162461bcd60e51b815260206004820152601d60248201527f45786365656473206d6178696d756d20506967656f6e20737570706c7900000060448201526064016109c0565b60005b8281101561142e5761141e846114098385612b34565b604051806020016040528060008152506121ca565b61142781612c5e565b90506113f3565b50505050565b6005546001600160a01b0316331461145e5760405162461bcd60e51b81526004016109c090612aae565b600b55565b6060600180546109f290612ae3565b60148054610e3290612ae3565b600281106114cf5760405162461bcd60e51b815260206004820152601d60248201527f596f752063616e206f6e6c79207072656d696e74203120506967656f6e00000060448201526064016109c0565b336000908152601b602052604090205460ff161561152f5760405162461bcd60e51b815260206004820152601d60248201527f596f752063616e206f6e6c79207072656d696e74203120506967656f6e00000060448201526064016109c0565b60115442118015611541575060125442105b61158d5760405162461bcd60e51b815260206004820152601b60248201527f50726573616c6520686173206e6f74207374617274656420796574000000000060448201526064016109c0565b600061159860025490565b6010549091506115a88383612b34565b11156115f25760405162461bcd60e51b815260206004820152601960248201527845786365656473206d617820506967656f6e20737570706c7960381b60448201526064016109c0565b81600b546116009190612b4c565b34101561164b5760405162461bcd60e51b8152602060048201526019602482015278115d1a195c881cd95b9d081a5cc81b9bdd0818dbdc9c9958dd603a1b60448201526064016109c0565b61165a33611409836001612b34565b5050336000908152601b60205260409020805460ff19166001179055565b600f548111156116df5760405162461bcd60e51b815260206004820152602c60248201527f596f752063616e206d696e742061206d6178696d756d206f662032302050696760448201526b656f6e73206174206f6e636560a01b60648201526084016109c0565b6013544210156117315760405162461bcd60e51b815260206004820152601f60248201527f5075626c69632073616c6520686173206e6f742073746172746564207965740060448201526064016109c0565b600061173c60025490565b60105490915061174c8383612b34565b11156117965760405162461bcd60e51b815260206004820152601960248201527845786365656473206d617820506967656f6e20737570706c7960381b60448201526064016109c0565b81600b546117a49190612b4c565b3410156117ef5760405162461bcd60e51b8152602060048201526019602482015278115d1a195c881cd95b9d081a5cc81b9bdd0818dbdc9c9958dd603a1b60448201526064016109c0565b60005b82811015610c0e57611808336114098385612b34565b61181181612c5e565b90506117f2565b6001600160a01b0382163314156118715760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109c0565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6005546001600160a01b031633146119075760405162461bcd60e51b81526004016109c090612aae565b60155460ff16156119535760405162461bcd60e51b8152602060048201526016602482015275131a58d95b9cd948185b1c9958591e481b1bd8dad95960521b60448201526064016109c0565b8051610c50906014906020840190612563565b6119703383611f38565b61198c5760405162461bcd60e51b81526004016109c090612bac565b61142e848484846121fd565b6005546001600160a01b031633146119c25760405162461bcd60e51b81526004016109c090612aae565b6015805460ff191660011790556040517f92423ccd40e13759d50d24569dcbaccb20ade47247f3cf3e3951a9f29d2048b090611a0090601490612c79565b60405180910390a1565b6060611a1582611d67565b611a795760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016109c0565b6000600c8054611a8890612ae3565b80601f0160208091040260200160405190810160405280929190818152602001828054611ab490612ae3565b8015611b015780601f10611ad657610100808354040283529160200191611b01565b820191906000526020600020905b815481529060010190602001808311611ae457829003601f168201915b505050505090506000815111611b265760405180602001604052806000815250611b54565b80611b3084612230565b600d604051602001611b4493929190612cfe565b6040516020818303038152906040525b9392505050565b600e8054610e3290612ae3565b6005546001600160a01b03163314611b925760405162461bcd60e51b81526004016109c090612aae565b601255565b600c8054610e3290612ae3565b6060611baf60025490565b8210611bea5760405162461bcd60e51b815260206004820152600a602482015269125b9d985b1a5908125160b21b60448201526064016109c0565b60148054611bf790612ae3565b80601f0160208091040260200160405190810160405280929190818152602001828054611c2390612ae3565b8015611c705780601f10611c4557610100808354040283529160200191611c70565b820191906000526020600020905b815481529060010190602001808311611c5357829003601f168201915b50505050509050919050565b6005546001600160a01b03163314611ca65760405162461bcd60e51b81526004016109c090612aae565b6001600160a01b038116611d0b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109c0565b611d1481612178565b50565b60006001600160e01b031982166380ac58cd60e01b1480611d4857506001600160e01b03198216635b5e139f60e01b145b8061099057506301ffc9a760e01b6001600160e01b0319831614610990565b60025460009082108015610990575060006001600160a01b031660028381548110611d9457611d94612c48565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611de682611120565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b80471015611e6f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016109c0565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611ebc576040519150601f19603f3d011682016040523d82523d6000602084013e611ec1565b606091505b5050905080610c0e5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016109c0565b6000611f4382611d67565b611fa45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109c0565b6000611faf83611120565b9050806001600160a01b0316846001600160a01b03161480611fea5750836001600160a01b0316611fdf84610a75565b6001600160a01b0316145b8061201a57506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661203582611120565b6001600160a01b03161461209d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016109c0565b6001600160a01b0382166120ff5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109c0565b61210a600082611db1565b816002828154811061211e5761211e612c48565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6121d4838361232e565b6121e16000848484612456565b610c0e5760405162461bcd60e51b81526004016109c090612d9a565b612208848484612022565b61221484848484612456565b61142e5760405162461bcd60e51b81526004016109c090612d9a565b6060816122545750506040805180820190915260018152600360fc1b602082015290565b8160005b811561227e578061226881612c5e565b91506122779050600a83612b81565b9150612258565b60008167ffffffffffffffff81111561229957612299612794565b6040519080825280601f01601f1916602001820160405280156122c3576020820181803683370190505b5090505b841561201a576122d8600183612b95565b91506122e5600a86612dec565b6122f0906030612b34565b60f81b81838151811061230557612305612c48565b60200101906001600160f81b031916908160001a905350612327600a86612b81565b94506122c7565b6001600160a01b0382166123845760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109c0565b61238d81611d67565b156123da5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109c0565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b1561255857604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061249a903390899088908890600401612e00565b602060405180830381600087803b1580156124b457600080fd5b505af19250505080156124e4575060408051601f3d908101601f191682019092526124e191810190612e3d565b60015b61253e573d808015612512576040519150601f19603f3d011682016040523d82523d6000602084013e612517565b606091505b5080516125365760405162461bcd60e51b81526004016109c090612d9a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061201a565b506001949350505050565b82805461256f90612ae3565b90600052602060002090601f01602090048101928261259157600085556125d7565b82601f106125aa57805160ff19168380011785556125d7565b828001600101855582156125d7579182015b828111156125d75782518255916020019190600101906125bc565b5061111c929150612657565b8280546125ef90612ae3565b90600052602060002090601f01602090048101928261261157600085556125d7565b82601f1061262a5782800160ff198235161785556125d7565b828001600101855582156125d7579182015b828111156125d757823582559160200191906001019061263c565b5b8082111561111c5760008155600101612658565b6001600160e01b031981168114611d1457600080fd5b60006020828403121561269457600080fd5b8135611b548161266c565b803580151581146126af57600080fd5b919050565b6000602082840312156126c657600080fd5b611b548261269f565b60005b838110156126ea5781810151838201526020016126d2565b8381111561142e5750506000910152565b600081518084526127138160208601602086016126cf565b601f01601f19169290920160200192915050565b602081526000611b5460208301846126fb565b60006020828403121561274c57600080fd5b5035919050565b6001600160a01b0381168114611d1457600080fd5b6000806040838503121561277b57600080fd5b823561278681612753565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156127c5576127c5612794565b604051601f8501601f19908116603f011681019082821181831017156127ed576127ed612794565b8160405280935085815286868601111561280657600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561283257600080fd5b813567ffffffffffffffff81111561284957600080fd5b8201601f8101841361285a57600080fd5b61201a848235602084016127aa565b60006020828403121561287b57600080fd5b8135611b5481612753565b60008060006060848603121561289b57600080fd5b83356128a681612753565b925060208401356128b681612753565b929592945050506040919091013590565b6020808252825182820181905260009190848201906040850190845b818110156128ff578351835292840192918401916001016128e3565b50909695505050505050565b60008083601f84011261291d57600080fd5b50813567ffffffffffffffff81111561293557600080fd5b60208301915083602082850101111561294d57600080fd5b9250929050565b6000806000806040858703121561296a57600080fd5b843567ffffffffffffffff8082111561298257600080fd5b61298e8883890161290b565b909650945060208701359150808211156129a757600080fd5b506129b48782880161290b565b95989497509550505050565b600080604083850312156129d357600080fd5b82356129de81612753565b91506129ec6020840161269f565b90509250929050565b60008060008060808587031215612a0b57600080fd5b8435612a1681612753565b93506020850135612a2681612753565b925060408501359150606085013567ffffffffffffffff811115612a4957600080fd5b8501601f81018713612a5a57600080fd5b612a69878235602084016127aa565b91505092959194509250565b60008060408385031215612a8857600080fd5b8235612a9381612753565b91506020830135612aa381612753565b809150509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c90821680612af757607f821691505b60208210811415612b1857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115612b4757612b47612b1e565b500190565b6000816000190483118215151615612b6657612b66612b1e565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612b9057612b90612b6b565b500490565b600082821015612ba757612ba7612b1e565b500390565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612c7257612c72612b1e565b5060010190565b6000602080835260008454612c8d81612ae3565b80848701526040600180841660008114612cae5760018114612cc257612cf0565b60ff19851689840152606089019550612cf0565b896000528660002060005b85811015612ce85781548b8201860152908301908801612ccd565b8a0184019650505b509398975050505050505050565b600084516020612d118285838a016126cf565b855191840191612d248184848a016126cf565b8554920191600090612d3581612ae3565b60018281168015612d4d5760018114612d5e57612d8a565b60ff19841687528287019450612d8a565b896000528560002060005b84811015612d8257815489820152908301908701612d69565b505082870194505b50929a9950505050505050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082612dfb57612dfb612b6b565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612e33908301846126fb565b9695505050505050565b600060208284031215612e4f57600080fd5b8151611b548161266c56fea2646970667358221220c5e4146ffd9f5c8846516bbab5f3a6e85d4199c43c8033db9c3c4c8b7e02998f64736f6c63430008090033

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.