ETH Price: $3,183.67 (+1.56%)
Gas: 27 Gwei

Token

PRAYING HANDS CLUB (PHC)
 

Overview

Max Total Supply

2,222 PHC

Holders

428

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
giuoctavianos.eth
Balance
1 PHC
0x56656e5C76B5B552F5e89a82fc46912d95790480
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

The Praying Hands Club (PHC) is a charity based NFT that is rooted in homelessness initiatives and merchandise. 11% of all national sales from our retail partners Whitelabel MFG, will flow to holders and to community chosen charities in the form of BLE$$ token, the PHC's utili...

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
PrayingHands

Compiler Version
v0.8.2+commit.661d1103

Optimization Enabled:
Yes with 200 runs

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

/*
 /$$$$$$$  /$$   /$$  /$$$$$$ 
| $$__  $$| $$  | $$ /$$__  $$
| $$  \ $$| $$  | $$| $$  \__/
| $$$$$$$/| $$$$$$$$| $$      
| $$____/ | $$__  $$| $$      
| $$      | $$  | $$| $$    $$
| $$      | $$  | $$|  $$$$$$/
|__/      |__/  |__/ \______/                                                                                                                          
*/

pragma solidity 0.8.2;

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

// Copyright for Praying Hands Club NFTs passes to the NFT holder.

contract PrayingHands is Ownable, ERC721Enumerable, PaymentSplitter {

    uint public MAX_PHC = 11111; // While PHC reserves the right to change the max supply, it will NEVER exceed 11,111
    uint public PHC_PRICE = 0.05 ether;
    uint public walletLimit = 11;
    string public PROVENANCE_HASH;
    string private _baseURIExtended;
    string private _contractURI;
    bool public _isSaleLive = false;
    bool private locked;
    bool private PROVENANCE_LOCK = false;
    uint public _reserved;
    uint id = totalSupply();

    //Praying Hands Club Release Time -
    uint public publicSale = 1637613000;   // November 22nd 11:11pm UTC 

    struct Account {
        uint nftsReserved;
        uint walletLimit;
        uint mintedNFTs;
        bool isAdmin;
    }

    mapping(address => Account) public accounts;

    event Mint(address indexed sender, uint totalSupply);
    event PermanentURI(string _value, uint256 indexed _id);

    address[] private _distro;
    uint[] private _distro_shares;

    constructor(address[] memory distro, uint[] memory distro_shares, address[] memory teamclaim, address[] memory admins)
        ERC721("PRAYING HANDS CLUB", "PHC")
        PaymentSplitter(distro, distro_shares)
    {
        _baseURIExtended = "ipfs://QmRoGjmn2kPYyVBTLmR9tGwbi3SjWrjDt75uB83pBhsZhG/";

        accounts[msg.sender] = Account( 0, 0, 0, true);
        // teamclaimNFT
        accounts[teamclaim[0]] = Account( 10, 0, 0, true); //1
        accounts[teamclaim[1]] = Account( 20, 0, 0, true); //2
        accounts[teamclaim[2]] = Account( 20, 0, 0, true); //3
        accounts[teamclaim[3]] = Account( 20, 0, 0, true); //4
        accounts[teamclaim[4]] = Account( 20, 0, 0, true); //5
        accounts[teamclaim[5]] = Account( 20, 0, 0, true); //6
        accounts[teamclaim[6]] = Account( 25, 0, 0, true); //7
        accounts[teamclaim[7]] = Account( 25, 0, 0, true); //8
        accounts[teamclaim[8]] = Account( 25, 0, 0, true); //9
        accounts[teamclaim[9]] = Account( 25, 0, 0, true); //10
        accounts[teamclaim[10]] = Account( 30, 0, 0, true); //11
        accounts[teamclaim[11]] = Account( 75, 0, 0, true); //12
        accounts[teamclaim[12]] = Account( 185, 0, 0, true); //13

        // admins
        accounts[admins[0]] = Account( 0, 0, 0, true); //1
        accounts[admins[1]] = Account( 0, 0, 0, true); //2
        

        _reserved = 500;

        _distro = distro;
        _distro_shares = distro_shares;
    }

    // Modifiers

    modifier onlyAdmin() {
        require(accounts[msg.sender].isAdmin == true, "Sorry, You need to be an admin");
        _;
    }

    modifier noReentrant() {
        require(!locked, "No re-entrancy");
        locked = true;
        _;
        locked = false;
    }

    // End Modifier

    // Setters

    function setAdmin(address _addr) external onlyOwner {
        accounts[_addr].isAdmin = !accounts[_addr].isAdmin;
    }

    function setProvenanceHash(string memory _provenanceHash) external onlyOwner {
        require(PROVENANCE_LOCK == false);
        PROVENANCE_HASH = _provenanceHash;
    }

    function lockProvenance() external onlyOwner {
        PROVENANCE_LOCK = true;
    }

    function setBaseURI(string memory _newURI) external onlyOwner {
        _baseURIExtended = _newURI;
    }

    function setContractURI(string memory _newURI) external onlyOwner {
        _contractURI = _newURI;
    }

    function deactivateSale() external onlyOwner {
        _isSaleLive = false;
    }

    function activateSale() external onlyOwner {
        _isSaleLive = true;
    }


    function setNewSaleTime(uint[] memory _newTime) external onlyOwner {
        require(_newTime.length == 1);
        publicSale = _newTime[0];
    }
    
    function setNewPrice(uint _newPrice) external onlyOwner {
        PHC_PRICE = _newPrice;
    }

    function setMaxPHC(uint _maxPhc) external onlyOwner {
        require(_maxPhc <= 11111, 'Max amount of PHC cannot exceed 11,111');
        MAX_PHC = _maxPhc;
    }

    function setWalletLimit(uint _newLimit) external onlyOwner {
        walletLimit = _newLimit;
    }
    
    // End Setters

    // Getters

    // For OpenSea
    function contractURI() public view returns (string memory) {
        return _contractURI;
    }

    // For Metadata
    function _baseURI() internal view virtual override returns (string memory) {
        return _baseURIExtended;
    }

    // End Getter

    // Business Logic

    function adminMint() external onlyAdmin {
        uint _amount = accounts[msg.sender].nftsReserved;
        require(accounts[msg.sender].isAdmin == true,"Sorry, Only an admin can mint");
        require(_amount > 0, 'Need to have reserved supply');
        require(totalSupply() + _amount <= MAX_PHC, "You would exceed the mint limit");

        accounts[msg.sender].nftsReserved -= _amount;
        _reserved = _reserved - _amount;


        for (uint i = 0; i < _amount; i++) {
            id++;
            _safeMint(msg.sender, id);
            emit Mint(msg.sender, totalSupply());
        }
    }

    function airDropNFT(address[] memory _addr) external onlyOwner {
        require(totalSupply() + _addr.length <= (MAX_PHC - _reserved), "You would exceed the airdrop limit");

        // DO MINT

        for (uint i = 0; i < _addr.length; i++) {
            id++;
            _safeMint(_addr[i], id);
            emit Mint(msg.sender, totalSupply());
        }

    }

    function mint(uint _amount) external payable noReentrant {
        // CHECK BASIC SALE CONDITIONS
        require(_isSaleLive, "Sale must be active to mint");
        require(totalSupply() + _amount <= (MAX_PHC - _reserved), "Purchase would exceed max supply of PHC");
        require(msg.value >= (PHC_PRICE * _amount), "Ether value sent is not correct");
        require(!isContract(msg.sender), "Contracts can't mint");

        if(block.timestamp >= publicSale) {
            require((_amount + accounts[msg.sender].mintedNFTs) <= walletLimit, "Sorry you can only mint 11 per wallet");
        }

        // DO MINT

        for (uint i = 0; i < _amount; i++) {
            id++;
            accounts[msg.sender].mintedNFTs++;
            _safeMint(msg.sender, id);
            emit Mint(msg.sender, totalSupply());
        }

    }

    function distributeShares() external onlyAdmin {
        for (uint i = 0; i < _distro.length; i++) {
            release(payable(_distro[i]));
        }
    }
    // helper

    function isContract(address account) internal view returns (bool) {
  
        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }    

}

File 2 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);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 4 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 5 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 6 of 15 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        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 _owners[tokenId] != address(0);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @dev 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 7 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 8 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 9 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 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 : 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 12 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 13 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 14 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 15 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;
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"distro","type":"address[]"},{"internalType":"uint256[]","name":"distro_shares","type":"uint256[]"},{"internalType":"address[]","name":"teamclaim","type":"address[]"},{"internalType":"address[]","name":"admins","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"totalSupply","type":"uint256"}],"name":"Mint","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":false,"internalType":"string","name":"_value","type":"string"},{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"}],"name":"PermanentURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_PHC","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PHC_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROVENANCE_HASH","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_isSaleLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_reserved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"accounts","outputs":[{"internalType":"uint256","name":"nftsReserved","type":"uint256"},{"internalType":"uint256","name":"walletLimit","type":"uint256"},{"internalType":"uint256","name":"mintedNFTs","type":"uint256"},{"internalType":"bool","name":"isAdmin","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"activateSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addr","type":"address[]"}],"name":"airDropNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deactivateSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributeShares","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockProvenance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","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":[],"name":"publicSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"_addr","type":"address"}],"name":"setAdmin","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":"_newURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPhc","type":"uint256"}],"name":"setMaxPHC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setNewPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_newTime","type":"uint256[]"}],"name":"setNewSaleTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_provenanceHash","type":"string"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newLimit","type":"uint256"}],"name":"setWalletLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","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":[],"name":"walletLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052612b6760105566b1a2bc2ec50000601155600b6012556016805462ff00ff1916905560095460185563619bfdc86019553480156200004157600080fd5b50604051620044ae380380620044ae83398101604081905262000064916200119b565b838360405180604001604052806012815260200171282920aca4a723902420a722299021a62aa160711b8152506040518060400160405280600381526020016250484360e81b815250620000c7620000c162000d9560201b60201c565b62000d99565b8151620000dc90600190602085019062000fd7565b508051620000f290600290602084019062000fd7565b5050508051825114620001675760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620001ba5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f2070617965657300000000000060448201526064016200015e565b60005b82518110156200023e5762000229838281518110620001ec57634e487b7160e01b600052603260045260246000fd5b60200260200101518383815181106200021557634e487b7160e01b600052603260045260246000fd5b602002602001015162000de960201b60201c565b8062000235816200135b565b915050620001bd565b50505060405180606001604052806036815260200162004478603691398051620002719160149160209091019062000fd7565b5060408051608080820183526000808352602080840182815284860183815260016060808801828152338752601a8087528a882099518a559451898401559251600289015591516003909701805460ff19169715159790971790965586519485018752600a8552918401839052948301829052820192909252845190929190859082906200030f57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000155602082015181600101556040820151816002015560608201518160030160006101000a81548160ff021916908315150217905550905050604051806080016040528060148152602001600081526020016000815260200160011515815250601a600084600181518110620003c557634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000155602082015181600101556040820151816002015560608201518160030160006101000a81548160ff021916908315150217905550905050604051806080016040528060148152602001600081526020016000815260200160011515815250601a6000846002815181106200047b57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000155602082015181600101556040820151816002015560608201518160030160006101000a81548160ff021916908315150217905550905050604051806080016040528060148152602001600081526020016000815260200160011515815250601a6000846003815181106200053157634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000155602082015181600101556040820151816002015560608201518160030160006101000a81548160ff021916908315150217905550905050604051806080016040528060148152602001600081526020016000815260200160011515815250601a600084600481518110620005e757634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000155602082015181600101556040820151816002015560608201518160030160006101000a81548160ff021916908315150217905550905050604051806080016040528060148152602001600081526020016000815260200160011515815250601a6000846005815181106200069d57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000155602082015181600101556040820151816002015560608201518160030160006101000a81548160ff021916908315150217905550905050604051806080016040528060198152602001600081526020016000815260200160011515815250601a6000846006815181106200075357634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000155602082015181600101556040820151816002015560608201518160030160006101000a81548160ff021916908315150217905550905050604051806080016040528060198152602001600081526020016000815260200160011515815250601a6000846007815181106200080957634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000155602082015181600101556040820151816002015560608201518160030160006101000a81548160ff021916908315150217905550905050604051806080016040528060198152602001600081526020016000815260200160011515815250601a600084600881518110620008bf57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000155602082015181600101556040820151816002015560608201518160030160006101000a81548160ff021916908315150217905550905050604051806080016040528060198152602001600081526020016000815260200160011515815250601a6000846009815181106200097557634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000155602082015181600101556040820151816002015560608201518160030160006101000a81548160ff0219169083151502179055509050506040518060800160405280601e8152602001600081526020016000815260200160011515815250601a600084600a8151811062000a2b57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000155602082015181600101556040820151816002015560608201518160030160006101000a81548160ff0219169083151502179055509050506040518060800160405280604b8152602001600081526020016000815260200160011515815250601a600084600b8151811062000ae157634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000155602082015181600101556040820151816002015560608201518160030160006101000a81548160ff021916908315150217905550905050604051806080016040528060b98152602001600081526020016000815260200160011515815250601a600084600c8151811062000b9757634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000155602082015181600101556040820151816002015560608201518160030160006101000a81548160ff021916908315150217905550905050604051806080016040528060008152602001600081526020016000815260200160011515815250601a60008360008151811062000c4d57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000155602082015181600101556040820151816002015560608201518160030160006101000a81548160ff021916908315150217905550905050604051806080016040528060008152602001600081526020016000815260200160011515815250601a60008360018151811062000d0357634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252818101929092526040908101600020835181558383015160018201559083015160028201556060909201516003909201805460ff1916921515929092179091556101f4601755845162000d7491601b919087019062001066565b50825162000d8a90601c906020860190620010be565b5050505050620013a5565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03821662000e565760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016200015e565b6000811162000ea85760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200015e565b6001600160a01b0382166000908152600d60205260409020541562000f245760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016200015e565b600f8054600181019091557f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020180546001600160a01b0319166001600160a01b0384169081179091556000908152600d60205260409020819055600b5462000f8e90829062001303565b600b55604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b82805462000fe5906200131e565b90600052602060002090601f01602090048101928262001009576000855562001054565b82601f106200102457805160ff191683800117855562001054565b8280016001018555821562001054579182015b828111156200105457825182559160200191906001019062001037565b5062001062929150620010fb565b5090565b82805482825590600052602060002090810192821562001054579160200282015b828111156200105457825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062001087565b8280548282559060005260206000209081019282156200105457916020028201828111156200105457825182559160200191906001019062001037565b5b80821115620010625760008155600101620010fc565b600082601f83011262001123578081fd5b815160206200113c6200113683620012dd565b620012aa565b828152818101908583018385028701840188101562001159578586fd5b855b858110156200118e5781516001600160a01b03811681146200117b578788fd5b845292840192908401906001016200115b565b5090979650505050505050565b60008060008060808587031215620011b1578384fd5b84516001600160401b0380821115620011c8578586fd5b620011d68883890162001112565b9550602091508187015181811115620011ed578586fd5b8701601f81018913620011fe578586fd5b80516200120f6200113682620012dd565b81815284810190838601868402850187018d10156200122c57898afd5b8994505b838510156200125057805183526001949094019391860191860162001230565b5060408b01519098509450505050808211156200126b578384fd5b620012798883890162001112565b935060608701519150808211156200128f578283fd5b506200129e8782880162001112565b91505092959194509250565b604051601f8201601f191681016001600160401b0381118282101715620012d557620012d56200138f565b604052919050565b60006001600160401b03821115620012f957620012f96200138f565b5060209081020190565b6000821982111562001319576200131962001379565b500190565b6002810460018216806200133357607f821691505b602082108114156200135557634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141562001372576200137262001379565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6130c380620013b56000396000f3fe6080604052600436106102b25760003560e01c806370a0823111610175578063c87b56dd116100dc578063ea7523ee11610095578063f2bec51d1161006f578063f2bec51d146108c1578063f2fde38b146108d7578063fc15ad06146108f7578063ff1b655614610917576102fb565b8063ea7523ee1461086c578063ee8cdd4e14610881578063f1d5f517146108a1576102fb565b8063c87b56dd14610783578063ce7c2ac2146107a3578063e33b7de3146107d9578063e6981f2e146107ee578063e8a3d4851461080e578063e985e9c514610823576102fb565b806395d89b411161012e57806395d89b41146106d05780639852595c146106e5578063a0712d681461071b578063a22cb4651461072e578063b88d4fde1461074e578063c721f08d1461076e576102fb565b806370a0823114610628578063715018a614610648578063895fc7881461065d5780638b83209b146106725780638da5cb5b14610692578063938e3d7b146106b0576102fb565b80633a98ef391161021957806355f804b3116101d257806355f804b3146105365780635e5c06e214610556578063616d0dfd146105bd5780636352211e146105d25780636aaa571d146105f2578063704b6c0214610608576102fb565b80633a98ef391461049c5780633c8463a1146104b157806342842e0e146104c7578063429e3846146104e75780634f5e0b28146104fc5780634f6ccce714610516576102fb565b8063191655871161026b57806319165587146103f057806323755dea1461041057806323b872dd1461042657806326d104ec146104465780632f745c591461046657806333bc1c5c14610486576102fb565b806301ffc9a71461030057806306fdde0314610335578063081812fc14610357578063095ea7b31461038f57806310969523146103b157806318160ddd146103d1576102fb565b366102fb577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561030c57600080fd5b5061032061031b366004612cba565b61092c565b60405190151581526020015b60405180910390f35b34801561034157600080fd5b5061034a610959565b60405161032c9190612de8565b34801561036357600080fd5b50610377610372366004612d38565b6109eb565b6040516001600160a01b03909116815260200161032c565b34801561039b57600080fd5b506103af6103aa366004612b6d565b610a85565b005b3480156103bd57600080fd5b506103af6103cc366004612cf2565b610b9b565b3480156103dd57600080fd5b506009545b60405190815260200161032c565b3480156103fc57600080fd5b506103af61040b366004612a2b565b610bf2565b34801561041c57600080fd5b506103e260105481565b34801561043257600080fd5b506103af610441366004612a7f565b610dc3565b34801561045257600080fd5b506103af610461366004612c36565b610df4565b34801561047257600080fd5b506103e2610481366004612b6d565b610e5e565b34801561049257600080fd5b506103e260195481565b3480156104a857600080fd5b50600b546103e2565b3480156104bd57600080fd5b506103e260125481565b3480156104d357600080fd5b506103af6104e2366004612a7f565b610ef4565b3480156104f357600080fd5b506103af610f0f565b34801561050857600080fd5b506016546103209060ff1681565b34801561052257600080fd5b506103e2610531366004612d38565b610fd6565b34801561054257600080fd5b506103af610551366004612cf2565b611077565b34801561056257600080fd5b5061059b610571366004612a2b565b601a6020526000908152604090208054600182015460028301546003909301549192909160ff1684565b604080519485526020850193909352918301521515606082015260800161032c565b3480156105c957600080fd5b506103af6110b4565b3480156105de57600080fd5b506103776105ed366004612d38565b6110ea565b3480156105fe57600080fd5b506103e260175481565b34801561061457600080fd5b506103af610623366004612a2b565b611161565b34801561063457600080fd5b506103e2610643366004612a2b565b6111b7565b34801561065457600080fd5b506103af61123e565b34801561066957600080fd5b506103af611274565b34801561067e57600080fd5b5061037761068d366004612d38565b6114aa565b34801561069e57600080fd5b506000546001600160a01b0316610377565b3480156106bc57600080fd5b506103af6106cb366004612cf2565b6114e8565b3480156106dc57600080fd5b5061034a611525565b3480156106f157600080fd5b506103e2610700366004612a2b565b6001600160a01b03166000908152600e602052604090205490565b6103af610729366004612d38565b611534565b34801561073a57600080fd5b506103af610749366004612b3c565b611833565b34801561075a57600080fd5b506103af610769366004612abf565b611905565b34801561077a57600080fd5b506103af61193d565b34801561078f57600080fd5b5061034a61079e366004612d38565b611976565b3480156107af57600080fd5b506103e26107be366004612a2b565b6001600160a01b03166000908152600d602052604090205490565b3480156107e557600080fd5b50600c546103e2565b3480156107fa57600080fd5b506103af610809366004612d38565b611a51565b34801561081a57600080fd5b5061034a611ae1565b34801561082f57600080fd5b5061032061083e366004612a47565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561087857600080fd5b506103af611af0565b34801561088d57600080fd5b506103af61089c366004612d38565b611b2d565b3480156108ad57600080fd5b506103af6108bc366004612d38565b611b5c565b3480156108cd57600080fd5b506103e260115481565b3480156108e357600080fd5b506103af6108f2366004612a2b565b611b8b565b34801561090357600080fd5b506103af610912366004612b98565b611c23565b34801561092357600080fd5b5061034a611d67565b60006001600160e01b0319821663780e9d6360e01b1480610951575061095182611df5565b90505b919050565b60606001805461096890612fb6565b80601f016020809104026020016040519081016040528092919081815260200182805461099490612fb6565b80156109e15780601f106109b6576101008083540402835291602001916109e1565b820191906000526020600020905b8154815290600101906020018083116109c457829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b0316610a695760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610a90826110ea565b9050806001600160a01b0316836001600160a01b03161415610afe5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a60565b336001600160a01b0382161480610b1a5750610b1a813361083e565b610b8c5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a60565b610b968383611e45565b505050565b6000546001600160a01b03163314610bc55760405162461bcd60e51b8152600401610a6090612e4d565b60165462010000900460ff1615610bdb57600080fd5b8051610bee90601390602084019061293a565b5050565b6001600160a01b0381166000908152600d6020526040902054610c665760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b6064820152608401610a60565b6000600c5447610c769190612f28565b6001600160a01b0383166000908152600e6020908152604080832054600b54600d909352908320549394509192610cad9085612f54565b610cb79190612f40565b610cc19190612f73565b905080610d245760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b6064820152608401610a60565b6001600160a01b0383166000908152600e6020526040902054610d48908290612f28565b6001600160a01b0384166000908152600e6020526040902055600c54610d6f908290612f28565b600c55610d7c8382611eb3565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b610dcd3382611fcc565b610de95760405162461bcd60e51b8152600401610a6090612e82565b610b968383836120c3565b6000546001600160a01b03163314610e1e5760405162461bcd60e51b8152600401610a6090612e4d565b8051600114610e2c57600080fd5b80600081518110610e4d57634e487b7160e01b600052603260045260246000fd5b602002602001015160198190555050565b6000610e69836111b7565b8210610ecb5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610a60565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b610b9683838360405180602001604052806000815250611905565b336000908152601a602052604090206003015460ff161515600114610f765760405162461bcd60e51b815260206004820152601e60248201527f536f7272792c20596f75206e65656420746f20626520616e2061646d696e00006044820152606401610a60565b60005b601b54811015610fd357610fc1601b8281548110610fa757634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316610bf2565b80610fcb81612ff1565b915050610f79565b50565b6000610fe160095490565b82106110445760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610a60565b6009828154811061106557634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000546001600160a01b031633146110a15760405162461bcd60e51b8152600401610a6090612e4d565b8051610bee90601490602084019061293a565b6000546001600160a01b031633146110de5760405162461bcd60e51b8152600401610a6090612e4d565b6016805460ff19169055565b6000818152600360205260408120546001600160a01b0316806109515760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a60565b6000546001600160a01b0316331461118b5760405162461bcd60e51b8152600401610a6090612e4d565b6001600160a01b03166000908152601a60205260409020600301805460ff19811660ff90911615179055565b60006001600160a01b0382166112225760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a60565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146112685760405162461bcd60e51b8152600401610a6090612e4d565b611272600061226e565b565b336000908152601a602052604090206003015460ff1615156001146112db5760405162461bcd60e51b815260206004820152601e60248201527f536f7272792c20596f75206e65656420746f20626520616e2061646d696e00006044820152606401610a60565b336000908152601a60205260409020805460039091015460ff1615156001146113465760405162461bcd60e51b815260206004820152601d60248201527f536f7272792c204f6e6c7920616e2061646d696e2063616e206d696e740000006044820152606401610a60565b600081116113965760405162461bcd60e51b815260206004820152601c60248201527f4e65656420746f206861766520726573657276656420737570706c79000000006044820152606401610a60565b601054816113a360095490565b6113ad9190612f28565b11156113fb5760405162461bcd60e51b815260206004820152601f60248201527f596f7520776f756c642065786365656420746865206d696e74206c696d6974006044820152606401610a60565b336000908152601a60205260408120805483929061141a908490612f73565b909155505060175461142d908290612f73565b60175560005b81811015610bee576018805490600061144b83612ff1565b919050555061145c336018546122be565b337f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688561148760095490565b60405190815260200160405180910390a2806114a281612ff1565b915050611433565b6000600f82815481106114cd57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b6000546001600160a01b031633146115125760405162461bcd60e51b8152600401610a6090612e4d565b8051610bee90601590602084019061293a565b60606002805461096890612fb6565b601654610100900460ff161561157d5760405162461bcd60e51b815260206004820152600e60248201526d4e6f2072652d656e7472616e637960901b6044820152606401610a60565b6016805461ff001916610100179081905560ff166115dd5760405162461bcd60e51b815260206004820152601b60248201527f53616c65206d7573742062652061637469766520746f206d696e7400000000006044820152606401610a60565b6017546010546115ed9190612f73565b816115f760095490565b6116019190612f28565b111561165f5760405162461bcd60e51b815260206004820152602760248201527f507572636861736520776f756c6420657863656564206d617820737570706c79604482015266206f662050484360c81b6064820152608401610a60565b8060115461166d9190612f54565b3410156116bc5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610a60565b333b156117025760405162461bcd60e51b815260206004820152601460248201527310dbdb9d1c9858dd1cc818d85b89dd081b5a5b9d60621b6044820152606401610a60565b601954421061178757601254336000908152601a602052604090206002015461172b9083612f28565b11156117875760405162461bcd60e51b815260206004820152602560248201527f536f72727920796f752063616e206f6e6c79206d696e74203131207065722077604482015264185b1b195d60da1b6064820152608401610a60565b60005b8181101561182457601880549060006117a283612ff1565b9091555050336000908152601a602052604081206002018054916117c583612ff1565b91905055506117d6336018546122be565b337f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688561180160095490565b60405190815260200160405180910390a28061181c81612ff1565b91505061178a565b50506016805461ff0019169055565b6001600160a01b03821633141561188c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a60565b3360008181526006602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516118f9911515815260200190565b60405180910390a35050565b61190f3383611fcc565b61192b5760405162461bcd60e51b8152600401610a6090612e82565b611937848484846122d8565b50505050565b6000546001600160a01b031633146119675760405162461bcd60e51b8152600401610a6090612e4d565b6016805460ff19166001179055565b6000818152600360205260409020546060906001600160a01b03166119f55760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a60565b60006119ff61230b565b90506000815111611a1f5760405180602001604052806000815250611a4a565b80611a298461231a565b604051602001611a3a929190612d7c565b6040516020818303038152906040525b9392505050565b6000546001600160a01b03163314611a7b5760405162461bcd60e51b8152600401610a6090612e4d565b612b67811115611adc5760405162461bcd60e51b815260206004820152602660248201527f4d617820616d6f756e74206f66205048432063616e6e6f74206578636565642060448201526531312c31313160d01b6064820152608401610a60565b601055565b60606015805461096890612fb6565b6000546001600160a01b03163314611b1a5760405162461bcd60e51b8152600401610a6090612e4d565b6016805462ff0000191662010000179055565b6000546001600160a01b03163314611b575760405162461bcd60e51b8152600401610a6090612e4d565b601155565b6000546001600160a01b03163314611b865760405162461bcd60e51b8152600401610a6090612e4d565b601255565b6000546001600160a01b03163314611bb55760405162461bcd60e51b8152600401610a6090612e4d565b6001600160a01b038116611c1a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a60565b610fd38161226e565b6000546001600160a01b03163314611c4d5760405162461bcd60e51b8152600401610a6090612e4d565b601754601054611c5d9190612f73565b8151600954611c6c9190612f28565b1115611cc55760405162461bcd60e51b815260206004820152602260248201527f596f7520776f756c6420657863656564207468652061697264726f70206c696d6044820152611a5d60f21b6064820152608401610a60565b60005b8151811015610bee5760188054906000611ce183612ff1565b9190505550611d19828281518110611d0957634e487b7160e01b600052603260045260246000fd5b60200260200101516018546122be565b337f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885611d4460095490565b60405190815260200160405180910390a280611d5f81612ff1565b915050611cc8565b60138054611d7490612fb6565b80601f0160208091040260200160405190810160405280929190818152602001828054611da090612fb6565b8015611ded5780601f10611dc257610100808354040283529160200191611ded565b820191906000526020600020905b815481529060010190602001808311611dd057829003601f168201915b505050505081565b60006001600160e01b031982166380ac58cd60e01b1480611e2657506001600160e01b03198216635b5e139f60e01b145b8061095157506301ffc9a760e01b6001600160e01b0319831614610951565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611e7a826110ea565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b80471015611f035760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610a60565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611f50576040519150601f19603f3d011682016040523d82523d6000602084013e611f55565b606091505b5050905080610b965760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610a60565b6000818152600360205260408120546001600160a01b03166120455760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a60565b6000612050836110ea565b9050806001600160a01b0316846001600160a01b0316148061208b5750836001600160a01b0316612080846109eb565b6001600160a01b0316145b806120bb57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166120d6826110ea565b6001600160a01b03161461213e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a60565b6001600160a01b0382166121a05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a60565b6121ab838383612435565b6121b6600082611e45565b6001600160a01b03831660009081526004602052604081208054600192906121df908490612f73565b90915550506001600160a01b038216600090815260046020526040812080546001929061220d908490612f28565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610bee8282604051806020016040528060008152506124f2565b6122e38484846120c3565b6122ef84848484612525565b6119375760405162461bcd60e51b8152600401610a6090612dfb565b60606014805461096890612fb6565b60608161233f57506040805180820190915260018152600360fc1b6020820152610954565b8160005b8115612369578061235381612ff1565b91506123629050600a83612f40565b9150612343565b60008167ffffffffffffffff81111561239257634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156123bc576020820181803683370190505b5090505b84156120bb576123d1600183612f73565b91506123de600a8661300c565b6123e9906030612f28565b60f81b81838151811061240c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061242e600a86612f40565b94506123c0565b6001600160a01b0383166124905761248b81600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b6124b3565b816001600160a01b0316836001600160a01b0316146124b3576124b38382612632565b6001600160a01b0382166124cf576124ca816126cf565b610b96565b826001600160a01b0316826001600160a01b031614610b9657610b9682826127a8565b6124fc83836127ec565b6125096000848484612525565b610b965760405162461bcd60e51b8152600401610a6090612dfb565b60006001600160a01b0384163b1561262757604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612569903390899088908890600401612dab565b602060405180830381600087803b15801561258357600080fd5b505af19250505080156125b3575060408051601f3d908101601f191682019092526125b091810190612cd6565b60015b61260d573d8080156125e1576040519150601f19603f3d011682016040523d82523d6000602084013e6125e6565b606091505b5080516126055760405162461bcd60e51b8152600401610a6090612dfb565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506120bb565b506001949350505050565b6000600161263f846111b7565b6126499190612f73565b60008381526008602052604090205490915080821461269c576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b6009546000906126e190600190612f73565b6000838152600a60205260408120546009805493945090928490811061271757634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806009838154811061274657634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600980548061278c57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006127b3836111b7565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6001600160a01b0382166128425760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a60565b6000818152600360205260409020546001600160a01b0316156128a75760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a60565b6128b360008383612435565b6001600160a01b03821660009081526004602052604081208054600192906128dc908490612f28565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461294690612fb6565b90600052602060002090601f01602090048101928261296857600085556129ae565b82601f1061298157805160ff19168380011785556129ae565b828001600101855582156129ae579182015b828111156129ae578251825591602001919060010190612993565b506129ba9291506129be565b5090565b5b808211156129ba57600081556001016129bf565b600067ffffffffffffffff8311156129ed576129ed61304c565b612a00601f8401601f1916602001612ed3565b9050828152838383011115612a1457600080fd5b828260208301376000602084830101529392505050565b600060208284031215612a3c578081fd5b8135611a4a81613062565b60008060408385031215612a59578081fd5b8235612a6481613062565b91506020830135612a7481613062565b809150509250929050565b600080600060608486031215612a93578081fd5b8335612a9e81613062565b92506020840135612aae81613062565b929592945050506040919091013590565b60008060008060808587031215612ad4578081fd5b8435612adf81613062565b93506020850135612aef81613062565b925060408501359150606085013567ffffffffffffffff811115612b11578182fd5b8501601f81018713612b21578182fd5b612b30878235602084016129d3565b91505092959194509250565b60008060408385031215612b4e578182fd5b8235612b5981613062565b915060208301358015158114612a74578182fd5b60008060408385031215612b7f578182fd5b8235612b8a81613062565b946020939093013593505050565b60006020808385031215612baa578182fd5b823567ffffffffffffffff811115612bc0578283fd5b8301601f81018513612bd0578283fd5b8035612be3612bde82612f04565b612ed3565b8181528381019083850185840285018601891015612bff578687fd5b8694505b83851015612c2a578035612c1681613062565b835260019490940193918501918501612c03565b50979650505050505050565b60006020808385031215612c48578182fd5b823567ffffffffffffffff811115612c5e578283fd5b8301601f81018513612c6e578283fd5b8035612c7c612bde82612f04565b8181528381019083850185840285018601891015612c98578687fd5b8694505b83851015612c2a578035835260019490940193918501918501612c9c565b600060208284031215612ccb578081fd5b8135611a4a81613077565b600060208284031215612ce7578081fd5b8151611a4a81613077565b600060208284031215612d03578081fd5b813567ffffffffffffffff811115612d19578182fd5b8201601f81018413612d29578182fd5b6120bb848235602084016129d3565b600060208284031215612d49578081fd5b5035919050565b60008151808452612d68816020860160208601612f8a565b601f01601f19169290920160200192915050565b60008351612d8e818460208801612f8a565b835190830190612da2818360208801612f8a565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612dde90830184612d50565b9695505050505050565b600060208252611a4a6020830184612d50565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715612efc57612efc61304c565b604052919050565b600067ffffffffffffffff821115612f1e57612f1e61304c565b5060209081020190565b60008219821115612f3b57612f3b613020565b500190565b600082612f4f57612f4f613036565b500490565b6000816000190483118215151615612f6e57612f6e613020565b500290565b600082821015612f8557612f85613020565b500390565b60005b83811015612fa5578181015183820152602001612f8d565b838111156119375750506000910152565b600281046001821680612fca57607f821691505b60208210811415612feb57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561300557613005613020565b5060010190565b60008261301b5761301b613036565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610fd357600080fd5b6001600160e01b031981168114610fd357600080fdfea2646970667358221220c11a54ebdcf67d283cb8b68ab522592b7caa2347b6c43ada21859e152f9b7b2864736f6c63430008020033697066733a2f2f516d526f476a6d6e326b5059795642544c6d5239744777626933536a57726a4474373575423833704268735a68472f0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003800000000000000000000000000000000000000000000000000000000000000540000000000000000000000000000000000000000000000000000000000000000b000000000000000000000000a40e4f517cfb215f764b99f03cbcee04c36cd58e0000000000000000000000001285adc5fe25b79ecd70f8ef42854df7e3e9e77600000000000000000000000096748b1ab4482baf0c0bf98d506f905ca454b30d000000000000000000000000da661bbb29b7c81b6e828353a933cfef71ac57720000000000000000000000003d05c62857dd644225f125e863a25724c40b4a310000000000000000000000006762faa142669190f90840139335c477ad3a56c1000000000000000000000000cca9937ef93ff33b8518d5bf61ccdc72894e5f5b000000000000000000000000c15a55a52a30e51d4d5cacbc0f5bf7bfb88c277e000000000000000000000000fc56e522504348833bce63a6c15101d28e9bc1c2000000000000000000000000b0b33de5c4a5872986cf433fdb567767adfb8532000000000000000000000000d232713da5a1acaad62a69b693af9ded453573e5000000000000000000000000000000000000000000000000000000000000000b00000000000000000000000000000000000000000000000000000000000009c400000000000000000000000000000000000000000000000000000000000007d0000000000000000000000000000000000000000000000000000000000000057800000000000000000000000000000000000000000000000000000000000003e80000000000000000000000000000000000000000000000000000000000000258000000000000000000000000000000000000000000000000000000000000025800000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000000000000000000000000000000000000000017700000000000000000000000000000000000000000000000000000000000001770000000000000000000000000000000000000000000000000000000000000096000000000000000000000000000000000000000000000000000000000000000d000000000000000000000000da661bbb29b7c81b6e828353a933cfef71ac5772000000000000000000000000c15a55a52a30e51d4d5cacbc0f5bf7bfb88c277e000000000000000000000000cca9937ef93ff33b8518d5bf61ccdc72894e5f5b000000000000000000000000b0b33de5c4a5872986cf433fdb567767adfb8532000000000000000000000000d232713da5a1acaad62a69b693af9ded453573e50000000000000000000000001285adc5fe25b79ecd70f8ef42854df7e3e9e776000000000000000000000000402905d2aa5d66515d51faf2dfa4e350634dd20a00000000000000000000000002c65175f7daf40be976e4fa54842b08149d8c6d000000000000000000000000bbea2edb1eb8dba31d69eaeea328b8a59c65da5800000000000000000000000047e2e4aa911a75006076986d09741a48f12c2526000000000000000000000000fc56e522504348833bce63a6c15101d28e9bc1c2000000000000000000000000a40e4f517cfb215f764b99f03cbcee04c36cd58e0000000000000000000000006762faa142669190f90840139335c477ad3a56c1000000000000000000000000000000000000000000000000000000000000000200000000000000000000000096748b1ab4482baf0c0bf98d506f905ca454b30d0000000000000000000000003d05c62857dd644225f125e863a25724c40b4a31

Deployed Bytecode

0x6080604052600436106102b25760003560e01c806370a0823111610175578063c87b56dd116100dc578063ea7523ee11610095578063f2bec51d1161006f578063f2bec51d146108c1578063f2fde38b146108d7578063fc15ad06146108f7578063ff1b655614610917576102fb565b8063ea7523ee1461086c578063ee8cdd4e14610881578063f1d5f517146108a1576102fb565b8063c87b56dd14610783578063ce7c2ac2146107a3578063e33b7de3146107d9578063e6981f2e146107ee578063e8a3d4851461080e578063e985e9c514610823576102fb565b806395d89b411161012e57806395d89b41146106d05780639852595c146106e5578063a0712d681461071b578063a22cb4651461072e578063b88d4fde1461074e578063c721f08d1461076e576102fb565b806370a0823114610628578063715018a614610648578063895fc7881461065d5780638b83209b146106725780638da5cb5b14610692578063938e3d7b146106b0576102fb565b80633a98ef391161021957806355f804b3116101d257806355f804b3146105365780635e5c06e214610556578063616d0dfd146105bd5780636352211e146105d25780636aaa571d146105f2578063704b6c0214610608576102fb565b80633a98ef391461049c5780633c8463a1146104b157806342842e0e146104c7578063429e3846146104e75780634f5e0b28146104fc5780634f6ccce714610516576102fb565b8063191655871161026b57806319165587146103f057806323755dea1461041057806323b872dd1461042657806326d104ec146104465780632f745c591461046657806333bc1c5c14610486576102fb565b806301ffc9a71461030057806306fdde0314610335578063081812fc14610357578063095ea7b31461038f57806310969523146103b157806318160ddd146103d1576102fb565b366102fb577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561030c57600080fd5b5061032061031b366004612cba565b61092c565b60405190151581526020015b60405180910390f35b34801561034157600080fd5b5061034a610959565b60405161032c9190612de8565b34801561036357600080fd5b50610377610372366004612d38565b6109eb565b6040516001600160a01b03909116815260200161032c565b34801561039b57600080fd5b506103af6103aa366004612b6d565b610a85565b005b3480156103bd57600080fd5b506103af6103cc366004612cf2565b610b9b565b3480156103dd57600080fd5b506009545b60405190815260200161032c565b3480156103fc57600080fd5b506103af61040b366004612a2b565b610bf2565b34801561041c57600080fd5b506103e260105481565b34801561043257600080fd5b506103af610441366004612a7f565b610dc3565b34801561045257600080fd5b506103af610461366004612c36565b610df4565b34801561047257600080fd5b506103e2610481366004612b6d565b610e5e565b34801561049257600080fd5b506103e260195481565b3480156104a857600080fd5b50600b546103e2565b3480156104bd57600080fd5b506103e260125481565b3480156104d357600080fd5b506103af6104e2366004612a7f565b610ef4565b3480156104f357600080fd5b506103af610f0f565b34801561050857600080fd5b506016546103209060ff1681565b34801561052257600080fd5b506103e2610531366004612d38565b610fd6565b34801561054257600080fd5b506103af610551366004612cf2565b611077565b34801561056257600080fd5b5061059b610571366004612a2b565b601a6020526000908152604090208054600182015460028301546003909301549192909160ff1684565b604080519485526020850193909352918301521515606082015260800161032c565b3480156105c957600080fd5b506103af6110b4565b3480156105de57600080fd5b506103776105ed366004612d38565b6110ea565b3480156105fe57600080fd5b506103e260175481565b34801561061457600080fd5b506103af610623366004612a2b565b611161565b34801561063457600080fd5b506103e2610643366004612a2b565b6111b7565b34801561065457600080fd5b506103af61123e565b34801561066957600080fd5b506103af611274565b34801561067e57600080fd5b5061037761068d366004612d38565b6114aa565b34801561069e57600080fd5b506000546001600160a01b0316610377565b3480156106bc57600080fd5b506103af6106cb366004612cf2565b6114e8565b3480156106dc57600080fd5b5061034a611525565b3480156106f157600080fd5b506103e2610700366004612a2b565b6001600160a01b03166000908152600e602052604090205490565b6103af610729366004612d38565b611534565b34801561073a57600080fd5b506103af610749366004612b3c565b611833565b34801561075a57600080fd5b506103af610769366004612abf565b611905565b34801561077a57600080fd5b506103af61193d565b34801561078f57600080fd5b5061034a61079e366004612d38565b611976565b3480156107af57600080fd5b506103e26107be366004612a2b565b6001600160a01b03166000908152600d602052604090205490565b3480156107e557600080fd5b50600c546103e2565b3480156107fa57600080fd5b506103af610809366004612d38565b611a51565b34801561081a57600080fd5b5061034a611ae1565b34801561082f57600080fd5b5061032061083e366004612a47565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561087857600080fd5b506103af611af0565b34801561088d57600080fd5b506103af61089c366004612d38565b611b2d565b3480156108ad57600080fd5b506103af6108bc366004612d38565b611b5c565b3480156108cd57600080fd5b506103e260115481565b3480156108e357600080fd5b506103af6108f2366004612a2b565b611b8b565b34801561090357600080fd5b506103af610912366004612b98565b611c23565b34801561092357600080fd5b5061034a611d67565b60006001600160e01b0319821663780e9d6360e01b1480610951575061095182611df5565b90505b919050565b60606001805461096890612fb6565b80601f016020809104026020016040519081016040528092919081815260200182805461099490612fb6565b80156109e15780601f106109b6576101008083540402835291602001916109e1565b820191906000526020600020905b8154815290600101906020018083116109c457829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b0316610a695760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610a90826110ea565b9050806001600160a01b0316836001600160a01b03161415610afe5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a60565b336001600160a01b0382161480610b1a5750610b1a813361083e565b610b8c5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a60565b610b968383611e45565b505050565b6000546001600160a01b03163314610bc55760405162461bcd60e51b8152600401610a6090612e4d565b60165462010000900460ff1615610bdb57600080fd5b8051610bee90601390602084019061293a565b5050565b6001600160a01b0381166000908152600d6020526040902054610c665760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b6064820152608401610a60565b6000600c5447610c769190612f28565b6001600160a01b0383166000908152600e6020908152604080832054600b54600d909352908320549394509192610cad9085612f54565b610cb79190612f40565b610cc19190612f73565b905080610d245760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b6064820152608401610a60565b6001600160a01b0383166000908152600e6020526040902054610d48908290612f28565b6001600160a01b0384166000908152600e6020526040902055600c54610d6f908290612f28565b600c55610d7c8382611eb3565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b610dcd3382611fcc565b610de95760405162461bcd60e51b8152600401610a6090612e82565b610b968383836120c3565b6000546001600160a01b03163314610e1e5760405162461bcd60e51b8152600401610a6090612e4d565b8051600114610e2c57600080fd5b80600081518110610e4d57634e487b7160e01b600052603260045260246000fd5b602002602001015160198190555050565b6000610e69836111b7565b8210610ecb5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610a60565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b610b9683838360405180602001604052806000815250611905565b336000908152601a602052604090206003015460ff161515600114610f765760405162461bcd60e51b815260206004820152601e60248201527f536f7272792c20596f75206e65656420746f20626520616e2061646d696e00006044820152606401610a60565b60005b601b54811015610fd357610fc1601b8281548110610fa757634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316610bf2565b80610fcb81612ff1565b915050610f79565b50565b6000610fe160095490565b82106110445760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610a60565b6009828154811061106557634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000546001600160a01b031633146110a15760405162461bcd60e51b8152600401610a6090612e4d565b8051610bee90601490602084019061293a565b6000546001600160a01b031633146110de5760405162461bcd60e51b8152600401610a6090612e4d565b6016805460ff19169055565b6000818152600360205260408120546001600160a01b0316806109515760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a60565b6000546001600160a01b0316331461118b5760405162461bcd60e51b8152600401610a6090612e4d565b6001600160a01b03166000908152601a60205260409020600301805460ff19811660ff90911615179055565b60006001600160a01b0382166112225760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a60565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146112685760405162461bcd60e51b8152600401610a6090612e4d565b611272600061226e565b565b336000908152601a602052604090206003015460ff1615156001146112db5760405162461bcd60e51b815260206004820152601e60248201527f536f7272792c20596f75206e65656420746f20626520616e2061646d696e00006044820152606401610a60565b336000908152601a60205260409020805460039091015460ff1615156001146113465760405162461bcd60e51b815260206004820152601d60248201527f536f7272792c204f6e6c7920616e2061646d696e2063616e206d696e740000006044820152606401610a60565b600081116113965760405162461bcd60e51b815260206004820152601c60248201527f4e65656420746f206861766520726573657276656420737570706c79000000006044820152606401610a60565b601054816113a360095490565b6113ad9190612f28565b11156113fb5760405162461bcd60e51b815260206004820152601f60248201527f596f7520776f756c642065786365656420746865206d696e74206c696d6974006044820152606401610a60565b336000908152601a60205260408120805483929061141a908490612f73565b909155505060175461142d908290612f73565b60175560005b81811015610bee576018805490600061144b83612ff1565b919050555061145c336018546122be565b337f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688561148760095490565b60405190815260200160405180910390a2806114a281612ff1565b915050611433565b6000600f82815481106114cd57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b6000546001600160a01b031633146115125760405162461bcd60e51b8152600401610a6090612e4d565b8051610bee90601590602084019061293a565b60606002805461096890612fb6565b601654610100900460ff161561157d5760405162461bcd60e51b815260206004820152600e60248201526d4e6f2072652d656e7472616e637960901b6044820152606401610a60565b6016805461ff001916610100179081905560ff166115dd5760405162461bcd60e51b815260206004820152601b60248201527f53616c65206d7573742062652061637469766520746f206d696e7400000000006044820152606401610a60565b6017546010546115ed9190612f73565b816115f760095490565b6116019190612f28565b111561165f5760405162461bcd60e51b815260206004820152602760248201527f507572636861736520776f756c6420657863656564206d617820737570706c79604482015266206f662050484360c81b6064820152608401610a60565b8060115461166d9190612f54565b3410156116bc5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610a60565b333b156117025760405162461bcd60e51b815260206004820152601460248201527310dbdb9d1c9858dd1cc818d85b89dd081b5a5b9d60621b6044820152606401610a60565b601954421061178757601254336000908152601a602052604090206002015461172b9083612f28565b11156117875760405162461bcd60e51b815260206004820152602560248201527f536f72727920796f752063616e206f6e6c79206d696e74203131207065722077604482015264185b1b195d60da1b6064820152608401610a60565b60005b8181101561182457601880549060006117a283612ff1565b9091555050336000908152601a602052604081206002018054916117c583612ff1565b91905055506117d6336018546122be565b337f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688561180160095490565b60405190815260200160405180910390a28061181c81612ff1565b91505061178a565b50506016805461ff0019169055565b6001600160a01b03821633141561188c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a60565b3360008181526006602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516118f9911515815260200190565b60405180910390a35050565b61190f3383611fcc565b61192b5760405162461bcd60e51b8152600401610a6090612e82565b611937848484846122d8565b50505050565b6000546001600160a01b031633146119675760405162461bcd60e51b8152600401610a6090612e4d565b6016805460ff19166001179055565b6000818152600360205260409020546060906001600160a01b03166119f55760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a60565b60006119ff61230b565b90506000815111611a1f5760405180602001604052806000815250611a4a565b80611a298461231a565b604051602001611a3a929190612d7c565b6040516020818303038152906040525b9392505050565b6000546001600160a01b03163314611a7b5760405162461bcd60e51b8152600401610a6090612e4d565b612b67811115611adc5760405162461bcd60e51b815260206004820152602660248201527f4d617820616d6f756e74206f66205048432063616e6e6f74206578636565642060448201526531312c31313160d01b6064820152608401610a60565b601055565b60606015805461096890612fb6565b6000546001600160a01b03163314611b1a5760405162461bcd60e51b8152600401610a6090612e4d565b6016805462ff0000191662010000179055565b6000546001600160a01b03163314611b575760405162461bcd60e51b8152600401610a6090612e4d565b601155565b6000546001600160a01b03163314611b865760405162461bcd60e51b8152600401610a6090612e4d565b601255565b6000546001600160a01b03163314611bb55760405162461bcd60e51b8152600401610a6090612e4d565b6001600160a01b038116611c1a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a60565b610fd38161226e565b6000546001600160a01b03163314611c4d5760405162461bcd60e51b8152600401610a6090612e4d565b601754601054611c5d9190612f73565b8151600954611c6c9190612f28565b1115611cc55760405162461bcd60e51b815260206004820152602260248201527f596f7520776f756c6420657863656564207468652061697264726f70206c696d6044820152611a5d60f21b6064820152608401610a60565b60005b8151811015610bee5760188054906000611ce183612ff1565b9190505550611d19828281518110611d0957634e487b7160e01b600052603260045260246000fd5b60200260200101516018546122be565b337f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885611d4460095490565b60405190815260200160405180910390a280611d5f81612ff1565b915050611cc8565b60138054611d7490612fb6565b80601f0160208091040260200160405190810160405280929190818152602001828054611da090612fb6565b8015611ded5780601f10611dc257610100808354040283529160200191611ded565b820191906000526020600020905b815481529060010190602001808311611dd057829003601f168201915b505050505081565b60006001600160e01b031982166380ac58cd60e01b1480611e2657506001600160e01b03198216635b5e139f60e01b145b8061095157506301ffc9a760e01b6001600160e01b0319831614610951565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611e7a826110ea565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b80471015611f035760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610a60565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611f50576040519150601f19603f3d011682016040523d82523d6000602084013e611f55565b606091505b5050905080610b965760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610a60565b6000818152600360205260408120546001600160a01b03166120455760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a60565b6000612050836110ea565b9050806001600160a01b0316846001600160a01b0316148061208b5750836001600160a01b0316612080846109eb565b6001600160a01b0316145b806120bb57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166120d6826110ea565b6001600160a01b03161461213e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a60565b6001600160a01b0382166121a05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a60565b6121ab838383612435565b6121b6600082611e45565b6001600160a01b03831660009081526004602052604081208054600192906121df908490612f73565b90915550506001600160a01b038216600090815260046020526040812080546001929061220d908490612f28565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610bee8282604051806020016040528060008152506124f2565b6122e38484846120c3565b6122ef84848484612525565b6119375760405162461bcd60e51b8152600401610a6090612dfb565b60606014805461096890612fb6565b60608161233f57506040805180820190915260018152600360fc1b6020820152610954565b8160005b8115612369578061235381612ff1565b91506123629050600a83612f40565b9150612343565b60008167ffffffffffffffff81111561239257634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156123bc576020820181803683370190505b5090505b84156120bb576123d1600183612f73565b91506123de600a8661300c565b6123e9906030612f28565b60f81b81838151811061240c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061242e600a86612f40565b94506123c0565b6001600160a01b0383166124905761248b81600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b6124b3565b816001600160a01b0316836001600160a01b0316146124b3576124b38382612632565b6001600160a01b0382166124cf576124ca816126cf565b610b96565b826001600160a01b0316826001600160a01b031614610b9657610b9682826127a8565b6124fc83836127ec565b6125096000848484612525565b610b965760405162461bcd60e51b8152600401610a6090612dfb565b60006001600160a01b0384163b1561262757604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612569903390899088908890600401612dab565b602060405180830381600087803b15801561258357600080fd5b505af19250505080156125b3575060408051601f3d908101601f191682019092526125b091810190612cd6565b60015b61260d573d8080156125e1576040519150601f19603f3d011682016040523d82523d6000602084013e6125e6565b606091505b5080516126055760405162461bcd60e51b8152600401610a6090612dfb565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506120bb565b506001949350505050565b6000600161263f846111b7565b6126499190612f73565b60008381526008602052604090205490915080821461269c576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b6009546000906126e190600190612f73565b6000838152600a60205260408120546009805493945090928490811061271757634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806009838154811061274657634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600980548061278c57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006127b3836111b7565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6001600160a01b0382166128425760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a60565b6000818152600360205260409020546001600160a01b0316156128a75760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a60565b6128b360008383612435565b6001600160a01b03821660009081526004602052604081208054600192906128dc908490612f28565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461294690612fb6565b90600052602060002090601f01602090048101928261296857600085556129ae565b82601f1061298157805160ff19168380011785556129ae565b828001600101855582156129ae579182015b828111156129ae578251825591602001919060010190612993565b506129ba9291506129be565b5090565b5b808211156129ba57600081556001016129bf565b600067ffffffffffffffff8311156129ed576129ed61304c565b612a00601f8401601f1916602001612ed3565b9050828152838383011115612a1457600080fd5b828260208301376000602084830101529392505050565b600060208284031215612a3c578081fd5b8135611a4a81613062565b60008060408385031215612a59578081fd5b8235612a6481613062565b91506020830135612a7481613062565b809150509250929050565b600080600060608486031215612a93578081fd5b8335612a9e81613062565b92506020840135612aae81613062565b929592945050506040919091013590565b60008060008060808587031215612ad4578081fd5b8435612adf81613062565b93506020850135612aef81613062565b925060408501359150606085013567ffffffffffffffff811115612b11578182fd5b8501601f81018713612b21578182fd5b612b30878235602084016129d3565b91505092959194509250565b60008060408385031215612b4e578182fd5b8235612b5981613062565b915060208301358015158114612a74578182fd5b60008060408385031215612b7f578182fd5b8235612b8a81613062565b946020939093013593505050565b60006020808385031215612baa578182fd5b823567ffffffffffffffff811115612bc0578283fd5b8301601f81018513612bd0578283fd5b8035612be3612bde82612f04565b612ed3565b8181528381019083850185840285018601891015612bff578687fd5b8694505b83851015612c2a578035612c1681613062565b835260019490940193918501918501612c03565b50979650505050505050565b60006020808385031215612c48578182fd5b823567ffffffffffffffff811115612c5e578283fd5b8301601f81018513612c6e578283fd5b8035612c7c612bde82612f04565b8181528381019083850185840285018601891015612c98578687fd5b8694505b83851015612c2a578035835260019490940193918501918501612c9c565b600060208284031215612ccb578081fd5b8135611a4a81613077565b600060208284031215612ce7578081fd5b8151611a4a81613077565b600060208284031215612d03578081fd5b813567ffffffffffffffff811115612d19578182fd5b8201601f81018413612d29578182fd5b6120bb848235602084016129d3565b600060208284031215612d49578081fd5b5035919050565b60008151808452612d68816020860160208601612f8a565b601f01601f19169290920160200192915050565b60008351612d8e818460208801612f8a565b835190830190612da2818360208801612f8a565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612dde90830184612d50565b9695505050505050565b600060208252611a4a6020830184612d50565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715612efc57612efc61304c565b604052919050565b600067ffffffffffffffff821115612f1e57612f1e61304c565b5060209081020190565b60008219821115612f3b57612f3b613020565b500190565b600082612f4f57612f4f613036565b500490565b6000816000190483118215151615612f6e57612f6e613020565b500290565b600082821015612f8557612f85613020565b500390565b60005b83811015612fa5578181015183820152602001612f8d565b838111156119375750506000910152565b600281046001821680612fca57607f821691505b60208210811415612feb57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561300557613005613020565b5060010190565b60008261301b5761301b613036565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610fd357600080fd5b6001600160e01b031981168114610fd357600080fdfea2646970667358221220c11a54ebdcf67d283cb8b68ab522592b7caa2347b6c43ada21859e152f9b7b2864736f6c63430008020033

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

0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003800000000000000000000000000000000000000000000000000000000000000540000000000000000000000000000000000000000000000000000000000000000b000000000000000000000000a40e4f517cfb215f764b99f03cbcee04c36cd58e0000000000000000000000001285adc5fe25b79ecd70f8ef42854df7e3e9e77600000000000000000000000096748b1ab4482baf0c0bf98d506f905ca454b30d000000000000000000000000da661bbb29b7c81b6e828353a933cfef71ac57720000000000000000000000003d05c62857dd644225f125e863a25724c40b4a310000000000000000000000006762faa142669190f90840139335c477ad3a56c1000000000000000000000000cca9937ef93ff33b8518d5bf61ccdc72894e5f5b000000000000000000000000c15a55a52a30e51d4d5cacbc0f5bf7bfb88c277e000000000000000000000000fc56e522504348833bce63a6c15101d28e9bc1c2000000000000000000000000b0b33de5c4a5872986cf433fdb567767adfb8532000000000000000000000000d232713da5a1acaad62a69b693af9ded453573e5000000000000000000000000000000000000000000000000000000000000000b00000000000000000000000000000000000000000000000000000000000009c400000000000000000000000000000000000000000000000000000000000007d0000000000000000000000000000000000000000000000000000000000000057800000000000000000000000000000000000000000000000000000000000003e80000000000000000000000000000000000000000000000000000000000000258000000000000000000000000000000000000000000000000000000000000025800000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000000000000000000000000000000000000000017700000000000000000000000000000000000000000000000000000000000001770000000000000000000000000000000000000000000000000000000000000096000000000000000000000000000000000000000000000000000000000000000d000000000000000000000000da661bbb29b7c81b6e828353a933cfef71ac5772000000000000000000000000c15a55a52a30e51d4d5cacbc0f5bf7bfb88c277e000000000000000000000000cca9937ef93ff33b8518d5bf61ccdc72894e5f5b000000000000000000000000b0b33de5c4a5872986cf433fdb567767adfb8532000000000000000000000000d232713da5a1acaad62a69b693af9ded453573e50000000000000000000000001285adc5fe25b79ecd70f8ef42854df7e3e9e776000000000000000000000000402905d2aa5d66515d51faf2dfa4e350634dd20a00000000000000000000000002c65175f7daf40be976e4fa54842b08149d8c6d000000000000000000000000bbea2edb1eb8dba31d69eaeea328b8a59c65da5800000000000000000000000047e2e4aa911a75006076986d09741a48f12c2526000000000000000000000000fc56e522504348833bce63a6c15101d28e9bc1c2000000000000000000000000a40e4f517cfb215f764b99f03cbcee04c36cd58e0000000000000000000000006762faa142669190f90840139335c477ad3a56c1000000000000000000000000000000000000000000000000000000000000000200000000000000000000000096748b1ab4482baf0c0bf98d506f905ca454b30d0000000000000000000000003d05c62857dd644225f125e863a25724c40b4a31

-----Decoded View---------------
Arg [0] : distro (address[]): 0xa40E4f517CFb215F764b99f03cBCee04C36cd58e,0x1285AdC5fe25b79ecD70F8Ef42854dF7E3E9E776,0x96748B1aB4482BAF0c0bF98d506F905ca454B30D,0xda661BBB29B7C81b6e828353a933cfEF71Ac5772,0x3D05c62857DD644225f125e863a25724C40B4a31,0x6762FAa142669190F90840139335C477aD3a56C1,0xcCA9937EF93ff33b8518d5Bf61Ccdc72894E5F5B,0xc15A55a52a30E51D4D5CACBC0f5bF7BFB88C277E,0xFC56e522504348833BCE63a6c15101d28E9BC1c2,0xB0b33de5c4A5872986CF433fdB567767aDFb8532,0xD232713dA5A1AcAAD62a69b693Af9DeD453573E5
Arg [1] : distro_shares (uint256[]): 2500,2000,1400,1000,600,600,500,500,375,375,150
Arg [2] : teamclaim (address[]): 0xda661BBB29B7C81b6e828353a933cfEF71Ac5772,0xc15A55a52a30E51D4D5CACBC0f5bF7BFB88C277E,0xcCA9937EF93ff33b8518d5Bf61Ccdc72894E5F5B,0xB0b33de5c4A5872986CF433fdB567767aDFb8532,0xD232713dA5A1AcAAD62a69b693Af9DeD453573E5,0x1285AdC5fe25b79ecD70F8Ef42854dF7E3E9E776,0x402905d2AA5D66515D51FAF2dFA4e350634dd20A,0x02C65175F7DAF40bE976E4Fa54842b08149d8C6d,0xbbEa2Edb1eB8dbA31d69eAeEa328B8A59c65DA58,0x47E2e4AA911A75006076986D09741a48F12c2526,0xFC56e522504348833BCE63a6c15101d28E9BC1c2,0xa40E4f517CFb215F764b99f03cBCee04C36cd58e,0x6762FAa142669190F90840139335C477aD3a56C1
Arg [3] : admins (address[]): 0x96748B1aB4482BAF0c0bF98d506F905ca454B30D,0x3D05c62857DD644225f125e863a25724C40B4a31

-----Encoded View---------------
45 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000200
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000380
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000540
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [5] : 000000000000000000000000a40e4f517cfb215f764b99f03cbcee04c36cd58e
Arg [6] : 0000000000000000000000001285adc5fe25b79ecd70f8ef42854df7e3e9e776
Arg [7] : 00000000000000000000000096748b1ab4482baf0c0bf98d506f905ca454b30d
Arg [8] : 000000000000000000000000da661bbb29b7c81b6e828353a933cfef71ac5772
Arg [9] : 0000000000000000000000003d05c62857dd644225f125e863a25724c40b4a31
Arg [10] : 0000000000000000000000006762faa142669190f90840139335c477ad3a56c1
Arg [11] : 000000000000000000000000cca9937ef93ff33b8518d5bf61ccdc72894e5f5b
Arg [12] : 000000000000000000000000c15a55a52a30e51d4d5cacbc0f5bf7bfb88c277e
Arg [13] : 000000000000000000000000fc56e522504348833bce63a6c15101d28e9bc1c2
Arg [14] : 000000000000000000000000b0b33de5c4a5872986cf433fdb567767adfb8532
Arg [15] : 000000000000000000000000d232713da5a1acaad62a69b693af9ded453573e5
Arg [16] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [17] : 00000000000000000000000000000000000000000000000000000000000009c4
Arg [18] : 00000000000000000000000000000000000000000000000000000000000007d0
Arg [19] : 0000000000000000000000000000000000000000000000000000000000000578
Arg [20] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [21] : 0000000000000000000000000000000000000000000000000000000000000258
Arg [22] : 0000000000000000000000000000000000000000000000000000000000000258
Arg [23] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [24] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [25] : 0000000000000000000000000000000000000000000000000000000000000177
Arg [26] : 0000000000000000000000000000000000000000000000000000000000000177
Arg [27] : 0000000000000000000000000000000000000000000000000000000000000096
Arg [28] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [29] : 000000000000000000000000da661bbb29b7c81b6e828353a933cfef71ac5772
Arg [30] : 000000000000000000000000c15a55a52a30e51d4d5cacbc0f5bf7bfb88c277e
Arg [31] : 000000000000000000000000cca9937ef93ff33b8518d5bf61ccdc72894e5f5b
Arg [32] : 000000000000000000000000b0b33de5c4a5872986cf433fdb567767adfb8532
Arg [33] : 000000000000000000000000d232713da5a1acaad62a69b693af9ded453573e5
Arg [34] : 0000000000000000000000001285adc5fe25b79ecd70f8ef42854df7e3e9e776
Arg [35] : 000000000000000000000000402905d2aa5d66515d51faf2dfa4e350634dd20a
Arg [36] : 00000000000000000000000002c65175f7daf40be976e4fa54842b08149d8c6d
Arg [37] : 000000000000000000000000bbea2edb1eb8dba31d69eaeea328b8a59c65da58
Arg [38] : 00000000000000000000000047e2e4aa911a75006076986d09741a48f12c2526
Arg [39] : 000000000000000000000000fc56e522504348833bce63a6c15101d28e9bc1c2
Arg [40] : 000000000000000000000000a40e4f517cfb215f764b99f03cbcee04c36cd58e
Arg [41] : 0000000000000000000000006762faa142669190f90840139335c477ad3a56c1
Arg [42] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [43] : 00000000000000000000000096748b1ab4482baf0c0bf98d506f905ca454b30d
Arg [44] : 0000000000000000000000003d05c62857dd644225f125e863a25724c40b4a31


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.