ETH Price: $3,565.27 (+8.13%)

Token

Toddlerpillars (TDPL)
 

Overview

Max Total Supply

9,998 TDPL

Holders

3,516

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
elodrawz.eth
Balance
1 TDPL
0x7c8249A15Ef13e6C73889A4dF359BB901AC71dB0
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

[View Our Honorary 1/1s](https://opensea.io/collection/toddlerpillar-chimerapillar-1-of-1) Through a ragged hole in reality crawl 9,999 Toddlerpillar NFTs generated from 888 mind-bending traits, including 60 ultra-rare 1/1s! The project extends the 20 year history of artist and gallerist Jon Beinart’s renowned Toddlerpillar doll sculptures, imbuing them with new psychedelic energy from award-winning artist and madman, Tim Molloy. Toddlerpillar holders join an interdimensional art collective with access to global gatherings and exclusive airdrops. With a long term vision to expand the Toddlerpillar brand into an animated series & vinyl collectables, we invite you to join us at the forefront of art and technology as we voyage into the untamed wilds of Web3.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
SkeletonCrew

Compiler Version
v0.8.2+commit.661d1103

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 24 : bagobones.sol
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/introspection/IERC1820Registry.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC777/IERC777Recipient.sol";
import "@openzeppelin/contracts/token/ERC777/IERC777.sol";

import "./interfaces/community_interface.sol";


import "./recovery/recovery.sol";
import "./interfaces/IRNG.sol";


import "./pixiedust.sol";

import "hardhat/console.sol";


contract SkeletonCrew is ERC721Enumerable, pixiedust, Ownable, recovery , ReentrancyGuard, IERC777Recipient {
    using SafeMath for uint256;
    using Strings  for uint256;

    bytes32 constant private TOKENS_RECIPIENT_INTERFACE_HASH = keccak256("ERC777TokensRecipient");
    IERC1820Registry internal constant _ERC1820_REGISTRY = IERC1820Registry(0x1820a4B7618BdE71Dce8cdc73aAB6C95905faD24);


    IRNG       immutable public _iRnd;
    uint256              public _MintPointer = 1;
    uint256              public _firstSale;

    bool                        _saleActive;
    bool                        _presaleActive;
    bool                        _dustMintActive;

    bytes32                     _reqID;
    bytes32                     _secondReq;
    bool                        _randomReceived;
    bool                        _secondReceived;
    uint256                     _randomCL;
    uint256                     _randomCL2;
    string                      _tokenRevealedBaseURI;
    uint256                     immutable _MaxUserMintable;
    uint256                     _userMinted;

    uint256                     _ts1;
    uint256                     _ts2;

    address             public  _communityAddress;

    mapping(uint256 => bool) public   _claimed;


    address         immutable public  _DUST;
    IERC721         immutable public  _EC;


    mapping (address => uint256) _freeClaimedPerWallet;
    mapping (address => uint256) _discountedClaimedPerWallet;
    mapping (address => uint256) _dusted;
    mapping (address => bool)   public permitted;


    event RandomProcessed(uint stage,uint256 randUsed_,uint256 _start,uint256 _stop,uint256 _supply);
    event DustPayment(uint256 quantity, uint256 value);
    event Allowed(address,bool);

     modifier onlyAllowed() {
        require(permitted[msg.sender] || (msg.sender == owner()),"Unauthorised");
        _;
    }

    constructor( IERC721 _ec, IRNG _rng, address _dust) ERC721(_name,_symbol) {
        _EC = _ec;
        _iRnd = _rng;
        _ERC1820_REGISTRY.setInterfaceImplementer(address(this), TOKENS_RECIPIENT_INTERFACE_HASH, address(this));
        _DUST = _dust;
        _MaxUserMintable = _maxSupply - (_clientMintLimit + _ecMintLimit);
    }

    receive() external payable {
        _split(msg.value);
    }

    function _split(uint256 amount) internal {
        bool sent;
        uint256 _total;
        for (uint256 j = 0; j < _wallets.length; j++) {
            uint256 _amount = amount * _shares[j] / 1000;
            if (j == _wallets.length-1) {
                _amount = amount - _total;
            } else {
                _total += _amount;
            }
            ( sent, ) = _wallets[j].call{value: _amount}(""); // don't use send or xfer (gas)
            require(sent, "Failed to send Ether");
        }
    }

    function setAllowed(address _addr, bool _state) external onlyAllowed {
        permitted[_addr] = _state;
        emit Allowed(_addr,_state);
    }

    function mintAdvanced(bool clientMint, uint256 number, address destination) external onlyAllowed {
        
        uint256 position;
        uint256 limit;
        if (clientMint) {
            position    = _clientMintPosition;
            limit       = _clientMintLimit;
        } else {
            destination = _ecVault;
            position    = _ecMintPosition;
            limit       = _ecMintLimit;
        }
        require(position<limit,"All minted or no allowance");
        uint count = position+number<limit ? number : limit-position;
        uint256 supply = _MintPointer;
        _MintPointer += count;
        for (uint j = 0; j < count; j++) {
            _mint(destination,j+supply);
        }
         if (clientMint) {
             _clientMintPosition = position+count;
         } else {
             _ecMintPosition = position+count;
         }
    }

    function mintFreePresaleWithEtherCards(uint256[] memory tokenIds) external {
        require(checkPresaleIsActive(),"presale not open");
        uint256 numberOfCards = eligibleTokens(tokenIds);
        require(totalSupply()+numberOfCards <= _maxSupply,"Not menough cards remaining");
        uint tfec = _totalFreeEC + numberOfCards;
        require(tfec <= _maxFreeEC, "EC allocation exceeded");
        _freeClaimedPerWallet[msg.sender] += numberOfCards;
        require(_freeClaimedPerWallet[msg.sender] <= _freePerAddress, "Max free per address exceeded");
        _totalFreeEC = tfec;
        _mintCards(numberOfCards,msg.sender);
    }

    function mintDiscountPresaleWithEtherCards(uint256 numberOfCards) external payable {
        require(checkPresaleIsActive(),"presale not open");
        require (_EC.balanceOf(msg.sender) > 0,"You do not hold Ether Cards");
        _discountedClaimedPerWallet[msg.sender] += numberOfCards;
        require(_discountedClaimedPerWallet[msg.sender] <= _discountedPerAddress,"Number exceeds max discounted per address");
        _totalDiscount += numberOfCards;
        require(_maxDiscount >= _totalDiscount,"Too many discount tokens claimed");
        _mintPayable(numberOfCards, msg.sender, _discountPrice);
    }


    // make sure this respects ec_limit and client_limit
    function mint(uint256 numberOfCards) external payable {
        require(checkSaleIsActive(),"sale is not open");
        require(numberOfCards <= _maxPerSaleMint,"Exceeds max per Transaction Mint");
        //if (_firstSale == 0) _firstSale = _MintPointer;
        _mintPayable(numberOfCards, msg.sender, _fullPrice); 
    }


    function _mintPayable(uint256 numberOfCards, address recipient, uint256 price) internal {
        require(msg.value >= numberOfCards.mul(price),"price not met");
        _mintCards(numberOfCards,recipient);
        _split(msg.value);
    }

    function mintCards(uint256 numberOfCards, address recipient) external onlyAllowed {
        _mintCards(numberOfCards,recipient);
    }

    function _mintCards(uint256 numberOfCards, address recipient) internal {
        _userMinted += numberOfCards;
        require(_userMinted <= _MaxUserMintable,"This exceeds maximum number of user mintable cards");
        uint256 supply = _MintPointer;
        require(supply+numberOfCards <= _maxSupply,"This would exceed the number of cards available");
        for (uint j = 0; j < numberOfCards; j++) {
            _mint(recipient,supply+j);
        }
        _MintPointer += numberOfCards;
    }

    // Mint With DUST
    function tokensReceived(
        address ,
        address from,
        address ,
        uint256 amount,
        bytes calldata ,
        bytes calldata
      ) external override nonReentrant {

            require(checkSaleIsActive(),"sale is not open");
            require(_dustMintAvailable,"dust minting not available");
            require(msg.sender == _DUST, "Unauthorised");

            uint256 tokenCount = amount/_dustPrice;
            require(tokenCount > 0, "No. of tokens <= zero");

            _dusted[from] += tokenCount;

            require(_dusted[from]<=_dustPerAddress, "Too many minted by dust"); 

            _mintCards(tokenCount,from);
            
            uint256 _total;
            for (uint256 j = 0; j < _wallets.length; j++) {
                uint256 _amount = amount * _shares[j] / 1000;
                if (j == _wallets.length-1) {
                    _amount = amount - _total;
                } else {
                    _total += _amount;
                }
                IERC777(_DUST).send(_wallets[j],_amount,bytes("Dust Minting")); 
            }
            emit DustPayment(tokenCount, amount);
    }

    // and the outlier - can also call from the community contract - still needs gas fiddling

    function setCommunity(address community) external onlyAllowed {
        _communityAddress = community;
        permitted[community] = true;
    }

    function communityPurchase(uint256 tokenCount, bytes memory signature, uint256 role) external payable {
        require(_communityAddress != address(0),"Community sale not active");

        (bool success, ) = _communityAddress.call{value: msg.value}(
            abi.encodeWithSignature(
                "communityPurchase(address,uint256,bytes,uint256)",
                msg.sender,
                tokenCount,
                signature,
                role)
        );
        if (success) return;
        
        assembly {
            let ptr := mload(0x40)
            let size := returndatasize()
            returndatacopy(ptr, 0, size)
            revert(ptr, size)
        }
    
    }


    function setSaleStatus(bool active) external onlyOwner {
        _saleActive = active;
    }

    function setPresaleStatus(bool active) external onlyOwner {
        _presaleActive = active;
    }

    function setSaleDates(bool timedSale, uint256 start, uint256 end) external onlyOwner {
        _timedSale = timedSale;
        _saleStart = start;
        _saleEnd   = end;
    }
    function setPresaleDates(bool timedSale, uint256 start, uint256 end) external onlyOwner {
        _timedPresale = timedSale;
        _presaleStart = start;
        _presaleEnd   = end;
    }

    function checkSaleIsActive() public view returns (bool) {
        if (_saleActive) return true;
        if (_timedSale && (_saleStart <= block.timestamp) && (_saleEnd >= block.timestamp)) return true;
        return false;
    }

    function checkPresaleIsActive() public view returns (bool) {
        if (_presaleActive) return true;
        if (_timedPresale && (_presaleStart <= block.timestamp) && (_presaleEnd >= block.timestamp)) return true;
        return false;
    }

    function eligibleTokens(uint256[] memory tokenIds) internal returns (uint256) {
        uint256 count;
        for (uint j = 0; j < tokenIds.length; j++) {
            uint tokenId = tokenIds[j];
            require(_EC.ownerOf(tokenId)==msg.sender,"You do not own all tokens");
            if (!_claimed[tokenId]) {
                _claimed[tokenId] = true;
                count++;
            }
        }
        return count;
    }

    function setRevealedBaseURI(string calldata revealedBaseURI) external onlyOwner {
        _tokenRevealedBaseURI = revealedBaseURI;
        if (!_randomReceived) _reqID = _iRnd.requestRandomNumberWithCallback();
    }

    uint _start1;
    uint _stop1;
    uint _start2;

    function secondReveal() external onlyOwner {
        require(_randomReceived,"First Reveal not complete yet");
        if (!_secondReceived) _secondReq = _iRnd.requestRandomNumberWithCallback();
    }

    function uri(uint n) public view returns (uint) {
        if (n <= _ts1) {
            if ((n + _start1) <= _maxSupply) {
                return n + _start1;
            } 
            return n + _start1 - _maxSupply;
        } else {
            uint range = _maxSupply - _ts1;
            uint pos_in_range = 1 + ((n - _ts1 + _randomCL2) % range);
            
            if ((_stop1+pos_in_range) <= _maxSupply) {
                //console.log("A");
                return _stop1+pos_in_range;
            }
            if ((_stop1+pos_in_range) - _maxSupply <= _start1) {
                //console.log("B");
                return (_stop1+pos_in_range) - _maxSupply;
            }
            //console.log("C");
            uint from_left =  (_stop1+pos_in_range) - _maxSupply + 1;
            return (from_left - _start1) + _stop1;
        }
    }

    // function uri2tid(uint n) external view returns (uint256) {
    //     if (_start1 < _stop1) {
    //         // linear
    //         if (( n >= _start1) && (n <= _stop1)) return n - _start1;
    //     } else {
    //         if (n >= _start1) return n - _start1;
    //         if (n <= _stop1) {
    //             return n + _maxSupply - _start1;
    //         }
    //     }
    //     // second coming
    //     uint range = _maxSupply - _ts1;
        



    // }


    function process(uint256 random, bytes32 reqID) external {
        require(msg.sender == address(_iRnd),"Unauthorised RNG");
        if (_reqID == reqID) {
            require(!(_randomReceived), "Random No. already received");
            _randomCL  = random / 2; // set msb to zero
            _start1 = _randomCL % (_maxSupply + 1);
            _randomReceived = true;
            _ts1 = totalSupply();
            _stop1 = uri(_ts1);
            emit RandomProcessed(1,_randomCL,_start1,_stop1,_ts1);
        } else if (_secondReq == reqID){
            _secondReceived = true;
            _ts2 = totalSupply();
            _randomCL2 = random / 2;
            _start2 = _randomCL2 % (_maxSupply - _ts1 + 1);
            emit RandomProcessed(2,_randomCL,_start2,uri(_ts2),_ts2);
        }  else revert("Incorrect request ID sent");
    }

    function setPreRevealURI(string memory _pre) external onlyOwner {
        _tokenPreRevealURI = _pre;
    }
   
    // rewrite to use EtherCards   xx/1/101.json
    // 
    function tokenURI(uint256 tokenId) public view override(ERC721) returns (string memory) {
        require(_exists(tokenId), 'Token does not exist');
        string memory revealedBaseURI = _tokenRevealedBaseURI;

        if (!_randomReceived) return _tokenPreRevealURI;
        
        if ((tokenId > _ts1) && !_secondReceived) return _tokenPreRevealURI;


        uint256 newTokenId = uri(tokenId);
        
        string memory folder = (newTokenId % 100).toString(); 
        string memory file = newTokenId.toString();
        string memory slash = "/";
        return string(abi.encodePacked(revealedBaseURI,folder,slash,file)) ;
        //
    }

    function tellEverything(address addr) external view returns (theKitchenSink memory) {
        // if community module active - get the community.taken[msg.sender]
        uint256 community_claimed;
        if (_communityAddress != address(0)) {
            community_claimed = community_interface(_communityAddress).community_claimed(addr);
        }

        return theKitchenSink(
        _maxSupply,
        _MintPointer,
        _wallets,
        _shares,
        _fullPrice,
        _discountPrice,
        _communityPrice,
        _timedPresale,
        _presaleStart,
        _presaleEnd,
        _timedSale,
        _saleStart,
        _saleEnd, 
        _dustMintAvailable,
        _dustPrice,
        
        _maxFreeEC,
        _totalFreeEC,
        
        _maxDiscount,
        _totalDiscount,

        _freePerAddress,
        _discountedPerAddress,
        _tokenPreRevealURI,
        _signer,

        checkPresaleIsActive(),
        checkSaleIsActive(),
        checkSaleIsActive() && _dustMintAvailable,

        _freeClaimedPerWallet[addr],
        _discountedClaimedPerWallet[addr],

        address(_EC),
        _DUST,

        _maxPerSaleMint,
        _MaxUserMintable,
        _userMinted,

        community_claimed,

        _randomReceived,
        _secondReceived,
        _randomCL,
        _randomCL2,
        _ts1,
        _ts2

        );
    }

}

File 2 of 24 : 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 3 of 24 : 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 4 of 24 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the global ERC1820 Registry, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1820[EIP]. Accounts may register
 * implementers for interfaces in this registry, as well as query support.
 *
 * Implementers may be shared by multiple accounts, and can also implement more
 * than a single interface for each account. Contracts can implement interfaces
 * for themselves, but externally-owned accounts (EOA) must delegate this to a
 * contract.
 *
 * {IERC165} interfaces can also be queried via the registry.
 *
 * For an in-depth explanation and source code analysis, see the EIP text.
 */
interface IERC1820Registry {
    /**
     * @dev Sets `newManager` as the manager for `account`. A manager of an
     * account is able to set interface implementers for it.
     *
     * By default, each account is its own manager. Passing a value of `0x0` in
     * `newManager` will reset the manager to this initial state.
     *
     * Emits a {ManagerChanged} event.
     *
     * Requirements:
     *
     * - the caller must be the current manager for `account`.
     */
    function setManager(address account, address newManager) external;

    /**
     * @dev Returns the manager for `account`.
     *
     * See {setManager}.
     */
    function getManager(address account) external view returns (address);

    /**
     * @dev Sets the `implementer` contract as ``account``'s implementer for
     * `interfaceHash`.
     *
     * `account` being the zero address is an alias for the caller's address.
     * The zero address can also be used in `implementer` to remove an old one.
     *
     * See {interfaceHash} to learn how these are created.
     *
     * Emits an {InterfaceImplementerSet} event.
     *
     * Requirements:
     *
     * - the caller must be the current manager for `account`.
     * - `interfaceHash` must not be an {IERC165} interface id (i.e. it must not
     * end in 28 zeroes).
     * - `implementer` must implement {IERC1820Implementer} and return true when
     * queried for support, unless `implementer` is the caller. See
     * {IERC1820Implementer-canImplementInterfaceForAddress}.
     */
    function setInterfaceImplementer(
        address account,
        bytes32 _interfaceHash,
        address implementer
    ) external;

    /**
     * @dev Returns the implementer of `interfaceHash` for `account`. If no such
     * implementer is registered, returns the zero address.
     *
     * If `interfaceHash` is an {IERC165} interface id (i.e. it ends with 28
     * zeroes), `account` will be queried for support of it.
     *
     * `account` being the zero address is an alias for the caller's address.
     */
    function getInterfaceImplementer(address account, bytes32 _interfaceHash) external view returns (address);

    /**
     * @dev Returns the interface hash for an `interfaceName`, as defined in the
     * corresponding
     * https://eips.ethereum.org/EIPS/eip-1820#interface-name[section of the EIP].
     */
    function interfaceHash(string calldata interfaceName) external pure returns (bytes32);

    /**
     * @notice Updates the cache with whether the contract implements an ERC165 interface or not.
     * @param account Address of the contract for which to update the cache.
     * @param interfaceId ERC165 interface for which to update the cache.
     */
    function updateERC165Cache(address account, bytes4 interfaceId) external;

    /**
     * @notice Checks whether a contract implements an ERC165 interface or not.
     * If the result is not cached a direct lookup on the contract address is performed.
     * If the result is not cached or the cached value is out-of-date, the cache MUST be updated manually by calling
     * {updateERC165Cache} with the contract address.
     * @param account Address of the contract to check.
     * @param interfaceId ERC165 interface to check.
     * @return True if `account` implements `interfaceId`, false otherwise.
     */
    function implementsERC165Interface(address account, bytes4 interfaceId) external view returns (bool);

    /**
     * @notice Checks whether a contract implements an ERC165 interface or not without using nor updating the cache.
     * @param account Address of the contract to check.
     * @param interfaceId ERC165 interface to check.
     * @return True if `account` implements `interfaceId`, false otherwise.
     */
    function implementsERC165InterfaceNoCache(address account, bytes4 interfaceId) external view returns (bool);

    event InterfaceImplementerSet(address indexed account, bytes32 indexed interfaceHash, address indexed implementer);

    event ManagerChanged(address indexed account, address indexed newManager);
}

File 7 of 24 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 8 of 24 : IERC777Recipient.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC777TokensRecipient standard as defined in the EIP.
 *
 * Accounts can be notified of {IERC777} tokens being sent to them by having a
 * contract implement this interface (contract holders can be their own
 * implementer) and registering it on the
 * https://eips.ethereum.org/EIPS/eip-1820[ERC1820 global registry].
 *
 * See {IERC1820Registry} and {ERC1820Implementer}.
 */
interface IERC777Recipient {
    /**
     * @dev Called by an {IERC777} token contract whenever tokens are being
     * moved or created into a registered account (`to`). The type of operation
     * is conveyed by `from` being the zero address or not.
     *
     * This call occurs _after_ the token contract's state is updated, so
     * {IERC777-balanceOf}, etc., can be used to query the post-operation state.
     *
     * This function may revert to prevent the operation from being executed.
     */
    function tokensReceived(
        address operator,
        address from,
        address to,
        uint256 amount,
        bytes calldata userData,
        bytes calldata operatorData
    ) external;
}

File 9 of 24 : IERC777.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC777Token standard as defined in the EIP.
 *
 * This contract uses the
 * https://eips.ethereum.org/EIPS/eip-1820[ERC1820 registry standard] to let
 * token holders and recipients react to token movements by using setting implementers
 * for the associated interfaces in said registry. See {IERC1820Registry} and
 * {ERC1820Implementer}.
 */
interface IERC777 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the smallest part of the token that is not divisible. This
     * means all token operations (creation, movement and destruction) must have
     * amounts that are a multiple of this number.
     *
     * For most token contracts, this value will equal 1.
     */
    function granularity() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * If send or receive hooks are registered for the caller and `recipient`,
     * the corresponding functions will be called with `data` and empty
     * `operatorData`. See {IERC777Sender} and {IERC777Recipient}.
     *
     * Emits a {Sent} event.
     *
     * Requirements
     *
     * - the caller must have at least `amount` tokens.
     * - `recipient` cannot be the zero address.
     * - if `recipient` is a contract, it must implement the {IERC777Recipient}
     * interface.
     */
    function send(
        address recipient,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev Destroys `amount` tokens from the caller's account, reducing the
     * total supply.
     *
     * If a send hook is registered for the caller, the corresponding function
     * will be called with `data` and empty `operatorData`. See {IERC777Sender}.
     *
     * Emits a {Burned} event.
     *
     * Requirements
     *
     * - the caller must have at least `amount` tokens.
     */
    function burn(uint256 amount, bytes calldata data) external;

    /**
     * @dev Returns true if an account is an operator of `tokenHolder`.
     * Operators can send and burn tokens on behalf of their owners. All
     * accounts are their own operator.
     *
     * See {operatorSend} and {operatorBurn}.
     */
    function isOperatorFor(address operator, address tokenHolder) external view returns (bool);

    /**
     * @dev Make an account an operator of the caller.
     *
     * See {isOperatorFor}.
     *
     * Emits an {AuthorizedOperator} event.
     *
     * Requirements
     *
     * - `operator` cannot be calling address.
     */
    function authorizeOperator(address operator) external;

    /**
     * @dev Revoke an account's operator status for the caller.
     *
     * See {isOperatorFor} and {defaultOperators}.
     *
     * Emits a {RevokedOperator} event.
     *
     * Requirements
     *
     * - `operator` cannot be calling address.
     */
    function revokeOperator(address operator) external;

    /**
     * @dev Returns the list of default operators. These accounts are operators
     * for all token holders, even if {authorizeOperator} was never called on
     * them.
     *
     * This list is immutable, but individual holders may revoke these via
     * {revokeOperator}, in which case {isOperatorFor} will return false.
     */
    function defaultOperators() external view returns (address[] memory);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient`. The caller must
     * be an operator of `sender`.
     *
     * If send or receive hooks are registered for `sender` and `recipient`,
     * the corresponding functions will be called with `data` and
     * `operatorData`. See {IERC777Sender} and {IERC777Recipient}.
     *
     * Emits a {Sent} event.
     *
     * Requirements
     *
     * - `sender` cannot be the zero address.
     * - `sender` must have at least `amount` tokens.
     * - the caller must be an operator for `sender`.
     * - `recipient` cannot be the zero address.
     * - if `recipient` is a contract, it must implement the {IERC777Recipient}
     * interface.
     */
    function operatorSend(
        address sender,
        address recipient,
        uint256 amount,
        bytes calldata data,
        bytes calldata operatorData
    ) external;

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the total supply.
     * The caller must be an operator of `account`.
     *
     * If a send hook is registered for `account`, the corresponding function
     * will be called with `data` and `operatorData`. See {IERC777Sender}.
     *
     * Emits a {Burned} event.
     *
     * Requirements
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     * - the caller must be an operator for `account`.
     */
    function operatorBurn(
        address account,
        uint256 amount,
        bytes calldata data,
        bytes calldata operatorData
    ) external;

    event Sent(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256 amount,
        bytes data,
        bytes operatorData
    );

    event Minted(address indexed operator, address indexed to, uint256 amount, bytes data, bytes operatorData);

    event Burned(address indexed operator, address indexed from, uint256 amount, bytes data, bytes operatorData);

    event AuthorizedOperator(address indexed operator, address indexed tokenHolder);

    event RevokedOperator(address indexed operator, address indexed tokenHolder);
}

File 10 of 24 : community_interface.sol
pragma solidity ^0.8.0;


interface community_interface {

    function community_claimed(address) external view returns (uint256);

    function communityPurchase(address recipient, uint256 tokenCount, bytes memory signature, uint256 role) external payable;

}

File 11 of 24 : recovery.sol
pragma solidity ^0.8.0;


import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";


contract recovery is Ownable {
    // blackhole prevention methods
    function retrieveETH() external onlyOwner {
        payable(msg.sender).transfer(address(this).balance);
    }
    
    function retrieveERC20(address _tracker, uint256 amount) external onlyOwner {
        IERC20(_tracker).transfer(msg.sender, amount);
    }

    function retrieve721(address _tracker, uint256 id) external onlyOwner {
        IERC721(_tracker).transferFrom(address(this), msg.sender, id);
    }
}

File 12 of 24 : IRNG.sol
pragma solidity ^0.8.0;

interface IRNG {
    function requestRandomNumber( ) external returns (bytes32);
    function requestRandomNumberWithCallback( ) external returns (bytes32);
    function isRequestComplete(bytes32 requestId) external view returns (bool isCompleted);
    function randomNumber(bytes32 requestId) external view returns (uint256 randomNum);
}

File 13 of 24 : pixiedust.sol
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC777/IERC777.sol";


contract pixiedust {

    // jsons/toddlerpillars.json

    string                   constant _name   = "Toddlerpillars";
    string                   constant _symbol = "TDPL";

    struct theKitchenSink {
        uint256             _maxSupply;
        uint256             _mintPointer;
        address payable[]   _wallets;
        uint256 []          _shares;
        uint256             _fullPrice;
        uint256             _discountPrice;
        uint256             _communityPrice;
        bool                 _timedPresale;
        uint256              _presaleStart;
        uint256              _presaleEnd;
        bool                 _timedSale;
        uint256              _saleStart;
        uint256              _saleEnd;
        bool                 _dustMintAvailable;
        uint256              _dustPrice;
        // ETHER CARDS
        uint256              _maxFreeEC;
        uint256              _totalFreeEC;
        // DISCOUNTS
        uint256              _maxDiscount;
        uint256              _totalDiscount;
        // per address limits 
        uint256              _freePerAddress;
        uint256              _discountedPerAddress;
        string               _tokenPreRevealURI;
        address              _signer;

        bool                 _presaleActive;
        bool                 _saleActive;
        bool                 _dustMintActive;

        uint256              _freeClaimed;
        uint256              _discountedClaimed;

        address             EC;
        address             DUST;

        uint256             _maxPerSaleMint;
        uint256             _maxUserMintable;
        uint256             _userMinted;

        uint256             _communityMinted;   // what they have minted in a community contract

        bool                _randomReceived;
        bool                _secondReceived;
        uint256             _randomCL;
        uint256             _randomCL2;
        uint256             _ts1;
        uint256             _ts2;
        


    }

    // 

    uint256                  constant _maxSupply = 9999;

    address payable[]           _wallets = [ 
                                  payable(0x7F17cD2B6627166F2c69884AD8DA14fAb3fff522) 
                                 , payable(0xb108Cd8C67d0ad0690A119BBcc0708289A4Ee9c3) 
                                 , payable(0x422D9914eE2A933a040815F9A619D27252373EbD) 
                                 ];
    uint256 []                  _shares = [ 
                                  150 
                                 , 250 
                                 , 600 
                                
                                ];

    uint256                  constant _fullPrice = 40000000000000000;
    uint256                  constant _discountPrice = 40000000000000000;
    uint256                  constant _communityPrice = 40000000000000000;

    bool                              _timedPresale  = true;
    uint256                           _presaleStart = 1637254800;  // Thu, 18 Nov 2021 17:00
    uint256                           _presaleEnd = 1637341200;      // Fri, 19 Nov 2021 17:00

    bool                              _timedSale = true;
    uint256                           _saleStart = 1637341200;        // Fri, 19 Nov 2021 17:00
    uint256                           _saleEnd = 1638550800;            // Fri, 03 Dec 2021 17:00

    bool                     constant _dustMintAvailable = false;
    uint256                  constant _dustPerAddress = 0;
    uint256                  constant _dustPrice = 1;

    // ETHER CARDS
    uint256                  constant _maxFreeEC = 0;
    uint256                           _totalFreeEC;

    // DISCOUNTS
    uint256                  constant _maxDiscount = 9999;
    uint256                           _totalDiscount;

    // per address limits
    uint256                  constant _freePerAddress = 0;
    uint256                  constant _discountedPerAddress = 6;

    string                            _tokenPreRevealURI = "https://ether-cards.mypinata.cloud/ipfs/QmeKvyYvMThpuDUQ7po4AWxr5SUpfyNKecDmsgS4VqZmNu";

    address                  constant public _signer = 0xA55c7770161b6325B64a622821e2db3551Df6C9e;

    // Private Minting

    address             constant _clientVault = 0x422D9914eE2A933a040815F9A619D27252373EbD;
    uint256             _clientMintPointer = 1;
    uint256             _clientMintPosition = 0;
    uint256             constant _clientMintLimit = 550;

    address             constant _ecVault = 0x9dFF1113CF4186deC4feb774632356D22f07eB9e;
    uint256             _ecMintPointer = 1;
    uint256             _ecMintPosition = 0;
    uint256             constant _ecMintLimit = 100;

    uint256             constant _maxPerSaleMint = 50;

}

File 14 of 24 : console.sol
// SPDX-License-Identifier: MIT
pragma solidity >= 0.4.22 <0.9.0;

library console {
	address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67);

	function _sendLogPayload(bytes memory payload) private view {
		uint256 payloadLength = payload.length;
		address consoleAddress = CONSOLE_ADDRESS;
		assembly {
			let payloadStart := add(payload, 32)
			let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0)
		}
	}

	function log() internal view {
		_sendLogPayload(abi.encodeWithSignature("log()"));
	}

	function logInt(int p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(int)", p0));
	}

	function logUint(uint p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint)", p0));
	}

	function logString(string memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string)", p0));
	}

	function logBool(bool p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool)", p0));
	}

	function logAddress(address p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address)", p0));
	}

	function logBytes(bytes memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes)", p0));
	}

	function logBytes1(bytes1 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0));
	}

	function logBytes2(bytes2 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0));
	}

	function logBytes3(bytes3 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0));
	}

	function logBytes4(bytes4 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0));
	}

	function logBytes5(bytes5 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0));
	}

	function logBytes6(bytes6 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0));
	}

	function logBytes7(bytes7 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0));
	}

	function logBytes8(bytes8 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0));
	}

	function logBytes9(bytes9 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0));
	}

	function logBytes10(bytes10 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0));
	}

	function logBytes11(bytes11 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0));
	}

	function logBytes12(bytes12 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0));
	}

	function logBytes13(bytes13 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0));
	}

	function logBytes14(bytes14 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0));
	}

	function logBytes15(bytes15 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0));
	}

	function logBytes16(bytes16 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0));
	}

	function logBytes17(bytes17 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0));
	}

	function logBytes18(bytes18 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0));
	}

	function logBytes19(bytes19 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0));
	}

	function logBytes20(bytes20 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0));
	}

	function logBytes21(bytes21 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0));
	}

	function logBytes22(bytes22 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0));
	}

	function logBytes23(bytes23 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0));
	}

	function logBytes24(bytes24 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0));
	}

	function logBytes25(bytes25 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0));
	}

	function logBytes26(bytes26 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0));
	}

	function logBytes27(bytes27 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0));
	}

	function logBytes28(bytes28 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0));
	}

	function logBytes29(bytes29 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0));
	}

	function logBytes30(bytes30 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0));
	}

	function logBytes31(bytes31 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0));
	}

	function logBytes32(bytes32 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0));
	}

	function log(uint p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint)", p0));
	}

	function log(string memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string)", p0));
	}

	function log(bool p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool)", p0));
	}

	function log(address p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address)", p0));
	}

	function log(uint p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint)", p0, p1));
	}

	function log(uint p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string)", p0, p1));
	}

	function log(uint p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool)", p0, p1));
	}

	function log(uint p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address)", p0, p1));
	}

	function log(string memory p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint)", p0, p1));
	}

	function log(string memory p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1));
	}

	function log(string memory p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1));
	}

	function log(string memory p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1));
	}

	function log(bool p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint)", p0, p1));
	}

	function log(bool p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1));
	}

	function log(bool p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1));
	}

	function log(bool p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1));
	}

	function log(address p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint)", p0, p1));
	}

	function log(address p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1));
	}

	function log(address p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1));
	}

	function log(address p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1));
	}

	function log(uint p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint)", p0, p1, p2));
	}

	function log(uint p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string)", p0, p1, p2));
	}

	function log(uint p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool)", p0, p1, p2));
	}

	function log(uint p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address)", p0, p1, p2));
	}

	function log(uint p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint)", p0, p1, p2));
	}

	function log(uint p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string)", p0, p1, p2));
	}

	function log(uint p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool)", p0, p1, p2));
	}

	function log(uint p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address)", p0, p1, p2));
	}

	function log(uint p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint)", p0, p1, p2));
	}

	function log(uint p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string)", p0, p1, p2));
	}

	function log(uint p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool)", p0, p1, p2));
	}

	function log(uint p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2));
	}

	function log(string memory p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint)", p0, p1, p2));
	}

	function log(string memory p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2));
	}

	function log(string memory p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2));
	}

	function log(string memory p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2));
	}

	function log(bool p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint)", p0, p1, p2));
	}

	function log(bool p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string)", p0, p1, p2));
	}

	function log(bool p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool)", p0, p1, p2));
	}

	function log(bool p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2));
	}

	function log(bool p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint)", p0, p1, p2));
	}

	function log(bool p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2));
	}

	function log(bool p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2));
	}

	function log(bool p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2));
	}

	function log(bool p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint)", p0, p1, p2));
	}

	function log(bool p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2));
	}

	function log(bool p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2));
	}

	function log(bool p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2));
	}

	function log(address p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint)", p0, p1, p2));
	}

	function log(address p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string)", p0, p1, p2));
	}

	function log(address p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool)", p0, p1, p2));
	}

	function log(address p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address)", p0, p1, p2));
	}

	function log(address p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint)", p0, p1, p2));
	}

	function log(address p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2));
	}

	function log(address p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2));
	}

	function log(address p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2));
	}

	function log(address p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint)", p0, p1, p2));
	}

	function log(address p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2));
	}

	function log(address p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2));
	}

	function log(address p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2));
	}

	function log(address p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint)", p0, p1, p2));
	}

	function log(address p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2));
	}

	function log(address p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2));
	}

	function log(address p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2));
	}

	function log(uint p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3));
	}

}

File 15 of 24 : 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 16 of 24 : 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 17 of 24 : 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 18 of 24 : 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 19 of 24 : 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 20 of 24 : 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 21 of 24 : 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 22 of 24 : 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 23 of 24 : 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 24 of 24 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC721","name":"_ec","type":"address"},{"internalType":"contract IRNG","name":"_rng","type":"address"},{"internalType":"address","name":"_dust","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"","type":"address"},{"indexed":false,"internalType":"bool","name":"","type":"bool"}],"name":"Allowed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"DustPayment","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":"uint256","name":"stage","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"randUsed_","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_start","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_stop","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_supply","type":"uint256"}],"name":"RandomProcessed","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":"_DUST","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_EC","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_MintPointer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_claimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_communityAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_firstSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_iRnd","outputs":[{"internalType":"contract IRNG","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"checkPresaleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"checkSaleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenCount","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"role","type":"uint256"}],"name":"communityPurchase","outputs":[],"stateMutability":"payable","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":[{"internalType":"uint256","name":"numberOfCards","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bool","name":"clientMint","type":"bool"},{"internalType":"uint256","name":"number","type":"uint256"},{"internalType":"address","name":"destination","type":"address"}],"name":"mintAdvanced","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfCards","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"mintCards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfCards","type":"uint256"}],"name":"mintDiscountPresaleWithEtherCards","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"mintFreePresaleWithEtherCards","outputs":[],"stateMutability":"nonpayable","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":"address","name":"","type":"address"}],"name":"permitted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"random","type":"uint256"},{"internalType":"bytes32","name":"reqID","type":"bytes32"}],"name":"process","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tracker","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"retrieve721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tracker","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"retrieveERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"retrieveETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"secondReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"bool","name":"_state","type":"bool"}],"name":"setAllowed","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":"address","name":"community","type":"address"}],"name":"setCommunity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_pre","type":"string"}],"name":"setPreRevealURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"timedSale","type":"bool"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"}],"name":"setPresaleDates","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"active","type":"bool"}],"name":"setPresaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"revealedBaseURI","type":"string"}],"name":"setRevealedBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"timedSale","type":"bool"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"}],"name":"setSaleDates","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"active","type":"bool"}],"name":"setSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"tellEverything","outputs":[{"components":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_mintPointer","type":"uint256"},{"internalType":"address payable[]","name":"_wallets","type":"address[]"},{"internalType":"uint256[]","name":"_shares","type":"uint256[]"},{"internalType":"uint256","name":"_fullPrice","type":"uint256"},{"internalType":"uint256","name":"_discountPrice","type":"uint256"},{"internalType":"uint256","name":"_communityPrice","type":"uint256"},{"internalType":"bool","name":"_timedPresale","type":"bool"},{"internalType":"uint256","name":"_presaleStart","type":"uint256"},{"internalType":"uint256","name":"_presaleEnd","type":"uint256"},{"internalType":"bool","name":"_timedSale","type":"bool"},{"internalType":"uint256","name":"_saleStart","type":"uint256"},{"internalType":"uint256","name":"_saleEnd","type":"uint256"},{"internalType":"bool","name":"_dustMintAvailable","type":"bool"},{"internalType":"uint256","name":"_dustPrice","type":"uint256"},{"internalType":"uint256","name":"_maxFreeEC","type":"uint256"},{"internalType":"uint256","name":"_totalFreeEC","type":"uint256"},{"internalType":"uint256","name":"_maxDiscount","type":"uint256"},{"internalType":"uint256","name":"_totalDiscount","type":"uint256"},{"internalType":"uint256","name":"_freePerAddress","type":"uint256"},{"internalType":"uint256","name":"_discountedPerAddress","type":"uint256"},{"internalType":"string","name":"_tokenPreRevealURI","type":"string"},{"internalType":"address","name":"_signer","type":"address"},{"internalType":"bool","name":"_presaleActive","type":"bool"},{"internalType":"bool","name":"_saleActive","type":"bool"},{"internalType":"bool","name":"_dustMintActive","type":"bool"},{"internalType":"uint256","name":"_freeClaimed","type":"uint256"},{"internalType":"uint256","name":"_discountedClaimed","type":"uint256"},{"internalType":"address","name":"EC","type":"address"},{"internalType":"address","name":"DUST","type":"address"},{"internalType":"uint256","name":"_maxPerSaleMint","type":"uint256"},{"internalType":"uint256","name":"_maxUserMintable","type":"uint256"},{"internalType":"uint256","name":"_userMinted","type":"uint256"},{"internalType":"uint256","name":"_communityMinted","type":"uint256"},{"internalType":"bool","name":"_randomReceived","type":"bool"},{"internalType":"bool","name":"_secondReceived","type":"bool"},{"internalType":"uint256","name":"_randomCL","type":"uint256"},{"internalType":"uint256","name":"_randomCL2","type":"uint256"},{"internalType":"uint256","name":"_ts1","type":"uint256"},{"internalType":"uint256","name":"_ts2","type":"uint256"}],"internalType":"struct pixiedust.theKitchenSink","name":"","type":"tuple"}],"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":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"tokensReceived","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"n","type":"uint256"}],"name":"uri","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

610160604052737f17cd2b6627166f2c69884ad8da14fab3fff52261010090815273b108cd8c67d0ad0690a119bbcc0708289a4ee9c36101205273422d9914ee2a933a040815f9a619d27252373ebd610140526200006290600a9060036200030f565b50604080516060810182526096815260fa6020820152610258918101919091526200009290600b90600362000379565b50600c8054600160ff1991821681179092556361968690600d55636197d810600e819055600f805490921690921790556010556361aa4d106011556040805160808101909152605680825262004efe60208301398051620000fc91601491602090910190620003bd565b5060016015556000601655600160175560006018556001601b553480156200012357600080fd5b5060405162004f5438038062004f54833981016040819052620001469162000451565b604080518082018252600e81526d546f64646c657270696c6c61727360901b6020808301918252835180850190945260048452631511141360e21b9084015281519192916200019891600091620003bd565b508051620001ae906001906020840190620003bd565b505050620001cb620001c5620002b960201b60201c565b620002bd565b6001601a556001600160601b0319606084811b821660e05283901b166080526040516329965a1d60e01b815230600482018190527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b60248301526044820152731820a4b7618bde71dce8cdc73aab6c95905fad24906329965a1d90606401600060405180830381600087803b1580156200026457600080fd5b505af115801562000279573d6000803e3d6000fd5b5050506001600160601b0319606083901b1660c052506200029e6064610226620004a4565b620002ac9061270f620004bf565b60a0525062000545915050565b3390565b601980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805482825590600052602060002090810192821562000367579160200282015b828111156200036757825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000330565b50620003759291506200043a565b5090565b82805482825590600052602060002090810192821562000367579160200282015b8281111562000367578251829061ffff169055916020019190600101906200039a565b828054620003cb90620004d9565b90600052602060002090601f016020900481019282620003ef576000855562000367565b82601f106200040a57805160ff191683800117855562000367565b8280016001018555821562000367579182015b82811115620003675782518255916020019190600101906200041d565b5b808211156200037557600081556001016200043b565b60008060006060848603121562000466578283fd5b835162000473816200052c565b602085015190935062000486816200052c565b604085015190925062000499816200052c565b809150509250925092565b60008219821115620004ba57620004ba62000516565b500190565b600082821015620004d457620004d462000516565b500390565b600281046001821680620004ee57607f821691505b602082108114156200051057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146200054257600080fd5b50565b60805160601c60a05160c05160601c60e05160601c614937620005c7600039600081816105ef01528181611f400152818161248101526133570152600081816107e401528181610cc30152611f68015260008181611f980152612e18015260008181610768015281816115dd0152818161167f015261205a01526149376000f3fe6080604052600436106103025760003560e01c80636e83843a11610190578063a0712d68116100dc578063c87b56dd11610095578063d897833e1161006f578063d897833e1461092b578063e985e9c51461094b578063f2fde38b14610994578063f4ddedcf146109b457610312565b8063c87b56dd146108ce578063ca29e8c8146108ee578063d5b014c31461091657610312565b8063a0712d6814610826578063a22cb46514610839578063a5b3abfb14610859578063b0c77f3514610879578063b88d4fde1461088e578063baf55742146108ae57610312565b80638da5cb5b11610149578063948f6de911610123578063948f6de9146107aa57806395d89b41146107bd578063981546e5146107d2578063993a45581461080657610312565b80638da5cb5b146107385780638e74955b14610756578063903a5c0e1461078a57610312565b80636e83843a1461068e5780636f219bd6146106ae57806370a08231146106c3578063715018a6146106e35780638895283f146106f85780638cc683cb1461071857610312565b80632a85db551161024f5780634697f05d116102085780635ed1bb90116101e25780635ed1bb90146105dd5780636352211e1461061157806367666d74146106315780636cc301e31461065e57610312565b80634697f05d1461057d5780634d78cca21461059d5780634f6ccce7146105bd57610312565b80632a85db55146104d55780632f745c59146104f557806337004d6614610515578063390dc7bd146105285780633d64ac9b1461053d57806342842e0e1461055d57610312565b8063134f3337116102bc57806318160ddd1161029657806318160ddd1461047457806320fc354c1461048957806323b872dd1461049f57806326d428e2146104bf57610312565b8063134f33371461041457806315da0b021461043457806317fd1e2f1461045457610312565b806223de291461031757806301ffc9a71461033757806306fdde031461036c578063081812fc1461038e578063095ea7b3146103c65780630e89341c146103e657610312565b3661031257610310346109e4565b005b600080fd5b34801561032357600080fd5b50610310610332366004613d6a565b610b53565b34801561034357600080fd5b50610357610352366004614086565b610dff565b60405190151581526020015b60405180910390f35b34801561037857600080fd5b50610381610e2c565b60405161036391906143a5565b34801561039a57600080fd5b506103ae6103a9366004614144565b610ebf565b6040516001600160a01b039091168152602001610363565b3480156103d257600080fd5b506103106103e1366004613eef565b610f54565b3480156103f257600080fd5b50610406610401366004614144565b61106a565b604051908152602001610363565b34801561042057600080fd5b5061031061042f36600461415c565b6111bd565b34801561044057600080fd5b5061031061044f366004613cfa565b61120f565b34801561046057600080fd5b5061031061046f366004613eef565b61128d565b34801561048057600080fd5b50600854610406565b34801561049557600080fd5b50610406601c5481565b3480156104ab57600080fd5b506103106104ba366004613e18565b611337565b3480156104cb57600080fd5b50610406601b5481565b3480156104e157600080fd5b506103106104f03660046140fe565b611368565b34801561050157600080fd5b50610406610510366004613eef565b6113a5565b6103106105233660046141a1565b61143b565b34801561053457600080fd5b50610310611550565b34801561054957600080fd5b50610310610558366004614180565b611674565b34801561056957600080fd5b50610310610578366004613e18565b6118f9565b34801561058957600080fd5b50610310610598366004613ec2565b611914565b3480156105a957600080fd5b506027546103ae906001600160a01b031681565b3480156105c957600080fd5b506104066105d8366004614144565b6119bb565b3480156105e957600080fd5b506103ae7f000000000000000000000000000000000000000000000000000000000000000081565b34801561061d57600080fd5b506103ae61062c366004614144565b611a5c565b34801561063d57600080fd5b5061065161064c366004613cfa565b611ad3565b60405161036391906144b6565b34801561066a57600080fd5b50610357610679366004613cfa565b602c6020526000908152604090205460ff1681565b34801561069a57600080fd5b506103106106a93660046140be565b612017565b3480156106ba57600080fd5b506103576120f2565b3480156106cf57600080fd5b506104066106de366004613cfa565b61213d565b3480156106ef57600080fd5b506103106121c4565b34801561070457600080fd5b50610310610713366004613fc1565b6121f8565b34801561072457600080fd5b50610310610733366004613f1a565b61223c565b34801561074457600080fd5b506019546001600160a01b03166103ae565b34801561076257600080fd5b506103ae7f000000000000000000000000000000000000000000000000000000000000000081565b34801561079657600080fd5b506103106107a536600461403a565b6123de565b6103106107b8366004614144565b612422565b3480156107c957600080fd5b50610381612666565b3480156107de57600080fd5b506103ae7f000000000000000000000000000000000000000000000000000000000000000081565b34801561081257600080fd5b50610310610821366004613ff9565b612675565b610310610834366004614144565b6127db565b34801561084557600080fd5b50610310610854366004613ec2565b612873565b34801561086557600080fd5b50610310610874366004613eef565b612945565b34801561088557600080fd5b506103576129d9565b34801561089a57600080fd5b506103106108a9366004613e58565b612a20565b3480156108ba57600080fd5b506103106108c936600461403a565b612a52565b3480156108da57600080fd5b506103816108e9366004614144565b612a96565b3480156108fa57600080fd5b506103ae73a55c7770161b6325b64a622821e2db3551df6c9e81565b34801561092257600080fd5b50610310612cd1565b34801561093757600080fd5b50610310610946366004613fc1565b612d27565b34801561095757600080fd5b50610357610966366004613d32565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109a057600080fd5b506103106109af366004613cfa565b612d64565b3480156109c057600080fd5b506103576109cf366004614144565b60286020526000908152604090205460ff1681565b60008060005b600a54811015610b4d5760006103e8600b8381548110610a1a57634e487b7160e01b600052603260045260246000fd5b906000526020600020015486610a3091906147ba565b610a3a91906147a6565b600a54909150610a4c906001906147d9565b821415610a6457610a5d83866147d9565b9050610a71565b610a6e818461478e565b92505b600a8281548110610a9257634e487b7160e01b600052603260045260246000fd5b60009182526020822001546040516001600160a01b039091169183919081818185875af1925050503d8060008114610ae6576040519150601f19603f3d011682016040523d82523d6000602084013e610aeb565b606091505b50508094505083610b3a5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b60448201526064015b60405180910390fd5b5080610b4581614857565b9150506109ea565b50505050565b6002601a541415610ba65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b31565b6002601a55610bb36120f2565b610bf25760405162461bcd60e51b815260206004820152601060248201526f39b0b6329034b9903737ba1037b832b760811b6044820152606401610b31565b60405162461bcd60e51b815260206004820152601a60248201527f64757374206d696e74696e67206e6f7420617661696c61626c650000000000006044820152606401610b31565b600a54811015610db45760006103e8600b8381548110610c6a57634e487b7160e01b600052603260045260246000fd5b90600052602060002001548a610c8091906147ba565b610c8a91906147a6565b600a54909150610c9c906001906147d9565b821415610cb457610cad838a6147d9565b9050610cc1565b610cbe818461478e565b92505b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316639bd9bbc6600a8481548110610d1157634e487b7160e01b600052603260045260246000fd5b60009182526020918290200154604080518082018252600c81526b44757374204d696e74696e6760a01b93810193909352516001600160e01b031960e085901b168152610d6e926001600160a01b03909216918691600401614300565b600060405180830381600087803b158015610d8857600080fd5b505af1158015610d9c573d6000803e3d6000fd5b50505050508080610dac90614857565b915050610c3a565b5060408051838152602081018990527f3f84ebb22bda939aa6114237622b9fbb3c5955107b5ae3adeb4381f4368bdf71910160405180910390a150506001601a555050505050505050565b60006001600160e01b0319821663780e9d6360e01b1480610e245750610e2482612f5e565b90505b919050565b606060008054610e3b9061481c565b80601f0160208091040260200160405190810160405280929190818152602001828054610e679061481c565b8015610eb45780601f10610e8957610100808354040283529160200191610eb4565b820191906000526020600020905b815481529060010190602001808311610e9757829003601f168201915b505050505090505b90565b6000818152600260205260408120546001600160a01b0316610f385760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b31565b506000908152600460205260409020546001600160a01b031690565b6000610f5f82611a5c565b9050806001600160a01b0316836001600160a01b03161415610fcd5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b31565b336001600160a01b0382161480610fe95750610fe98133610966565b61105b5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b31565b6110658383612fae565b505050565b600060255482116110ba5761270f602d5483611086919061478e565b1161109f57602d54611098908361478e565b9050610e27565b61270f602d54836110b0919061478e565b61109891906147d9565b600060255461270f6110cc91906147d9565b9050600081602254602554866110e291906147d9565b6110ec919061478e565b6110f69190614872565b61110190600161478e565b905061270f81602e54611114919061478e565b116111305780602e54611127919061478e565b92505050610e27565b602d5461270f82602e54611144919061478e565b61114e91906147d9565b1161116e5761270f81602e54611164919061478e565b61112791906147d9565b600061270f82602e54611181919061478e565b61118b91906147d9565b61119690600161478e565b9050602e54602d54826111a991906147d9565b6111b3919061478e565b9350505050610e27565b336000908152602c602052604090205460ff16806111e557506019546001600160a01b031633145b6112015760405162461bcd60e51b8152600401610b319061440a565b61120b8282612dfc565b5050565b336000908152602c602052604090205460ff168061123757506019546001600160a01b031633145b6112535760405162461bcd60e51b8152600401610b319061440a565b602780546001600160a01b039092166001600160a01b0319909216821790556000908152602c60205260409020805460ff19166001179055565b6019546001600160a01b031633146112b75760405162461bcd60e51b8152600401610b3190614430565b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb90604401602060405180830381600087803b1580156112ff57600080fd5b505af1158015611313573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110659190613fdd565b611341338261301c565b61135d5760405162461bcd60e51b8152600401610b3190614465565b611065838383613113565b6019546001600160a01b031633146113925760405162461bcd60e51b8152600401610b3190614430565b805161120b906014906020840190613b2f565b60006113b08361213d565b82106114125760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610b31565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6027546001600160a01b03166114935760405162461bcd60e51b815260206004820152601960248201527f436f6d6d756e6974792073616c65206e6f7420616374697665000000000000006044820152606401610b31565b6027546040516000916001600160a01b03169034906114bc90339088908890889060240161436d565b60408051601f198184030181529181526020820180516001600160e01b0316637a000ee760e01b179052516114f1919061428d565b60006040518083038185875af1925050503d806000811461152e576040519150601f19603f3d011682016040523d82523d6000602084013e611533565b606091505b5050905080156115435750611065565b6040513d806000833e8082fd5b6019546001600160a01b0316331461157a5760405162461bcd60e51b8152600401610b3190614430565b60205460ff166115cc5760405162461bcd60e51b815260206004820152601d60248201527f46697273742052657665616c206e6f7420636f6d706c657465207965740000006044820152606401610b31565b602054610100900460ff16611672577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c532bbac6040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561163657600080fd5b505af115801561164a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061166e919061406e565b601f555b565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146116df5760405162461bcd60e51b815260206004820152601060248201526f556e617574686f726973656420524e4760801b6044820152606401610b31565b80601e5414156117f25760205460ff161561173c5760405162461bcd60e51b815260206004820152601b60248201527f52616e646f6d204e6f2e20616c726561647920726563656976656400000000006044820152606401610b31565b6117476002836147a6565b60215561175761270f600161478e565b6021546117649190614872565b602d556020805460ff1916600117905561177d60085490565b602581905561178b9061106a565b602e819055602154602d5460255460408051600181526020810194909452830191909152606082019290925260808101919091527f959b44b0b513e15fb6ff0120336443b895d08969842e3aed3ac22eb9e933f7b39060a0015b60405180910390a161120b565b80601f5414156118b1576020805461ff00191661010017905561181460085490565b6026556118226002836147a6565b6022556025546118349061270f6147d9565b61183f90600161478e565b60225461184c9190614872565b602f819055507f959b44b0b513e15fb6ff0120336443b895d08969842e3aed3ac22eb9e933f7b36002602154602f5461188660265461106a565b602654604080519586526020860194909452928401919091526060830152608082015260a0016117e5565b60405162461bcd60e51b815260206004820152601960248201527f496e636f727265637420726571756573742049442073656e74000000000000006044820152606401610b31565b61106583838360405180602001604052806000815250612a20565b336000908152602c602052604090205460ff168061193c57506019546001600160a01b031633145b6119585760405162461bcd60e51b8152600401610b319061440a565b6001600160a01b0382166000818152602c6020908152604091829020805460ff19168515159081179091558251938452908301527f64966f3fe2ac8cae5e6f7e4196d1315efafdb78a4377de3887c56fa3b9ac47cb910160405180910390a15050565b60006119c660085490565b8210611a295760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610b31565b60088281548110611a4a57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b031680610e245760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610b31565b611c266040518061050001604052806000815260200160008152602001606081526020016060815260200160008152602001600081526020016000815260200160001515815260200160008152602001600081526020016000151581526020016000815260200160008152602001600015158152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016060815260200160006001600160a01b03168152602001600015158152602001600015158152602001600015158152602001600081526020016000815260200160006001600160a01b0316815260200160006001600160a01b0316815260200160008152602001600081526020016000815260200160008152602001600015158152602001600015158152602001600081526020016000815260200160008152602001600081525090565b6027546000906001600160a01b031615611cba5760275460405163d583781360e01b81526001600160a01b0385811660048301529091169063d58378139060240160206040518083038186803b158015611c7f57600080fd5b505afa158015611c93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cb7919061406e565b90505b60405180610500016040528061270f8152602001601b548152602001600a805480602002602001604051908101604052809291908181526020018280548015611d2c57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611d0e575b50505050508152602001600b805480602002602001604051908101604052809291908181526020018280548015611d8257602002820191906000526020600020905b815481526020019060010190808311611d6e575b5050509183525050668e1bc9bf04000060208201819052604082018190526060820152600c5460ff90811615156080830152600d5460a0830152600e5460c0830152600f5416151560e082015260105461010082015260115461012082015260006101408201819052600161016083015261018082018190526012546101a083015261270f6101c08301526013546101e083015261020082015260066102208201526014805461024090920191611e389061481c565b80601f0160208091040260200160405190810160405280929190818152602001828054611e649061481c565b8015611eb15780601f10611e8657610100808354040283529160200191611eb1565b820191906000526020600020905b815481529060010190602001808311611e9457829003601f168201915b505050918352505073a55c7770161b6325b64a622821e2db3551df6c9e6020820152604001611ede6129d9565b15158152602001611eed6120f2565b15158152602001611efc6120f2565b8015611f06575060005b151581526001600160a01b0394851660008181526029602090815260408083205482860152928252602a81529082902054918301919091527f0000000000000000000000000000000000000000000000000000000000000000861660608301527f00000000000000000000000000000000000000000000000000000000000000009095166080820152603260a08201527f000000000000000000000000000000000000000000000000000000000000000060c082015260245460e082015261010080820193909352935460ff808216151561012087015292900490911615156101408401526021546101608401526022546101808401526025546101a08401526026546101c0909301929092525090565b6019546001600160a01b031633146120415760405162461bcd60e51b8152600401610b3190614430565b61204d60238383613bb3565b5060205460ff1661120b577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c532bbac6040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156120b357600080fd5b505af11580156120c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120eb919061406e565b601e555050565b601d5460009060ff161561210857506001610ebc565b600f5460ff16801561211c57504260105411155b801561212a57504260115410155b1561213757506001610ebc565b50600090565b60006001600160a01b0382166121a85760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610b31565b506001600160a01b031660009081526003602052604090205490565b6019546001600160a01b031633146121ee5760405162461bcd60e51b8152600401610b3190614430565b61167260006132be565b6019546001600160a01b031633146122225760405162461bcd60e51b8152600401610b3190614430565b601d80549115156101000261ff0019909216919091179055565b6122446129d9565b6122835760405162461bcd60e51b815260206004820152601060248201526f383932b9b0b632903737ba1037b832b760811b6044820152606401610b31565b600061228e82613310565b905061270f8161229d60085490565b6122a7919061478e565b11156122f55760405162461bcd60e51b815260206004820152601b60248201527f4e6f74206d656e6f7567682063617264732072656d61696e696e6700000000006044820152606401610b31565b600081601254612305919061478e565b9050801561234e5760405162461bcd60e51b81526020600482015260166024820152751150c8185b1b1bd8d85d1a5bdb88195e18d95959195960521b6044820152606401610b31565b336000908152602960205260408120805484929061236d90849061478e565b909155505033600090815260296020526040902054156123cf5760405162461bcd60e51b815260206004820152601d60248201527f4d617820667265652070657220616464726573732065786365656465640000006044820152606401610b31565b60128190556110658233612dfc565b6019546001600160a01b031633146124085760405162461bcd60e51b8152600401610b3190614430565b600f805460ff191693151593909317909255601055601155565b61242a6129d9565b6124695760405162461bcd60e51b815260206004820152601060248201526f383932b9b0b632903737ba1037b832b760811b6044820152606401610b31565b6040516370a0823160e01b81523360048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b1580156124cb57600080fd5b505afa1580156124df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612503919061406e565b116125505760405162461bcd60e51b815260206004820152601b60248201527f596f7520646f206e6f7420686f6c6420457468657220436172647300000000006044820152606401610b31565b336000908152602a60205260408120805483929061256f90849061478e565b9091555050336000908152602a6020526040902054600610156125e65760405162461bcd60e51b815260206004820152602960248201527f4e756d6265722065786365656473206d617820646973636f756e74656420706560448201526872206164647265737360b81b6064820152608401610b31565b80601360008282546125f8919061478e565b909155505060135461270f10156126515760405162461bcd60e51b815260206004820181905260248201527f546f6f206d616e7920646973636f756e7420746f6b656e7320636c61696d65646044820152606401610b31565b6126638133668e1bc9bf0400006134a0565b50565b606060018054610e3b9061481c565b336000908152602c602052604090205460ff168061269d57506019546001600160a01b031633145b6126b95760405162461bcd60e51b8152600401610b319061440a565b60008084156126cf5750506016546102266126ee565b5050601854739dff1113cf4186dec4feb774632356d22f07eb9e915060645b80821061273d5760405162461bcd60e51b815260206004820152601a60248201527f416c6c206d696e746564206f72206e6f20616c6c6f77616e63650000000000006044820152606401610b31565b60008161274a868561478e565b1061275e5761275983836147d9565b612760565b845b601b805491925082906000612775838561478e565b90915550600090505b828110156127ab5761279986612794848461478e565b6134fc565b806127a381614857565b91505061277e565b5086156127c4576127bc828561478e565b6016556127d2565b6127ce828561478e565b6018555b50505050505050565b6127e36120f2565b6128225760405162461bcd60e51b815260206004820152601060248201526f39b0b6329034b9903737ba1037b832b760811b6044820152606401610b31565b60328111156126515760405162461bcd60e51b815260206004820181905260248201527f45786365656473206d617820706572205472616e73616374696f6e204d696e746044820152606401610b31565b6001600160a01b0382163314156128cc5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b31565b3360008181526005602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612939911515815260200190565b60405180910390a35050565b6019546001600160a01b0316331461296f5760405162461bcd60e51b8152600401610b3190614430565b6040516323b872dd60e01b8152306004820152336024820152604481018290526001600160a01b038316906323b872dd90606401600060405180830381600087803b1580156129bd57600080fd5b505af11580156129d1573d6000803e3d6000fd5b505050505050565b601d54600090610100900460ff16156129f457506001610ebc565b600c5460ff168015612a08575042600d5411155b801561212a575042600e541061213757506001610ebc565b612a2a338361301c565b612a465760405162461bcd60e51b8152600401610b3190614465565b610b4d8484848461364a565b6019546001600160a01b03163314612a7c5760405162461bcd60e51b8152600401610b3190614430565b600c805460ff191693151593909317909255600d55600e55565b6000818152600260205260409020546060906001600160a01b0316612af45760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b6044820152606401610b31565b600060238054612b039061481c565b80601f0160208091040260200160405190810160405280929190818152602001828054612b2f9061481c565b8015612b7c5780601f10612b5157610100808354040283529160200191612b7c565b820191906000526020600020905b815481529060010190602001808311612b5f57829003601f168201915b50506020549394505060ff9092169150612c2590505760148054612b9f9061481c565b80601f0160208091040260200160405190810160405280929190818152602001828054612bcb9061481c565b8015612c185780601f10612bed57610100808354040283529160200191612c18565b820191906000526020600020905b815481529060010190602001808311612bfb57829003601f168201915b5050505050915050610e27565b60255483118015612c3e5750602054610100900460ff16155b15612c505760148054612b9f9061481c565b6000612c5b8461106a565b90506000612c72612c6d606484614872565b61367d565b90506000612c7f8361367d565b90506000604051806040016040528060018152602001602f60f81b815250905084838284604051602001612cb694939291906142a9565b60405160208183030381529060405295505050505050919050565b6019546001600160a01b03163314612cfb5760405162461bcd60e51b8152600401610b3190614430565b60405133904780156108fc02916000818181858888f19350505050158015612663573d6000803e3d6000fd5b6019546001600160a01b03163314612d515760405162461bcd60e51b8152600401610b3190614430565b601d805460ff1916911515919091179055565b6019546001600160a01b03163314612d8e5760405162461bcd60e51b8152600401610b3190614430565b6001600160a01b038116612df35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b31565b612663816132be565b8160246000828254612e0e919061478e565b90915550506024547f00000000000000000000000000000000000000000000000000000000000000001015612ea05760405162461bcd60e51b815260206004820152603260248201527f546869732065786365656473206d6178696d756d206e756d626572206f662075604482015271736572206d696e7461626c6520636172647360701b6064820152608401610b31565b601b5461270f612eb0848361478e565b1115612f165760405162461bcd60e51b815260206004820152602f60248201527f5468697320776f756c642065786365656420746865206e756d626572206f662060448201526e636172647320617661696c61626c6560881b6064820152608401610b31565b60005b83811015612f4157612f2f83612794838561478e565b80612f3981614857565b915050612f19565b5082601b6000828254612f54919061478e565b9091555050505050565b60006001600160e01b031982166380ac58cd60e01b1480612f8f57506001600160e01b03198216635b5e139f60e01b145b80610e2457506301ffc9a760e01b6001600160e01b0319831614610e24565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612fe382611a5c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166130955760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b31565b60006130a083611a5c565b9050806001600160a01b0316846001600160a01b031614806130db5750836001600160a01b03166130d084610ebf565b6001600160a01b0316145b8061310b57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661312682611a5c565b6001600160a01b03161461318e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610b31565b6001600160a01b0382166131f05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b31565b6131fb838383613798565b613206600082612fae565b6001600160a01b038316600090815260036020526040812080546001929061322f9084906147d9565b90915550506001600160a01b038216600090815260036020526040812080546001929061325d90849061478e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b601980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008060005b835181101561349957600084828151811061334157634e487b7160e01b600052603260045260246000fd5b60200260200101519050336001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316636352211e836040518263ffffffff1660e01b81526004016133a391815260200190565b60206040518083038186803b1580156133bb57600080fd5b505afa1580156133cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133f39190613d16565b6001600160a01b0316146134495760405162461bcd60e51b815260206004820152601960248201527f596f7520646f206e6f74206f776e20616c6c20746f6b656e73000000000000006044820152606401610b31565b60008181526028602052604090205460ff16613486576000818152602860205260409020805460ff191660011790558261348281614857565b9350505b508061349181614857565b915050613316565b5092915050565b6134aa8382613855565b3410156134e95760405162461bcd60e51b815260206004820152600d60248201526c1c1c9a58d9481b9bdd081b595d609a1b6044820152606401610b31565b6134f38383612dfc565b611065346109e4565b6001600160a01b0382166135525760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b31565b6000818152600260205260409020546001600160a01b0316156135b75760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b31565b6135c360008383613798565b6001600160a01b03821660009081526003602052604081208054600192906135ec90849061478e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b613655848484613113565b61366184848484613868565b610b4d5760405162461bcd60e51b8152600401610b31906143b8565b6060816136a257506040805180820190915260018152600360fc1b6020820152610e27565b8160005b81156136cc57806136b681614857565b91506136c59050600a836147a6565b91506136a6565b60008167ffffffffffffffff8111156136f557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561371f576020820181803683370190505b5090505b841561310b576137346001836147d9565b9150613741600a86614872565b61374c90603061478e565b60f81b81838151811061376f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613791600a866147a6565b9450613723565b6001600160a01b0383166137f3576137ee81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613816565b816001600160a01b0316836001600160a01b031614613816576138168382613975565b6001600160a01b0382166138325761382d81613a12565b611065565b826001600160a01b0316826001600160a01b031614611065576110658282613aeb565b600061386182846147ba565b9392505050565b60006001600160a01b0384163b1561396a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906138ac903390899088908890600401614330565b602060405180830381600087803b1580156138c657600080fd5b505af19250505080156138f6575060408051601f3d908101601f191682019092526138f3918101906140a2565b60015b613950573d808015613924576040519150601f19603f3d011682016040523d82523d6000602084013e613929565b606091505b5080516139485760405162461bcd60e51b8152600401610b31906143b8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061310b565b506001949350505050565b600060016139828461213d565b61398c91906147d9565b6000838152600760205260409020549091508082146139df576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613a24906001906147d9565b60008381526009602052604081205460088054939450909284908110613a5a57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110613a8957634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613acf57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613af68361213d565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054613b3b9061481c565b90600052602060002090601f016020900481019282613b5d5760008555613ba3565b82601f10613b7657805160ff1916838001178555613ba3565b82800160010185558215613ba3579182015b82811115613ba3578251825591602001919060010190613b88565b50613baf929150613c27565b5090565b828054613bbf9061481c565b90600052602060002090601f016020900481019282613be15760008555613ba3565b82601f10613bfa5782800160ff19823516178555613ba3565b82800160010185558215613ba3579182015b82811115613ba3578235825591602001919060010190613c0c565b5b80821115613baf5760008155600101613c28565b600067ffffffffffffffff831115613c5657613c566148b2565b613c69601f8401601f191660200161475d565b9050828152838383011115613c7d57600080fd5b828260208301376000602084830101529392505050565b60008083601f840112613ca5578182fd5b50813567ffffffffffffffff811115613cbc578182fd5b602083019150836020828501011115613cd457600080fd5b9250929050565b600082601f830112613ceb578081fd5b61386183833560208501613c3c565b600060208284031215613d0b578081fd5b8135613861816148c8565b600060208284031215613d27578081fd5b8151613861816148c8565b60008060408385031215613d44578081fd5b8235613d4f816148c8565b91506020830135613d5f816148c8565b809150509250929050565b60008060008060008060008060c0898b031215613d85578384fd5b8835613d90816148c8565b97506020890135613da0816148c8565b96506040890135613db0816148c8565b955060608901359450608089013567ffffffffffffffff80821115613dd3578586fd5b613ddf8c838d01613c94565b909650945060a08b0135915080821115613df7578384fd5b50613e048b828c01613c94565b999c989b5096995094979396929594505050565b600080600060608486031215613e2c578283fd5b8335613e37816148c8565b92506020840135613e47816148c8565b929592945050506040919091013590565b60008060008060808587031215613e6d578384fd5b8435613e78816148c8565b93506020850135613e88816148c8565b925060408501359150606085013567ffffffffffffffff811115613eaa578182fd5b613eb687828801613cdb565b91505092959194509250565b60008060408385031215613ed4578081fd5b8235613edf816148c8565b91506020830135613d5f816148dd565b60008060408385031215613f01578182fd5b8235613f0c816148c8565b946020939093013593505050565b60006020808385031215613f2c578182fd5b823567ffffffffffffffff80821115613f43578384fd5b818501915085601f830112613f56578384fd5b813581811115613f6857613f686148b2565b8381029150613f7884830161475d565b8181528481019084860184860187018a1015613f92578788fd5b8795505b83861015613fb4578035835260019590950194918601918601613f96565b5098975050505050505050565b600060208284031215613fd2578081fd5b8135613861816148dd565b600060208284031215613fee578081fd5b8151613861816148dd565b60008060006060848603121561400d578081fd5b8335614018816148dd565b925060208401359150604084013561402f816148c8565b809150509250925092565b60008060006060848603121561404e578081fd5b8335614059816148dd565b95602085013595506040909401359392505050565b60006020828403121561407f578081fd5b5051919050565b600060208284031215614097578081fd5b8135613861816148eb565b6000602082840312156140b3578081fd5b8151613861816148eb565b600080602083850312156140d0578182fd5b823567ffffffffffffffff8111156140e6578283fd5b6140f285828601613c94565b90969095509350505050565b60006020828403121561410f578081fd5b813567ffffffffffffffff811115614125578182fd5b8201601f81018413614135578182fd5b61310b84823560208401613c3c565b600060208284031215614155578081fd5b5035919050565b6000806040838503121561416e578182fd5b823591506020830135613d5f816148c8565b60008060408385031215614192578182fd5b50508035926020909101359150565b6000806000606084860312156141b5578081fd5b83359250602084013567ffffffffffffffff8111156141d2578182fd5b6141de86828701613cdb565b925050604084013590509250925092565b6000815180845260208085019450808401835b838110156142275781516001600160a01b031687529582019590820190600101614202565b509495945050505050565b6000815180845260208085019450808401835b8381101561422757815187529582019590820190600101614245565b600081518084526142798160208601602086016147f0565b601f01601f19169290920160200192915050565b6000825161429f8184602087016147f0565b9190910192915050565b600085516142bb818460208a016147f0565b8551908301906142cf818360208a016147f0565b85519101906142e28183602089016147f0565b84519101906142f58183602088016147f0565b019695505050505050565b600060018060a01b0385168252836020830152606060408301526143276060830184614261565b95945050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061436390830184614261565b9695505050505050565b600060018060a01b0386168252846020830152608060408301526143946080830185614261565b905082606083015295945050505050565b6000602082526138616020830184614261565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600c908201526b155b985d5d1a1bdc9a5cd95960a21b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600060208252825160208301526020830151604083015260408301516105008060608501526144e96105208501836141ef565b91506060850151601f19808685030160808701526145078483614232565b9350608087015160a087015260a087015160c087015260c087015160e087015260e0870151915061010061453e8188018415159052565b8701516101208781019190915287015161014080880191909152870151915061016061456d8188018415159052565b870151610180878101919091528701516101a08088019190915287015191506101c061459c8188018415159052565b8701516101e08781019190915287015161020080880191909152870151610220808801919091528701516102408088019190915287015161026080880191909152870151610280808801919091528701516102a08088019190915287015186850382016102c0808901919091529092506146168584614261565b945080880151925050506102e0614637818701836001600160a01b03169052565b860151905061030061464c8682018315159052565b86015190506103206146618682018315159052565b86015190506103406146768682018315159052565b860151610360868101919091528601516103808087019190915286015190506103a06146ac818701836001600160a01b03169052565b86015190506103c06146c8868201836001600160a01b03169052565b8601516103e08681019190915286015161040080870191909152860151610420808701919091528601516104408087019190915286015190506104606147118187018315159052565b86015190506104806147268682018315159052565b8601516104a0868101919091528601516104c0808701919091528601516104e0808701919091529095015193019290925250919050565b604051601f8201601f1916810167ffffffffffffffff81118282101715614786576147866148b2565b604052919050565b600082198211156147a1576147a1614886565b500190565b6000826147b5576147b561489c565b500490565b60008160001904831182151516156147d4576147d4614886565b500290565b6000828210156147eb576147eb614886565b500390565b60005b8381101561480b5781810151838201526020016147f3565b83811115610b4d5750506000910152565b60028104600182168061483057607f821691505b6020821081141561485157634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561486b5761486b614886565b5060010190565b6000826148815761488161489c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461266357600080fd5b801515811461266357600080fd5b6001600160e01b03198116811461266357600080fdfea264697066735822122009b9b382ca2303041b08e406d5c6e97c91aaae60ff0c2909a0cb8f40443c52a764736f6c6343000802003368747470733a2f2f65746865722d63617264732e6d7970696e6174612e636c6f75642f697066732f516d654b767959764d5468707544555137706f34415778723553557066794e4b6563446d7367533456715a6d4e7500000000000000000000000097ca7fe0b0288f5eb85f386fed876618fb9b8ab800000000000000000000000072170f577f3b221b3478e09ccd5323445a8460d7000000000000000000000000e2e109f1b4eaa8915655fe8fdefc112a34acc5f0

Deployed Bytecode

0x6080604052600436106103025760003560e01c80636e83843a11610190578063a0712d68116100dc578063c87b56dd11610095578063d897833e1161006f578063d897833e1461092b578063e985e9c51461094b578063f2fde38b14610994578063f4ddedcf146109b457610312565b8063c87b56dd146108ce578063ca29e8c8146108ee578063d5b014c31461091657610312565b8063a0712d6814610826578063a22cb46514610839578063a5b3abfb14610859578063b0c77f3514610879578063b88d4fde1461088e578063baf55742146108ae57610312565b80638da5cb5b11610149578063948f6de911610123578063948f6de9146107aa57806395d89b41146107bd578063981546e5146107d2578063993a45581461080657610312565b80638da5cb5b146107385780638e74955b14610756578063903a5c0e1461078a57610312565b80636e83843a1461068e5780636f219bd6146106ae57806370a08231146106c3578063715018a6146106e35780638895283f146106f85780638cc683cb1461071857610312565b80632a85db551161024f5780634697f05d116102085780635ed1bb90116101e25780635ed1bb90146105dd5780636352211e1461061157806367666d74146106315780636cc301e31461065e57610312565b80634697f05d1461057d5780634d78cca21461059d5780634f6ccce7146105bd57610312565b80632a85db55146104d55780632f745c59146104f557806337004d6614610515578063390dc7bd146105285780633d64ac9b1461053d57806342842e0e1461055d57610312565b8063134f3337116102bc57806318160ddd1161029657806318160ddd1461047457806320fc354c1461048957806323b872dd1461049f57806326d428e2146104bf57610312565b8063134f33371461041457806315da0b021461043457806317fd1e2f1461045457610312565b806223de291461031757806301ffc9a71461033757806306fdde031461036c578063081812fc1461038e578063095ea7b3146103c65780630e89341c146103e657610312565b3661031257610310346109e4565b005b600080fd5b34801561032357600080fd5b50610310610332366004613d6a565b610b53565b34801561034357600080fd5b50610357610352366004614086565b610dff565b60405190151581526020015b60405180910390f35b34801561037857600080fd5b50610381610e2c565b60405161036391906143a5565b34801561039a57600080fd5b506103ae6103a9366004614144565b610ebf565b6040516001600160a01b039091168152602001610363565b3480156103d257600080fd5b506103106103e1366004613eef565b610f54565b3480156103f257600080fd5b50610406610401366004614144565b61106a565b604051908152602001610363565b34801561042057600080fd5b5061031061042f36600461415c565b6111bd565b34801561044057600080fd5b5061031061044f366004613cfa565b61120f565b34801561046057600080fd5b5061031061046f366004613eef565b61128d565b34801561048057600080fd5b50600854610406565b34801561049557600080fd5b50610406601c5481565b3480156104ab57600080fd5b506103106104ba366004613e18565b611337565b3480156104cb57600080fd5b50610406601b5481565b3480156104e157600080fd5b506103106104f03660046140fe565b611368565b34801561050157600080fd5b50610406610510366004613eef565b6113a5565b6103106105233660046141a1565b61143b565b34801561053457600080fd5b50610310611550565b34801561054957600080fd5b50610310610558366004614180565b611674565b34801561056957600080fd5b50610310610578366004613e18565b6118f9565b34801561058957600080fd5b50610310610598366004613ec2565b611914565b3480156105a957600080fd5b506027546103ae906001600160a01b031681565b3480156105c957600080fd5b506104066105d8366004614144565b6119bb565b3480156105e957600080fd5b506103ae7f00000000000000000000000097ca7fe0b0288f5eb85f386fed876618fb9b8ab881565b34801561061d57600080fd5b506103ae61062c366004614144565b611a5c565b34801561063d57600080fd5b5061065161064c366004613cfa565b611ad3565b60405161036391906144b6565b34801561066a57600080fd5b50610357610679366004613cfa565b602c6020526000908152604090205460ff1681565b34801561069a57600080fd5b506103106106a93660046140be565b612017565b3480156106ba57600080fd5b506103576120f2565b3480156106cf57600080fd5b506104066106de366004613cfa565b61213d565b3480156106ef57600080fd5b506103106121c4565b34801561070457600080fd5b50610310610713366004613fc1565b6121f8565b34801561072457600080fd5b50610310610733366004613f1a565b61223c565b34801561074457600080fd5b506019546001600160a01b03166103ae565b34801561076257600080fd5b506103ae7f00000000000000000000000072170f577f3b221b3478e09ccd5323445a8460d781565b34801561079657600080fd5b506103106107a536600461403a565b6123de565b6103106107b8366004614144565b612422565b3480156107c957600080fd5b50610381612666565b3480156107de57600080fd5b506103ae7f000000000000000000000000e2e109f1b4eaa8915655fe8fdefc112a34acc5f081565b34801561081257600080fd5b50610310610821366004613ff9565b612675565b610310610834366004614144565b6127db565b34801561084557600080fd5b50610310610854366004613ec2565b612873565b34801561086557600080fd5b50610310610874366004613eef565b612945565b34801561088557600080fd5b506103576129d9565b34801561089a57600080fd5b506103106108a9366004613e58565b612a20565b3480156108ba57600080fd5b506103106108c936600461403a565b612a52565b3480156108da57600080fd5b506103816108e9366004614144565b612a96565b3480156108fa57600080fd5b506103ae73a55c7770161b6325b64a622821e2db3551df6c9e81565b34801561092257600080fd5b50610310612cd1565b34801561093757600080fd5b50610310610946366004613fc1565b612d27565b34801561095757600080fd5b50610357610966366004613d32565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109a057600080fd5b506103106109af366004613cfa565b612d64565b3480156109c057600080fd5b506103576109cf366004614144565b60286020526000908152604090205460ff1681565b60008060005b600a54811015610b4d5760006103e8600b8381548110610a1a57634e487b7160e01b600052603260045260246000fd5b906000526020600020015486610a3091906147ba565b610a3a91906147a6565b600a54909150610a4c906001906147d9565b821415610a6457610a5d83866147d9565b9050610a71565b610a6e818461478e565b92505b600a8281548110610a9257634e487b7160e01b600052603260045260246000fd5b60009182526020822001546040516001600160a01b039091169183919081818185875af1925050503d8060008114610ae6576040519150601f19603f3d011682016040523d82523d6000602084013e610aeb565b606091505b50508094505083610b3a5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b60448201526064015b60405180910390fd5b5080610b4581614857565b9150506109ea565b50505050565b6002601a541415610ba65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b31565b6002601a55610bb36120f2565b610bf25760405162461bcd60e51b815260206004820152601060248201526f39b0b6329034b9903737ba1037b832b760811b6044820152606401610b31565b60405162461bcd60e51b815260206004820152601a60248201527f64757374206d696e74696e67206e6f7420617661696c61626c650000000000006044820152606401610b31565b600a54811015610db45760006103e8600b8381548110610c6a57634e487b7160e01b600052603260045260246000fd5b90600052602060002001548a610c8091906147ba565b610c8a91906147a6565b600a54909150610c9c906001906147d9565b821415610cb457610cad838a6147d9565b9050610cc1565b610cbe818461478e565b92505b7f000000000000000000000000e2e109f1b4eaa8915655fe8fdefc112a34acc5f06001600160a01b0316639bd9bbc6600a8481548110610d1157634e487b7160e01b600052603260045260246000fd5b60009182526020918290200154604080518082018252600c81526b44757374204d696e74696e6760a01b93810193909352516001600160e01b031960e085901b168152610d6e926001600160a01b03909216918691600401614300565b600060405180830381600087803b158015610d8857600080fd5b505af1158015610d9c573d6000803e3d6000fd5b50505050508080610dac90614857565b915050610c3a565b5060408051838152602081018990527f3f84ebb22bda939aa6114237622b9fbb3c5955107b5ae3adeb4381f4368bdf71910160405180910390a150506001601a555050505050505050565b60006001600160e01b0319821663780e9d6360e01b1480610e245750610e2482612f5e565b90505b919050565b606060008054610e3b9061481c565b80601f0160208091040260200160405190810160405280929190818152602001828054610e679061481c565b8015610eb45780601f10610e8957610100808354040283529160200191610eb4565b820191906000526020600020905b815481529060010190602001808311610e9757829003601f168201915b505050505090505b90565b6000818152600260205260408120546001600160a01b0316610f385760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b31565b506000908152600460205260409020546001600160a01b031690565b6000610f5f82611a5c565b9050806001600160a01b0316836001600160a01b03161415610fcd5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b31565b336001600160a01b0382161480610fe95750610fe98133610966565b61105b5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b31565b6110658383612fae565b505050565b600060255482116110ba5761270f602d5483611086919061478e565b1161109f57602d54611098908361478e565b9050610e27565b61270f602d54836110b0919061478e565b61109891906147d9565b600060255461270f6110cc91906147d9565b9050600081602254602554866110e291906147d9565b6110ec919061478e565b6110f69190614872565b61110190600161478e565b905061270f81602e54611114919061478e565b116111305780602e54611127919061478e565b92505050610e27565b602d5461270f82602e54611144919061478e565b61114e91906147d9565b1161116e5761270f81602e54611164919061478e565b61112791906147d9565b600061270f82602e54611181919061478e565b61118b91906147d9565b61119690600161478e565b9050602e54602d54826111a991906147d9565b6111b3919061478e565b9350505050610e27565b336000908152602c602052604090205460ff16806111e557506019546001600160a01b031633145b6112015760405162461bcd60e51b8152600401610b319061440a565b61120b8282612dfc565b5050565b336000908152602c602052604090205460ff168061123757506019546001600160a01b031633145b6112535760405162461bcd60e51b8152600401610b319061440a565b602780546001600160a01b039092166001600160a01b0319909216821790556000908152602c60205260409020805460ff19166001179055565b6019546001600160a01b031633146112b75760405162461bcd60e51b8152600401610b3190614430565b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb90604401602060405180830381600087803b1580156112ff57600080fd5b505af1158015611313573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110659190613fdd565b611341338261301c565b61135d5760405162461bcd60e51b8152600401610b3190614465565b611065838383613113565b6019546001600160a01b031633146113925760405162461bcd60e51b8152600401610b3190614430565b805161120b906014906020840190613b2f565b60006113b08361213d565b82106114125760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610b31565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6027546001600160a01b03166114935760405162461bcd60e51b815260206004820152601960248201527f436f6d6d756e6974792073616c65206e6f7420616374697665000000000000006044820152606401610b31565b6027546040516000916001600160a01b03169034906114bc90339088908890889060240161436d565b60408051601f198184030181529181526020820180516001600160e01b0316637a000ee760e01b179052516114f1919061428d565b60006040518083038185875af1925050503d806000811461152e576040519150601f19603f3d011682016040523d82523d6000602084013e611533565b606091505b5050905080156115435750611065565b6040513d806000833e8082fd5b6019546001600160a01b0316331461157a5760405162461bcd60e51b8152600401610b3190614430565b60205460ff166115cc5760405162461bcd60e51b815260206004820152601d60248201527f46697273742052657665616c206e6f7420636f6d706c657465207965740000006044820152606401610b31565b602054610100900460ff16611672577f00000000000000000000000072170f577f3b221b3478e09ccd5323445a8460d76001600160a01b031663c532bbac6040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561163657600080fd5b505af115801561164a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061166e919061406e565b601f555b565b336001600160a01b037f00000000000000000000000072170f577f3b221b3478e09ccd5323445a8460d716146116df5760405162461bcd60e51b815260206004820152601060248201526f556e617574686f726973656420524e4760801b6044820152606401610b31565b80601e5414156117f25760205460ff161561173c5760405162461bcd60e51b815260206004820152601b60248201527f52616e646f6d204e6f2e20616c726561647920726563656976656400000000006044820152606401610b31565b6117476002836147a6565b60215561175761270f600161478e565b6021546117649190614872565b602d556020805460ff1916600117905561177d60085490565b602581905561178b9061106a565b602e819055602154602d5460255460408051600181526020810194909452830191909152606082019290925260808101919091527f959b44b0b513e15fb6ff0120336443b895d08969842e3aed3ac22eb9e933f7b39060a0015b60405180910390a161120b565b80601f5414156118b1576020805461ff00191661010017905561181460085490565b6026556118226002836147a6565b6022556025546118349061270f6147d9565b61183f90600161478e565b60225461184c9190614872565b602f819055507f959b44b0b513e15fb6ff0120336443b895d08969842e3aed3ac22eb9e933f7b36002602154602f5461188660265461106a565b602654604080519586526020860194909452928401919091526060830152608082015260a0016117e5565b60405162461bcd60e51b815260206004820152601960248201527f496e636f727265637420726571756573742049442073656e74000000000000006044820152606401610b31565b61106583838360405180602001604052806000815250612a20565b336000908152602c602052604090205460ff168061193c57506019546001600160a01b031633145b6119585760405162461bcd60e51b8152600401610b319061440a565b6001600160a01b0382166000818152602c6020908152604091829020805460ff19168515159081179091558251938452908301527f64966f3fe2ac8cae5e6f7e4196d1315efafdb78a4377de3887c56fa3b9ac47cb910160405180910390a15050565b60006119c660085490565b8210611a295760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610b31565b60088281548110611a4a57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b031680610e245760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610b31565b611c266040518061050001604052806000815260200160008152602001606081526020016060815260200160008152602001600081526020016000815260200160001515815260200160008152602001600081526020016000151581526020016000815260200160008152602001600015158152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016060815260200160006001600160a01b03168152602001600015158152602001600015158152602001600015158152602001600081526020016000815260200160006001600160a01b0316815260200160006001600160a01b0316815260200160008152602001600081526020016000815260200160008152602001600015158152602001600015158152602001600081526020016000815260200160008152602001600081525090565b6027546000906001600160a01b031615611cba5760275460405163d583781360e01b81526001600160a01b0385811660048301529091169063d58378139060240160206040518083038186803b158015611c7f57600080fd5b505afa158015611c93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cb7919061406e565b90505b60405180610500016040528061270f8152602001601b548152602001600a805480602002602001604051908101604052809291908181526020018280548015611d2c57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611d0e575b50505050508152602001600b805480602002602001604051908101604052809291908181526020018280548015611d8257602002820191906000526020600020905b815481526020019060010190808311611d6e575b5050509183525050668e1bc9bf04000060208201819052604082018190526060820152600c5460ff90811615156080830152600d5460a0830152600e5460c0830152600f5416151560e082015260105461010082015260115461012082015260006101408201819052600161016083015261018082018190526012546101a083015261270f6101c08301526013546101e083015261020082015260066102208201526014805461024090920191611e389061481c565b80601f0160208091040260200160405190810160405280929190818152602001828054611e649061481c565b8015611eb15780601f10611e8657610100808354040283529160200191611eb1565b820191906000526020600020905b815481529060010190602001808311611e9457829003601f168201915b505050918352505073a55c7770161b6325b64a622821e2db3551df6c9e6020820152604001611ede6129d9565b15158152602001611eed6120f2565b15158152602001611efc6120f2565b8015611f06575060005b151581526001600160a01b0394851660008181526029602090815260408083205482860152928252602a81529082902054918301919091527f00000000000000000000000097ca7fe0b0288f5eb85f386fed876618fb9b8ab8861660608301527f000000000000000000000000e2e109f1b4eaa8915655fe8fdefc112a34acc5f09095166080820152603260a08201527f000000000000000000000000000000000000000000000000000000000000248560c082015260245460e082015261010080820193909352935460ff808216151561012087015292900490911615156101408401526021546101608401526022546101808401526025546101a08401526026546101c0909301929092525090565b6019546001600160a01b031633146120415760405162461bcd60e51b8152600401610b3190614430565b61204d60238383613bb3565b5060205460ff1661120b577f00000000000000000000000072170f577f3b221b3478e09ccd5323445a8460d76001600160a01b031663c532bbac6040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156120b357600080fd5b505af11580156120c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120eb919061406e565b601e555050565b601d5460009060ff161561210857506001610ebc565b600f5460ff16801561211c57504260105411155b801561212a57504260115410155b1561213757506001610ebc565b50600090565b60006001600160a01b0382166121a85760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610b31565b506001600160a01b031660009081526003602052604090205490565b6019546001600160a01b031633146121ee5760405162461bcd60e51b8152600401610b3190614430565b61167260006132be565b6019546001600160a01b031633146122225760405162461bcd60e51b8152600401610b3190614430565b601d80549115156101000261ff0019909216919091179055565b6122446129d9565b6122835760405162461bcd60e51b815260206004820152601060248201526f383932b9b0b632903737ba1037b832b760811b6044820152606401610b31565b600061228e82613310565b905061270f8161229d60085490565b6122a7919061478e565b11156122f55760405162461bcd60e51b815260206004820152601b60248201527f4e6f74206d656e6f7567682063617264732072656d61696e696e6700000000006044820152606401610b31565b600081601254612305919061478e565b9050801561234e5760405162461bcd60e51b81526020600482015260166024820152751150c8185b1b1bd8d85d1a5bdb88195e18d95959195960521b6044820152606401610b31565b336000908152602960205260408120805484929061236d90849061478e565b909155505033600090815260296020526040902054156123cf5760405162461bcd60e51b815260206004820152601d60248201527f4d617820667265652070657220616464726573732065786365656465640000006044820152606401610b31565b60128190556110658233612dfc565b6019546001600160a01b031633146124085760405162461bcd60e51b8152600401610b3190614430565b600f805460ff191693151593909317909255601055601155565b61242a6129d9565b6124695760405162461bcd60e51b815260206004820152601060248201526f383932b9b0b632903737ba1037b832b760811b6044820152606401610b31565b6040516370a0823160e01b81523360048201526000907f00000000000000000000000097ca7fe0b0288f5eb85f386fed876618fb9b8ab86001600160a01b0316906370a082319060240160206040518083038186803b1580156124cb57600080fd5b505afa1580156124df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612503919061406e565b116125505760405162461bcd60e51b815260206004820152601b60248201527f596f7520646f206e6f7420686f6c6420457468657220436172647300000000006044820152606401610b31565b336000908152602a60205260408120805483929061256f90849061478e565b9091555050336000908152602a6020526040902054600610156125e65760405162461bcd60e51b815260206004820152602960248201527f4e756d6265722065786365656473206d617820646973636f756e74656420706560448201526872206164647265737360b81b6064820152608401610b31565b80601360008282546125f8919061478e565b909155505060135461270f10156126515760405162461bcd60e51b815260206004820181905260248201527f546f6f206d616e7920646973636f756e7420746f6b656e7320636c61696d65646044820152606401610b31565b6126638133668e1bc9bf0400006134a0565b50565b606060018054610e3b9061481c565b336000908152602c602052604090205460ff168061269d57506019546001600160a01b031633145b6126b95760405162461bcd60e51b8152600401610b319061440a565b60008084156126cf5750506016546102266126ee565b5050601854739dff1113cf4186dec4feb774632356d22f07eb9e915060645b80821061273d5760405162461bcd60e51b815260206004820152601a60248201527f416c6c206d696e746564206f72206e6f20616c6c6f77616e63650000000000006044820152606401610b31565b60008161274a868561478e565b1061275e5761275983836147d9565b612760565b845b601b805491925082906000612775838561478e565b90915550600090505b828110156127ab5761279986612794848461478e565b6134fc565b806127a381614857565b91505061277e565b5086156127c4576127bc828561478e565b6016556127d2565b6127ce828561478e565b6018555b50505050505050565b6127e36120f2565b6128225760405162461bcd60e51b815260206004820152601060248201526f39b0b6329034b9903737ba1037b832b760811b6044820152606401610b31565b60328111156126515760405162461bcd60e51b815260206004820181905260248201527f45786365656473206d617820706572205472616e73616374696f6e204d696e746044820152606401610b31565b6001600160a01b0382163314156128cc5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b31565b3360008181526005602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612939911515815260200190565b60405180910390a35050565b6019546001600160a01b0316331461296f5760405162461bcd60e51b8152600401610b3190614430565b6040516323b872dd60e01b8152306004820152336024820152604481018290526001600160a01b038316906323b872dd90606401600060405180830381600087803b1580156129bd57600080fd5b505af11580156129d1573d6000803e3d6000fd5b505050505050565b601d54600090610100900460ff16156129f457506001610ebc565b600c5460ff168015612a08575042600d5411155b801561212a575042600e541061213757506001610ebc565b612a2a338361301c565b612a465760405162461bcd60e51b8152600401610b3190614465565b610b4d8484848461364a565b6019546001600160a01b03163314612a7c5760405162461bcd60e51b8152600401610b3190614430565b600c805460ff191693151593909317909255600d55600e55565b6000818152600260205260409020546060906001600160a01b0316612af45760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b6044820152606401610b31565b600060238054612b039061481c565b80601f0160208091040260200160405190810160405280929190818152602001828054612b2f9061481c565b8015612b7c5780601f10612b5157610100808354040283529160200191612b7c565b820191906000526020600020905b815481529060010190602001808311612b5f57829003601f168201915b50506020549394505060ff9092169150612c2590505760148054612b9f9061481c565b80601f0160208091040260200160405190810160405280929190818152602001828054612bcb9061481c565b8015612c185780601f10612bed57610100808354040283529160200191612c18565b820191906000526020600020905b815481529060010190602001808311612bfb57829003601f168201915b5050505050915050610e27565b60255483118015612c3e5750602054610100900460ff16155b15612c505760148054612b9f9061481c565b6000612c5b8461106a565b90506000612c72612c6d606484614872565b61367d565b90506000612c7f8361367d565b90506000604051806040016040528060018152602001602f60f81b815250905084838284604051602001612cb694939291906142a9565b60405160208183030381529060405295505050505050919050565b6019546001600160a01b03163314612cfb5760405162461bcd60e51b8152600401610b3190614430565b60405133904780156108fc02916000818181858888f19350505050158015612663573d6000803e3d6000fd5b6019546001600160a01b03163314612d515760405162461bcd60e51b8152600401610b3190614430565b601d805460ff1916911515919091179055565b6019546001600160a01b03163314612d8e5760405162461bcd60e51b8152600401610b3190614430565b6001600160a01b038116612df35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b31565b612663816132be565b8160246000828254612e0e919061478e565b90915550506024547f00000000000000000000000000000000000000000000000000000000000024851015612ea05760405162461bcd60e51b815260206004820152603260248201527f546869732065786365656473206d6178696d756d206e756d626572206f662075604482015271736572206d696e7461626c6520636172647360701b6064820152608401610b31565b601b5461270f612eb0848361478e565b1115612f165760405162461bcd60e51b815260206004820152602f60248201527f5468697320776f756c642065786365656420746865206e756d626572206f662060448201526e636172647320617661696c61626c6560881b6064820152608401610b31565b60005b83811015612f4157612f2f83612794838561478e565b80612f3981614857565b915050612f19565b5082601b6000828254612f54919061478e565b9091555050505050565b60006001600160e01b031982166380ac58cd60e01b1480612f8f57506001600160e01b03198216635b5e139f60e01b145b80610e2457506301ffc9a760e01b6001600160e01b0319831614610e24565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612fe382611a5c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166130955760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b31565b60006130a083611a5c565b9050806001600160a01b0316846001600160a01b031614806130db5750836001600160a01b03166130d084610ebf565b6001600160a01b0316145b8061310b57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661312682611a5c565b6001600160a01b03161461318e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610b31565b6001600160a01b0382166131f05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b31565b6131fb838383613798565b613206600082612fae565b6001600160a01b038316600090815260036020526040812080546001929061322f9084906147d9565b90915550506001600160a01b038216600090815260036020526040812080546001929061325d90849061478e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b601980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008060005b835181101561349957600084828151811061334157634e487b7160e01b600052603260045260246000fd5b60200260200101519050336001600160a01b03167f00000000000000000000000097ca7fe0b0288f5eb85f386fed876618fb9b8ab86001600160a01b0316636352211e836040518263ffffffff1660e01b81526004016133a391815260200190565b60206040518083038186803b1580156133bb57600080fd5b505afa1580156133cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133f39190613d16565b6001600160a01b0316146134495760405162461bcd60e51b815260206004820152601960248201527f596f7520646f206e6f74206f776e20616c6c20746f6b656e73000000000000006044820152606401610b31565b60008181526028602052604090205460ff16613486576000818152602860205260409020805460ff191660011790558261348281614857565b9350505b508061349181614857565b915050613316565b5092915050565b6134aa8382613855565b3410156134e95760405162461bcd60e51b815260206004820152600d60248201526c1c1c9a58d9481b9bdd081b595d609a1b6044820152606401610b31565b6134f38383612dfc565b611065346109e4565b6001600160a01b0382166135525760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b31565b6000818152600260205260409020546001600160a01b0316156135b75760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b31565b6135c360008383613798565b6001600160a01b03821660009081526003602052604081208054600192906135ec90849061478e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b613655848484613113565b61366184848484613868565b610b4d5760405162461bcd60e51b8152600401610b31906143b8565b6060816136a257506040805180820190915260018152600360fc1b6020820152610e27565b8160005b81156136cc57806136b681614857565b91506136c59050600a836147a6565b91506136a6565b60008167ffffffffffffffff8111156136f557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561371f576020820181803683370190505b5090505b841561310b576137346001836147d9565b9150613741600a86614872565b61374c90603061478e565b60f81b81838151811061376f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613791600a866147a6565b9450613723565b6001600160a01b0383166137f3576137ee81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613816565b816001600160a01b0316836001600160a01b031614613816576138168382613975565b6001600160a01b0382166138325761382d81613a12565b611065565b826001600160a01b0316826001600160a01b031614611065576110658282613aeb565b600061386182846147ba565b9392505050565b60006001600160a01b0384163b1561396a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906138ac903390899088908890600401614330565b602060405180830381600087803b1580156138c657600080fd5b505af19250505080156138f6575060408051601f3d908101601f191682019092526138f3918101906140a2565b60015b613950573d808015613924576040519150601f19603f3d011682016040523d82523d6000602084013e613929565b606091505b5080516139485760405162461bcd60e51b8152600401610b31906143b8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061310b565b506001949350505050565b600060016139828461213d565b61398c91906147d9565b6000838152600760205260409020549091508082146139df576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613a24906001906147d9565b60008381526009602052604081205460088054939450909284908110613a5a57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110613a8957634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613acf57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613af68361213d565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054613b3b9061481c565b90600052602060002090601f016020900481019282613b5d5760008555613ba3565b82601f10613b7657805160ff1916838001178555613ba3565b82800160010185558215613ba3579182015b82811115613ba3578251825591602001919060010190613b88565b50613baf929150613c27565b5090565b828054613bbf9061481c565b90600052602060002090601f016020900481019282613be15760008555613ba3565b82601f10613bfa5782800160ff19823516178555613ba3565b82800160010185558215613ba3579182015b82811115613ba3578235825591602001919060010190613c0c565b5b80821115613baf5760008155600101613c28565b600067ffffffffffffffff831115613c5657613c566148b2565b613c69601f8401601f191660200161475d565b9050828152838383011115613c7d57600080fd5b828260208301376000602084830101529392505050565b60008083601f840112613ca5578182fd5b50813567ffffffffffffffff811115613cbc578182fd5b602083019150836020828501011115613cd457600080fd5b9250929050565b600082601f830112613ceb578081fd5b61386183833560208501613c3c565b600060208284031215613d0b578081fd5b8135613861816148c8565b600060208284031215613d27578081fd5b8151613861816148c8565b60008060408385031215613d44578081fd5b8235613d4f816148c8565b91506020830135613d5f816148c8565b809150509250929050565b60008060008060008060008060c0898b031215613d85578384fd5b8835613d90816148c8565b97506020890135613da0816148c8565b96506040890135613db0816148c8565b955060608901359450608089013567ffffffffffffffff80821115613dd3578586fd5b613ddf8c838d01613c94565b909650945060a08b0135915080821115613df7578384fd5b50613e048b828c01613c94565b999c989b5096995094979396929594505050565b600080600060608486031215613e2c578283fd5b8335613e37816148c8565b92506020840135613e47816148c8565b929592945050506040919091013590565b60008060008060808587031215613e6d578384fd5b8435613e78816148c8565b93506020850135613e88816148c8565b925060408501359150606085013567ffffffffffffffff811115613eaa578182fd5b613eb687828801613cdb565b91505092959194509250565b60008060408385031215613ed4578081fd5b8235613edf816148c8565b91506020830135613d5f816148dd565b60008060408385031215613f01578182fd5b8235613f0c816148c8565b946020939093013593505050565b60006020808385031215613f2c578182fd5b823567ffffffffffffffff80821115613f43578384fd5b818501915085601f830112613f56578384fd5b813581811115613f6857613f686148b2565b8381029150613f7884830161475d565b8181528481019084860184860187018a1015613f92578788fd5b8795505b83861015613fb4578035835260019590950194918601918601613f96565b5098975050505050505050565b600060208284031215613fd2578081fd5b8135613861816148dd565b600060208284031215613fee578081fd5b8151613861816148dd565b60008060006060848603121561400d578081fd5b8335614018816148dd565b925060208401359150604084013561402f816148c8565b809150509250925092565b60008060006060848603121561404e578081fd5b8335614059816148dd565b95602085013595506040909401359392505050565b60006020828403121561407f578081fd5b5051919050565b600060208284031215614097578081fd5b8135613861816148eb565b6000602082840312156140b3578081fd5b8151613861816148eb565b600080602083850312156140d0578182fd5b823567ffffffffffffffff8111156140e6578283fd5b6140f285828601613c94565b90969095509350505050565b60006020828403121561410f578081fd5b813567ffffffffffffffff811115614125578182fd5b8201601f81018413614135578182fd5b61310b84823560208401613c3c565b600060208284031215614155578081fd5b5035919050565b6000806040838503121561416e578182fd5b823591506020830135613d5f816148c8565b60008060408385031215614192578182fd5b50508035926020909101359150565b6000806000606084860312156141b5578081fd5b83359250602084013567ffffffffffffffff8111156141d2578182fd5b6141de86828701613cdb565b925050604084013590509250925092565b6000815180845260208085019450808401835b838110156142275781516001600160a01b031687529582019590820190600101614202565b509495945050505050565b6000815180845260208085019450808401835b8381101561422757815187529582019590820190600101614245565b600081518084526142798160208601602086016147f0565b601f01601f19169290920160200192915050565b6000825161429f8184602087016147f0565b9190910192915050565b600085516142bb818460208a016147f0565b8551908301906142cf818360208a016147f0565b85519101906142e28183602089016147f0565b84519101906142f58183602088016147f0565b019695505050505050565b600060018060a01b0385168252836020830152606060408301526143276060830184614261565b95945050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061436390830184614261565b9695505050505050565b600060018060a01b0386168252846020830152608060408301526143946080830185614261565b905082606083015295945050505050565b6000602082526138616020830184614261565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600c908201526b155b985d5d1a1bdc9a5cd95960a21b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600060208252825160208301526020830151604083015260408301516105008060608501526144e96105208501836141ef565b91506060850151601f19808685030160808701526145078483614232565b9350608087015160a087015260a087015160c087015260c087015160e087015260e0870151915061010061453e8188018415159052565b8701516101208781019190915287015161014080880191909152870151915061016061456d8188018415159052565b870151610180878101919091528701516101a08088019190915287015191506101c061459c8188018415159052565b8701516101e08781019190915287015161020080880191909152870151610220808801919091528701516102408088019190915287015161026080880191909152870151610280808801919091528701516102a08088019190915287015186850382016102c0808901919091529092506146168584614261565b945080880151925050506102e0614637818701836001600160a01b03169052565b860151905061030061464c8682018315159052565b86015190506103206146618682018315159052565b86015190506103406146768682018315159052565b860151610360868101919091528601516103808087019190915286015190506103a06146ac818701836001600160a01b03169052565b86015190506103c06146c8868201836001600160a01b03169052565b8601516103e08681019190915286015161040080870191909152860151610420808701919091528601516104408087019190915286015190506104606147118187018315159052565b86015190506104806147268682018315159052565b8601516104a0868101919091528601516104c0808701919091528601516104e0808701919091529095015193019290925250919050565b604051601f8201601f1916810167ffffffffffffffff81118282101715614786576147866148b2565b604052919050565b600082198211156147a1576147a1614886565b500190565b6000826147b5576147b561489c565b500490565b60008160001904831182151516156147d4576147d4614886565b500290565b6000828210156147eb576147eb614886565b500390565b60005b8381101561480b5781810151838201526020016147f3565b83811115610b4d5750506000910152565b60028104600182168061483057607f821691505b6020821081141561485157634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561486b5761486b614886565b5060010190565b6000826148815761488161489c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461266357600080fd5b801515811461266357600080fd5b6001600160e01b03198116811461266357600080fdfea264697066735822122009b9b382ca2303041b08e406d5c6e97c91aaae60ff0c2909a0cb8f40443c52a764736f6c63430008020033

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

00000000000000000000000097ca7fe0b0288f5eb85f386fed876618fb9b8ab800000000000000000000000072170f577f3b221b3478e09ccd5323445a8460d7000000000000000000000000e2e109f1b4eaa8915655fe8fdefc112a34acc5f0

-----Decoded View---------------
Arg [0] : _ec (address): 0x97CA7FE0b0288f5EB85F386FeD876618FB9b8Ab8
Arg [1] : _rng (address): 0x72170F577F3B221b3478E09ccD5323445a8460d7
Arg [2] : _dust (address): 0xe2E109f1b4eaA8915655fE8fDEfC112a34ACc5F0

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000097ca7fe0b0288f5eb85f386fed876618fb9b8ab8
Arg [1] : 00000000000000000000000072170f577f3b221b3478e09ccd5323445a8460d7
Arg [2] : 000000000000000000000000e2e109f1b4eaa8915655fe8fdefc112a34acc5f0


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.