ETH Price: $2,525.79 (+2.39%)

Token

Expandables (PANDA)
 

Overview

Max Total Supply

3,500 PANDA

Holders

0

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 0 Decimals)

Balance
0 PANDA

Value
$0.00
0x4071bb0275c625c7de3ced2c0f046134ec7e0873
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
Expandables

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 21 : Expandables.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/security/Pausable.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol';
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import "./PaymentSplitter.sol";

contract Expandables is ERC721Enumerable, ERC721Burnable, VRFConsumerBase, PaymentSplitter, Pausable, Ownable  {    
    using Strings for uint256;

    uint256 constant MAX_TOTAL_SUPPLY = 8888;

    uint256 mintPrice = 69000000000000000;
    uint256 whiteListPrice = 69000000000000000;
    bool mintingClosed;

    string private baseTokenURI;

    bytes32 merkleRoot = 0xec335a6860f7922e56c4ae0fd1d003f87bc1796ad87f4fa765cc19858ef73ad4;
    bytes32 merkleRootFree = 0x571b61c9e522a857abaa09ed96cde4fca59f4c3dc28a6baebf4164de2dcf060c;

    uint256 whitelistOpen = 1638823200;
    uint256 whitelistClose = 1638910800;
    uint256 publicOpen = 1638912600;

    Reveal[] reveals;

    mapping(uint256 => uint8) oneOnes;
    mapping(address => uint256) public claimedTokens;
    mapping(address => uint256) public claimedFreeTokens;

    bytes32 internal immutable keyHash;
    uint256 internal immutable fee;

    string constant public IPFS_HASH = "QmVtXCe4WY2mXHKmLcSNzskyWSLA68aAQwNiwdD6TkoXUA";
    string constant public ARWEAVE_HASH = "KpjNYjqWwQfuyxd19xT2MFY1bjibqpFunSvbMDOKOZk";

    struct Expandable {
        uint8 background;
        uint8 fur;
        uint8 mouth;
        uint8 eyes;
        uint8 clothes;
        uint8 hat;
        uint8 power;
        uint8 speed;
        uint8 cuteness;
        uint8 intelligence;
    }

    struct Reveal {
        uint256 randomness;
        uint256 untilTokenId;
    }

    constructor(
        string memory _name, 
        string memory _symbol,
        string memory _baseTokenURI,
        address[] memory payees,
        uint256[] memory shares_,
        address _vrfCoordinator,
        address _linkToken,
        bytes32 _keyHash,
        uint256 _fee        
    ) ERC721(_name, _symbol) PaymentSplitter(payees, shares_) VRFConsumerBase(_vrfCoordinator, _linkToken) {
        baseTokenURI = _baseTokenURI;

        keyHash = _keyHash;
        fee = _fee;
    }    

    function mint(uint256 amount) external payable whenNotPaused {
        require (block.timestamp > publicOpen, "public sale not started");
        require(msg.value == amount * mintPrice, "payment incorrect");
        require(amount <= 10, "max tx amount exceeded");

        _mintPandas(msg.sender, amount);
    }      

    function whiteListMintFree(        
        uint256 amount,
        uint256 index,
        uint256 maxAmount,
        bytes32[] calldata merkleProof
    ) external whenNotPaused {
        require(claimedFreeTokens[msg.sender] + amount <= maxAmount, "amount too high");
        require(block.timestamp > whitelistOpen, "whitelist sale closed");

        claimedFreeTokens[msg.sender] = claimedFreeTokens[msg.sender] + amount;

        _whitelistMint(amount, index, maxAmount, merkleProof, merkleRootFree);     
    }      

    function whitelistMint(
        uint256 amount,
        uint256 index,
        uint256 maxAmount,
        bytes32[] calldata merkleProof
    ) external payable whenNotPaused {
        require(block.timestamp > whitelistOpen && block.timestamp < whitelistClose, "whitelist sale closed");
        require(msg.value == amount * whiteListPrice, "payment incorrect");
        require(claimedTokens[msg.sender] + amount <= maxAmount, "amount too high");

        claimedTokens[msg.sender] = claimedTokens[msg.sender] + amount;

        _whitelistMint(amount, index, maxAmount, merkleProof, merkleRoot);        
    }

    function _whitelistMint(
        uint256 amount,
        uint256 index,
        uint256 maxAmount,
        bytes32[] calldata merkleProof,
        bytes32 _merkleRoot
    ) internal {

        bytes32 node = keccak256(abi.encodePacked(index, msg.sender, maxAmount));
        require(
            MerkleProof.verify(merkleProof, _merkleRoot, node),
            "invalid merkle proof"
        );
        
        _mintPandas(msg.sender, amount);            
    }    

    function ownerMint(address to, uint256 amount) external onlyOwner {
        _mintPandas(to, amount);
    }  

    function setSaleWindows(
        uint256 _whitelistOpen, 
        uint256 _whitelistClose,
        uint256 _publicOpen
    ) external onlyOwner {
        whitelistOpen = _whitelistOpen;
        whitelistClose = _whitelistClose;
        publicOpen = _publicOpen;
    }   

    function closeMintingForever() external onlyOwner {
        mintingClosed = true;
    }   

    function setMerkleRoot(bytes32 _merkleRoot, bytes32 _merkleRootFree) external onlyOwner {
        merkleRoot = _merkleRoot;
        merkleRootFree = _merkleRootFree;
    }      

    function setPrice(uint256 _mintPrice, uint256 _whiteListPrice) external onlyOwner {
        whiteListPrice = _whiteListPrice;
        mintPrice = _mintPrice;
    }       

    function setBaseURI(string memory _baseTokenURI) external onlyOwner {
        baseTokenURI = _baseTokenURI;    
    }        

    function reveal() external onlyOwner returns (bytes32 requestId) {
        return requestRandomness(keyHash, fee);
    }    

    function sendShares(address payable account) public override {
        require(msg.sender == account || msg.sender == owner(), "not allowed");

        super.sendShares(account);
    } 

    function pause() external onlyOwner {
        _pause();
    }

    function unpause() external onlyOwner {
        _unpause();
    }

    function withdrawLink() external onlyOwner {
        LINK.transfer(owner(), LINK.balanceOf(address(this)));
    }      

    function getTraits(uint256 tokenId) external view returns (Expandable memory) {
        require(reveals.length > 0 && reveals[reveals.length-1].untilTokenId >= tokenId, "not revealed yet");

        return Expandable({
            background: oneOnes[tokenId] != 0 ? oneOnes[tokenId] : getBackground(tokenId),
            fur: oneOnes[tokenId] != 0 ? oneOnes[tokenId] : getFur(tokenId),
            mouth: oneOnes[tokenId] != 0 ? oneOnes[tokenId] : getMouth(tokenId),
            eyes: oneOnes[tokenId] != 0 ? oneOnes[tokenId] : getEyes(tokenId),
            clothes: oneOnes[tokenId] != 0 ? oneOnes[tokenId] : getClothes(tokenId),
            hat: oneOnes[tokenId] != 0 ? oneOnes[tokenId] : getHat(tokenId),
            power: uint8(expandRandom(tokenId, 6) % 101),
            speed: uint8(expandRandom(tokenId, 7) % 101),
            cuteness: uint8(expandRandom(tokenId, 8) % 101),
            intelligence: uint8(expandRandom(tokenId, 9) % 101)
        });            
    }  

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

        return bytes(baseTokenURI).length > 0 ? 
            string(abi.encodePacked(baseTokenURI, tokenId.toString())) : 
            "";
    }        

    function _mintPandas(address to, uint256 amount) private {
        require(totalSupply() + amount <= MAX_TOTAL_SUPPLY, "max supply exceeded");
        require(!mintingClosed, "mint closed");        

        for(uint256 i; i < amount; i++) {         
            _mint(to, totalSupply() + 1);        
        }       
    }         

    function fulfillRandomness(bytes32, uint256 _randomness) internal override {
        if(reveals.length == 0) {
            for(uint8 i=1; i <= 16; i++) {
                bool found;
                uint256 j;
                while(!found) {
                    uint256 ran = (uint256(keccak256(abi.encodePacked(i, j, _randomness))) % totalSupply()) + 1;
                    if(oneOnes[ran] == 0) {
                        found = true;
                        oneOnes[ran] = i;
                    } else {
                        j++;
                    }
                }
            }            
        }
        reveals.push(Reveal(_randomness, totalSupply()));
    }     

    function expandRandom(uint256 tokenId, uint256 nonce2) private view returns (uint256) {

        for(uint256 i; i < reveals.length; i++) {
            if(reveals[i].untilTokenId >= tokenId) {
                return uint(keccak256(abi.encodePacked(tokenId, nonce2, reveals[i].randomness)));
            }
        }
        return 0;
    } 

    function getBackground(uint256 tokenId) private view returns (uint8) {
        uint256 ran = (expandRandom(tokenId, 0) % MAX_TOTAL_SUPPLY) + 1;

        if(ran <= 293) {
            return 17;
        } else if(ran <= 491) {
            return 18;            
        } else if(ran <= 815) {
            return 19;            
        } else if(ran <= 911) {
            return 20;            
        } else if(ran <= 1814) {
            return 21;            
        } else if(ran <= 3534) {
            return 22;            
        } else if(ran <= 5013) {
            return 23;            
        } else if(ran <= 5326) {
            return 24;            
        } else if(ran <= 5590) {
            return 25;            
        } else if(ran <= 5876) {
            return 26;            
        } else if(ran <= 6062) {
            return 27;            
        } else if(ran <= 6248) {
            return 28;            
        } else if(ran <= 7210) {
            return 29;            
        } else if(ran <= 7424) {
            return 30;            
        } else if(ran <= 8682) {
            return 31;            
        } else {
            return 32;            
        }                   
    }     

    function getFur(uint256 tokenId) private view returns (uint8) {
        uint256 ran = (expandRandom(tokenId, 1) % MAX_TOTAL_SUPPLY) + 1;

        if(ran <= 480) {
            return 33;
        } else if(ran <= 1231) {
            return 34;            
        } else if(ran <= 2492) {
            return 35;            
        } else if(ran <= 2765) {
            return 36;            
        } else if(ran <= 3008) {
            return 37;            
        } else if(ran <= 3275) {
            return 38;            
        } else if(ran <= 3413) {
            return 39;            
        } else if(ran <= 3789) {
            return 40;            
        } else if(ran <= 4129) {
            return 41;            
        } else if(ran <= 6561) {
            return 42;            
        } else if(ran <= 7233) {
            return 43;            
        } else if(ran <= 7902) {
            return 44;            
        } else if(ran <= 8140) {
            return 45;            
        } else {
            return 46;            
        }                    
    }  

    function getMouth(uint256 tokenId) private view returns (uint8) {

        uint256 ran = (expandRandom(tokenId, 2) % MAX_TOTAL_SUPPLY) + 1;

        if(ran <= 1247) {
            return 47;
        } else if(ran <= 1525) {
            return 48;
        } else if(ran <= 2162) {
            return 49;
        } else if(ran <= 2476) {
            return 50;
        } else if(ran <= 2797) {
            return 51;
        } else if(ran <= 3165) {
            return 52;
        } else if(ran <= 3313) {
            return 53;
        } else if(ran <= 3547) {
            return 54;
        } else if(ran <= 3820) {
            return 55;
        } else if(ran <= 4007) {
            return 56;
        } else if(ran <= 4255) {
            return 57;
        } else if(ran <= 4586) {
            return 58;
        } else if(ran <= 4913) {
            return 59;
        } else if(ran <= 5150) {
            return 60;
        } else if(ran <= 5386) {
            return 61;
        } else if(ran <= 5764) {
            return 62;            
        } else if(ran <= 5971) {
            return 63;            
        } else if(ran <= 6088) {
            return 64;            
        } else if(ran <= 6471) {
            return 65;            
        } else if(ran <= 6817) {
            return 66;             
        } else if(ran <= 7560) {
            return 67;             
        } else if(ran <= 7949) {
            return 68;             
        } else if(ran <= 8113) {
            return 69;             
        } else if(ran <= 8332) {
            return 70;             
        } else if(ran <= 8658) {
            return 71;
        } else {
            return 72;
        }                        
    }  

    function getEyes(uint256 tokenId) private view returns (uint8) {
        uint256 ran = (expandRandom(tokenId, 3) % MAX_TOTAL_SUPPLY) + 1;

        if(ran <= 893) {
            return 73;
        } else if(ran <= 1027) {
            return 74;
        } else if(ran <= 1148) {
            return 75;
        } else if(ran <= 1464) {
            return 76;
        } else if(ran <= 1851) {
            return 77;
        } else if(ran <= 2044) {
            return 78;
        } else if(ran <= 2240) {
            return 79;
        } else if(ran <= 2336) {
            return 80;
        } else if(ran <= 2475) {
            return 81;
        } else if(ran <= 2613) {
            return 82;
        } else if(ran <= 2660) {
            return 83;
        } else if(ran <= 2853) {
            return 84;
        } else if(ran <= 3132) {
            return 85;
        } else if(ran <= 3513) {
            return 86;
        } else if(ran <= 3941) {
            return 87;
        } else if(ran <= 4836) {
            return 88;
        } else if(ran <= 5079) {
            return 89;
        } else if(ran <= 5419) {
            return 90;
        } else if(ran <= 5586) {
            return 91;
        } else if(ran <= 6009) {
            return 92;
        } else if(ran <= 6188) {
            return 93;
        } else if(ran <= 6483) {
            return 94;
        } else if(ran <= 7373) {
            return 95;
        } else if(ran <= 7634) {
            return 96;
        } else if(ran <= 7712) {
            return 97;
        } else if(ran <= 8039) {
            return 98;
        } else if(ran <= 8253) {
            return 99;
        } else if(ran <= 8675) {
            return 100;
        } else if(ran <= 8804) {
            return 101;                  
        } else {
            return 102;
        }
    }  

    function getClothes(uint256 tokenId) private view returns (uint8) {
        uint256 ran = (expandRandom(tokenId, 4) % MAX_TOTAL_SUPPLY) + 1;

        if(ran <= 72) {
            return 103;
        } else if(ran <= 275) {
            return 104;
        } else if(ran <= 546) {
            return 105;
        } else if(ran <= 783) {
            return 106;
        } else if(ran <= 1276) {
            return 107;
        } else if(ran <= 1618) {
            return 108;
        } else if(ran <= 1690) {
            return 109;
        } else if(ran <= 2058) {
            return 110;
        } else if(ran <= 2205) {
            return 111;
        } else if(ran <= 2518) {
            return 112;
        } else if(ran <= 2656) {
            return 113;
        } else if(ran <= 2882) {
            return 114;
        } else if(ran <= 3426) {
            return 115;
        } else if(ran <= 3914) {
            return 116;
        } else if(ran <= 4073) {
            return 117;
        } else if(ran <= 4159) {
            return 118;
        } else if(ran <= 4437) {
            return 119;
        } else if(ran <= 4780) {
            return 120;
        } else if(ran <= 5004) {
            return 121;
        } else if(ran <= 5336) {
            return 122;
        } else if(ran <= 5664) {
            return 123;
        } else if(ran <= 5913) {
            return 124;
        } else if(ran <= 6401) {
            return 125;
        } else if(ran <= 6752) {
            return 126;
        } else if(ran <= 6909) {
            return 127;
        } else if(ran <= 6972) {
            return 128;
        } else if(ran <= 7116) {
            return 129;
        } else if(ran <= 7354) {
            return 130;
        } else if(ran <= 7597) {
            return 131;
        } else if(ran <= 7836) {
            return 132;
        } else if(ran <= 7977) {
            return 133;
        } else if(ran <= 8324) {
            return 134;
        } else {
            return 135;
        }   
    }
    
    function getHat(uint256 tokenId) private view returns (uint8) {
        uint256 ran = (expandRandom(tokenId, 5) % MAX_TOTAL_SUPPLY) + 1;

        if(ran <= 371) {
            return 136;
        } else if(ran <= 1199) {
            return 137;
        } else if(ran <= 1445) {
            return 138;
        } else if(ran <= 1954) {
            return 139;
        } else if(ran <= 2101) {
            return 140;
        } else if(ran <= 2225) {
            return 141;
        } else if(ran <= 3086) {
            return 142;
        } else if(ran <= 3247) {
            return 143;
        } else if(ran <= 3386) {
            return 144;
        } else if(ran <= 3532) {
            return 145;
        } else if(ran <= 3663) {
            return 146;
        } else if(ran <= 4061) {
            return 147;
        } else if(ran <= 4356) {
            return 148;
        } else if(ran <= 4463) {
            return 149;
        } else if(ran <= 4802) {
            return 150;
        } else if(ran <= 5243) {
            return 151;
        } else if(ran <= 5764) {
            return 152;
        } else if(ran <= 6101) {
            return 153;
        } else if(ran <= 6246) {
            return 154;
        } else if(ran <= 6371) {
            return 155;
        } else if(ran <= 6623) {
            return 156;
        } else if(ran <= 6772) {
            return 157;
        } else if(ran <= 6935) {
            return 158;
        } else if(ran <= 7446) {
            return 159;
        } else if(ran <= 7493) {
            return 160;
        } else if(ran <= 7564) {
            return 161;
        } else if(ran <= 7777) {
            return 162;
        } else if(ran <= 7940) {
            return 163;
        } else if(ran <= 8236) {
            return 164;
        } else if(ran <= 8433) {
            return 165;
        } else {
            return 166;
        }                  
    }            

    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override(ERC721, ERC721Enumerable) {
        super._beforeTokenTransfer(from, to, tokenId);
    }   

    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC721Enumerable) returns (bool) {
        return super.supportsInterface(interfaceId);
    }        
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 3 of 21 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 4 of 21 : ERC721Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        _burn(tokenId);
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        bytes32 computedHash = leaf;

        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];

            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return computedHash == root;
    }
}

File 7 of 21 : VRFConsumerBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./interfaces/LinkTokenInterface.sol";

import "./VRFRequestIDBase.sol";

/** ****************************************************************************
 * @notice Interface for contracts using VRF randomness
 * *****************************************************************************
 * @dev PURPOSE
 *
 * @dev Reggie the Random Oracle (not his real job) wants to provide randomness
 * @dev to Vera the verifier in such a way that Vera can be sure he's not
 * @dev making his output up to suit himself. Reggie provides Vera a public key
 * @dev to which he knows the secret key. Each time Vera provides a seed to
 * @dev Reggie, he gives back a value which is computed completely
 * @dev deterministically from the seed and the secret key.
 *
 * @dev Reggie provides a proof by which Vera can verify that the output was
 * @dev correctly computed once Reggie tells it to her, but without that proof,
 * @dev the output is indistinguishable to her from a uniform random sample
 * @dev from the output space.
 *
 * @dev The purpose of this contract is to make it easy for unrelated contracts
 * @dev to talk to Vera the verifier about the work Reggie is doing, to provide
 * @dev simple access to a verifiable source of randomness.
 * *****************************************************************************
 * @dev USAGE
 *
 * @dev Calling contracts must inherit from VRFConsumerBase, and can
 * @dev initialize VRFConsumerBase's attributes in their constructor as
 * @dev shown:
 *
 * @dev   contract VRFConsumer {
 * @dev     constuctor(<other arguments>, address _vrfCoordinator, address _link)
 * @dev       VRFConsumerBase(_vrfCoordinator, _link) public {
 * @dev         <initialization with other arguments goes here>
 * @dev       }
 * @dev   }
 *
 * @dev The oracle will have given you an ID for the VRF keypair they have
 * @dev committed to (let's call it keyHash), and have told you the minimum LINK
 * @dev price for VRF service. Make sure your contract has sufficient LINK, and
 * @dev call requestRandomness(keyHash, fee, seed), where seed is the input you
 * @dev want to generate randomness from.
 *
 * @dev Once the VRFCoordinator has received and validated the oracle's response
 * @dev to your request, it will call your contract's fulfillRandomness method.
 *
 * @dev The randomness argument to fulfillRandomness is the actual random value
 * @dev generated from your seed.
 *
 * @dev The requestId argument is generated from the keyHash and the seed by
 * @dev makeRequestId(keyHash, seed). If your contract could have concurrent
 * @dev requests open, you can use the requestId to track which seed is
 * @dev associated with which randomness. See VRFRequestIDBase.sol for more
 * @dev details. (See "SECURITY CONSIDERATIONS" for principles to keep in mind,
 * @dev if your contract could have multiple requests in flight simultaneously.)
 *
 * @dev Colliding `requestId`s are cryptographically impossible as long as seeds
 * @dev differ. (Which is critical to making unpredictable randomness! See the
 * @dev next section.)
 *
 * *****************************************************************************
 * @dev SECURITY CONSIDERATIONS
 *
 * @dev A method with the ability to call your fulfillRandomness method directly
 * @dev could spoof a VRF response with any random value, so it's critical that
 * @dev it cannot be directly called by anything other than this base contract
 * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method).
 *
 * @dev For your users to trust that your contract's random behavior is free
 * @dev from malicious interference, it's best if you can write it so that all
 * @dev behaviors implied by a VRF response are executed *during* your
 * @dev fulfillRandomness method. If your contract must store the response (or
 * @dev anything derived from it) and use it later, you must ensure that any
 * @dev user-significant behavior which depends on that stored value cannot be
 * @dev manipulated by a subsequent VRF request.
 *
 * @dev Similarly, both miners and the VRF oracle itself have some influence
 * @dev over the order in which VRF responses appear on the blockchain, so if
 * @dev your contract could have multiple VRF requests in flight simultaneously,
 * @dev you must ensure that the order in which the VRF responses arrive cannot
 * @dev be used to manipulate your contract's user-significant behavior.
 *
 * @dev Since the ultimate input to the VRF is mixed with the block hash of the
 * @dev block in which the request is made, user-provided seeds have no impact
 * @dev on its economic security properties. They are only included for API
 * @dev compatability with previous versions of this contract.
 *
 * @dev Since the block hash of the block which contains the requestRandomness
 * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful
 * @dev miner could, in principle, fork the blockchain to evict the block
 * @dev containing the request, forcing the request to be included in a
 * @dev different block with a different hash, and therefore a different input
 * @dev to the VRF. However, such an attack would incur a substantial economic
 * @dev cost. This cost scales with the number of blocks the VRF oracle waits
 * @dev until it calls responds to a request.
 */
abstract contract VRFConsumerBase is VRFRequestIDBase {

  /**
   * @notice fulfillRandomness handles the VRF response. Your contract must
   * @notice implement it. See "SECURITY CONSIDERATIONS" above for important
   * @notice principles to keep in mind when implementing your fulfillRandomness
   * @notice method.
   *
   * @dev VRFConsumerBase expects its subcontracts to have a method with this
   * @dev signature, and will call it once it has verified the proof
   * @dev associated with the randomness. (It is triggered via a call to
   * @dev rawFulfillRandomness, below.)
   *
   * @param requestId The Id initially returned by requestRandomness
   * @param randomness the VRF output
   */
  function fulfillRandomness(
    bytes32 requestId,
    uint256 randomness
  )
    internal
    virtual;

  /**
   * @dev In order to keep backwards compatibility we have kept the user
   * seed field around. We remove the use of it because given that the blockhash
   * enters later, it overrides whatever randomness the used seed provides.
   * Given that it adds no security, and can easily lead to misunderstandings,
   * we have removed it from usage and can now provide a simpler API.
   */
  uint256 constant private USER_SEED_PLACEHOLDER = 0;

  /**
   * @notice requestRandomness initiates a request for VRF output given _seed
   *
   * @dev The fulfillRandomness method receives the output, once it's provided
   * @dev by the Oracle, and verified by the vrfCoordinator.
   *
   * @dev The _keyHash must already be registered with the VRFCoordinator, and
   * @dev the _fee must exceed the fee specified during registration of the
   * @dev _keyHash.
   *
   * @dev The _seed parameter is vestigial, and is kept only for API
   * @dev compatibility with older versions. It can't *hurt* to mix in some of
   * @dev your own randomness, here, but it's not necessary because the VRF
   * @dev oracle will mix the hash of the block containing your request into the
   * @dev VRF seed it ultimately uses.
   *
   * @param _keyHash ID of public key against which randomness is generated
   * @param _fee The amount of LINK to send with the request
   *
   * @return requestId unique ID for this request
   *
   * @dev The returned requestId can be used to distinguish responses to
   * @dev concurrent requests. It is passed as the first argument to
   * @dev fulfillRandomness.
   */
  function requestRandomness(
    bytes32 _keyHash,
    uint256 _fee
  )
    internal
    returns (
      bytes32 requestId
    )
  {
    LINK.transferAndCall(vrfCoordinator, _fee, abi.encode(_keyHash, USER_SEED_PLACEHOLDER));
    // This is the seed passed to VRFCoordinator. The oracle will mix this with
    // the hash of the block containing this request to obtain the seed/input
    // which is finally passed to the VRF cryptographic machinery.
    uint256 vRFSeed  = makeVRFInputSeed(_keyHash, USER_SEED_PLACEHOLDER, address(this), nonces[_keyHash]);
    // nonces[_keyHash] must stay in sync with
    // VRFCoordinator.nonces[_keyHash][this], which was incremented by the above
    // successful LINK.transferAndCall (in VRFCoordinator.randomnessRequest).
    // This provides protection against the user repeating their input seed,
    // which would result in a predictable/duplicate output, if multiple such
    // requests appeared in the same block.
    nonces[_keyHash] = nonces[_keyHash] + 1;
    return makeRequestId(_keyHash, vRFSeed);
  }

  LinkTokenInterface immutable internal LINK;
  address immutable private vrfCoordinator;

  // Nonces for each VRF key from which randomness has been requested.
  //
  // Must stay in sync with VRFCoordinator[_keyHash][this]
  mapping(bytes32 /* keyHash */ => uint256 /* nonce */) private nonces;

  /**
   * @param _vrfCoordinator address of VRFCoordinator contract
   * @param _link address of LINK token contract
   *
   * @dev https://docs.chain.link/docs/link-token-contracts
   */
  constructor(
    address _vrfCoordinator,
    address _link
  ) {
    vrfCoordinator = _vrfCoordinator;
    LINK = LinkTokenInterface(_link);
  }

  // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF
  // proof. rawFulfillRandomness then calls fulfillRandomness, after validating
  // the origin of the call
  function rawFulfillRandomness(
    bytes32 requestId,
    uint256 randomness
  )
    external
  {
    require(msg.sender == vrfCoordinator, "Only VRFCoordinator can fulfill");
    fulfillRandomness(requestId, randomness);
  }
}

File 8 of 21 : PaymentSplitter.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

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

    uint256 private _totalShares;
    uint256 private _totalReleased;

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

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

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

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

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

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

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

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

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

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

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

File 9 of 21 : 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 10 of 21 : 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 11 of 21 : 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 12 of 21 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 13 of 21 : 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 14 of 21 : 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 15 of 21 : 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 16 of 21 : 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 17 of 21 : 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 18 of 21 : 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 19 of 21 : LinkTokenInterface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface LinkTokenInterface {

  function allowance(
    address owner,
    address spender
  )
    external
    view
    returns (
      uint256 remaining
    );

  function approve(
    address spender,
    uint256 value
  )
    external
    returns (
      bool success
    );

  function balanceOf(
    address owner
  )
    external
    view
    returns (
      uint256 balance
    );

  function decimals()
    external
    view
    returns (
      uint8 decimalPlaces
    );

  function decreaseApproval(
    address spender,
    uint256 addedValue
  )
    external
    returns (
      bool success
    );

  function increaseApproval(
    address spender,
    uint256 subtractedValue
  ) external;

  function name()
    external
    view
    returns (
      string memory tokenName
    );

  function symbol()
    external
    view
    returns (
      string memory tokenSymbol
    );

  function totalSupply()
    external
    view
    returns (
      uint256 totalTokensIssued
    );

  function transfer(
    address to,
    uint256 value
  )
    external
    returns (
      bool success
    );

  function transferAndCall(
    address to,
    uint256 value,
    bytes calldata data
  )
    external
    returns (
      bool success
    );

  function transferFrom(
    address from,
    address to,
    uint256 value
  )
    external
    returns (
      bool success
    );

}

File 20 of 21 : VRFRequestIDBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract VRFRequestIDBase {

  /**
   * @notice returns the seed which is actually input to the VRF coordinator
   *
   * @dev To prevent repetition of VRF output due to repetition of the
   * @dev user-supplied seed, that seed is combined in a hash with the
   * @dev user-specific nonce, and the address of the consuming contract. The
   * @dev risk of repetition is mostly mitigated by inclusion of a blockhash in
   * @dev the final seed, but the nonce does protect against repetition in
   * @dev requests which are included in a single block.
   *
   * @param _userSeed VRF seed input provided by user
   * @param _requester Address of the requesting contract
   * @param _nonce User-specific nonce at the time of the request
   */
  function makeVRFInputSeed(
    bytes32 _keyHash,
    uint256 _userSeed,
    address _requester,
    uint256 _nonce
  )
    internal
    pure
    returns (
      uint256
    )
  {
    return uint256(keccak256(abi.encode(_keyHash, _userSeed, _requester, _nonce)));
  }

  /**
   * @notice Returns the id for this request
   * @param _keyHash The serviceAgreement ID to be used for this request
   * @param _vRFInputSeed The seed to be passed directly to the VRF
   * @return The id for this request
   *
   * @dev Note that _vRFInputSeed is not the seed passed by the consuming
   * @dev contract, but the one generated by makeVRFInputSeed
   */
  function makeRequestId(
    bytes32 _keyHash,
    uint256 _vRFInputSeed
  )
    internal
    pure
    returns (
      bytes32
    )
  {
    return keccak256(abi.encodePacked(_keyHash, _vRFInputSeed));
  }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_baseTokenURI","type":"string"},{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares_","type":"uint256[]"},{"internalType":"address","name":"_vrfCoordinator","type":"address"},{"internalType":"address","name":"_linkToken","type":"address"},{"internalType":"bytes32","name":"_keyHash","type":"bytes32"},{"internalType":"uint256","name":"_fee","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"ARWEAVE_HASH","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"IPFS_HASH","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimedFreeTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"closeMintingForever","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTraits","outputs":[{"components":[{"internalType":"uint8","name":"background","type":"uint8"},{"internalType":"uint8","name":"fur","type":"uint8"},{"internalType":"uint8","name":"mouth","type":"uint8"},{"internalType":"uint8","name":"eyes","type":"uint8"},{"internalType":"uint8","name":"clothes","type":"uint8"},{"internalType":"uint8","name":"hat","type":"uint8"},{"internalType":"uint8","name":"power","type":"uint8"},{"internalType":"uint8","name":"speed","type":"uint8"},{"internalType":"uint8","name":"cuteness","type":"uint8"},{"internalType":"uint8","name":"intelligence","type":"uint8"}],"internalType":"struct Expandables.Expandable","name":"","type":"tuple"}],"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":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","outputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"sendShares","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"bytes32","name":"_merkleRootFree","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"uint256","name":"_whiteListPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_whitelistOpen","type":"uint256"},{"internalType":"uint256","name":"_whitelistClose","type":"uint256"},{"internalType":"uint256","name":"_publicOpen","type":"uint256"}],"name":"setSaleWindows","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"maxAmount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"whiteListMintFree","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"maxAmount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdrawLink","outputs":[],"stateMutability":"nonpayable","type":"function"}]

61010060405266f523226980800060118190556012557fec335a6860f7922e56c4ae0fd1d003f87bc1796ad87f4fa765cc19858ef73ad46015557f571b61c9e522a857abaa09ed96cde4fca59f4c3dc28a6baebf4164de2dcf060c6016556361ae75206017556361afcb506018556361afd2586019553480156200008257600080fd5b5060405162004e0438038062004e04833981016040819052620000a59162000703565b858585858c8c8160009080519060200190620000c3929190620004cb565b508051620000d9906001906020840190620004cb565b5050506001600160601b0319606092831b811660a052911b166080528051825114620001675760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620001ba5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f2070617965657300000000000060448201526064016200015e565b60005b82518110156200023e5762000229838281518110620001ec57634e487b7160e01b600052603260045260246000fd5b60200260200101518383815181106200021557634e487b7160e01b600052603260045260246000fd5b60200260200101516200028360201b60201c565b806200023581620008c8565b915050620001bd565b50506010805460ff1916905550620002563362000471565b86516200026b9060149060208a0190620004cb565b5060c09190915260e052506200091295505050505050565b6001600160a01b038216620002f05760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016200015e565b60008111620003425760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200015e565b6001600160a01b0382166000908152600d602052604090205415620003be5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016200015e565b600f8054600181019091557f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020180546001600160a01b0319166001600160a01b0384169081179091556000908152600d60205260409020819055600b546200042890829062000870565b600b55604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b601080546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620004d9906200088b565b90600052602060002090601f016020900481019282620004fd576000855562000548565b82601f106200051857805160ff191683800117855562000548565b8280016001018555821562000548579182015b82811115620005485782518255916020019190600101906200052b565b50620005569291506200055a565b5090565b5b808211156200055657600081556001016200055b565b80516001600160a01b03811681146200058957600080fd5b919050565b600082601f8301126200059f578081fd5b81516020620005b8620005b2836200084a565b62000817565b80838252828201915082860187848660051b8901011115620005d8578586fd5b855b858110156200060157620005ee8262000571565b84529284019290840190600101620005da565b5090979650505050505050565b600082601f8301126200061f578081fd5b8151602062000632620005b2836200084a565b80838252828201915082860187848660051b890101111562000652578586fd5b855b85811015620006015781518452928401929084019060010162000654565b600082601f83011262000683578081fd5b81516001600160401b038111156200069f576200069f620008fc565b6020620006b5601f8301601f1916820162000817565b8281528582848701011115620006c9578384fd5b835b83811015620006e8578581018301518282018401528201620006cb565b83811115620006f957848385840101525b5095945050505050565b60008060008060008060008060006101208a8c03121562000722578485fd5b89516001600160401b038082111562000739578687fd5b620007478d838e0162000672565b9a5060208c01519150808211156200075d578687fd5b6200076b8d838e0162000672565b995060408c015191508082111562000781578687fd5b6200078f8d838e0162000672565b985060608c0151915080821115620007a5578687fd5b620007b38d838e016200058e565b975060808c0151915080821115620007c9578687fd5b50620007d88c828d016200060e565b955050620007e960a08b0162000571565b9350620007f960c08b0162000571565b925060e08a015191506101008a015190509295985092959850929598565b604051601f8201601f191681016001600160401b0381118282101715620008425762000842620008fc565b604052919050565b60006001600160401b03821115620008665762000866620008fc565b5060051b60200190565b60008219821115620008865762000886620008e6565b500190565b600181811c90821680620008a057607f821691505b60208210811415620008c257634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415620008df57620008df620008e6565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60805160601c60a05160601c60c05160e05161449d62000967600039600061143b0152600061141a015260008181611180015261239d01526000818161101b01528181611075015261236e015261449d6000f3fe6080604052600436106102515760003560e01c80638456cb5911610139578063afa15a2e116100b6578063df7253961161007a578063df725396146106c1578063e1dc0761146106d4578063e985e9c514610701578063ec32043f1461074a578063f2fde38b1461076a578063f7d975771461078a57600080fd5b8063afa15a2e146105fe578063b7f4a4c51461062b578063b88d4fde1461064b578063c87b56dd1461066b578063ce7c2ac21461068b57600080fd5b806395d89b41116100fd57806395d89b4114610574578063a0712d6814610589578063a22cb4651461059c578063a475b5dd146105bc578063a960c65f146105d157600080fd5b80638456cb59146104f257806389fe2a7e146105075780638da5cb5b1461051c5780638dc654a21461053f57806394985ddd1461055457600080fd5b806342966c68116101d25780635c975abb116101965780635c975abb14610445578063621b320f1461045d5780636352211e1461047d57806370a082311461049d578063715018a6146104bd57806375edcbe0146104d257600080fd5b806342966c68146103b05780634768da0a146103d0578063484b973c146103e55780634f6ccce71461040557806355f804b31461042557600080fd5b806323b872dd1161021957806323b872dd1461032657806325f75235146103465780632f745c591461035b5780633f4ba83a1461037b57806342842e0e1461039057600080fd5b806301ffc9a71461025657806306fdde031461028b578063081812fc146102ad578063095ea7b3146102e557806318160ddd14610307575b600080fd5b34801561026257600080fd5b50610276610271366004613df1565b6107aa565b60405190151581526020015b60405180910390f35b34801561029757600080fd5b506102a06107bb565b60405161028291906140a7565b3480156102b957600080fd5b506102cd6102c8366004613e6f565b61084d565b6040516001600160a01b039091168152602001610282565b3480156102f157600080fd5b50610305610300366004613d89565b6108e7565b005b34801561031357600080fd5b506008545b604051908152602001610282565b34801561033257600080fd5b50610305610341366004613c9f565b6109fd565b34801561035257600080fd5b506102a0610a2f565b34801561036757600080fd5b50610318610376366004613d89565b610a4b565b34801561038757600080fd5b50610305610ae1565b34801561039c57600080fd5b506103056103ab366004613c9f565b610b1b565b3480156103bc57600080fd5b506103056103cb366004613e6f565b610b36565b3480156103dc57600080fd5b50610305610bb0565b3480156103f157600080fd5b50610305610400366004613d89565b610bef565b34801561041157600080fd5b50610318610420366004613e6f565b610c2d565b34801561043157600080fd5b50610305610440366004613e29565b610cce565b34801561045157600080fd5b5060105460ff16610276565b34801561046957600080fd5b50610305610478366004613eca565b610d11565b34801561048957600080fd5b506102cd610498366004613e6f565b610e22565b3480156104a957600080fd5b506103186104b8366004613c44565b610e99565b3480156104c957600080fd5b50610305610f20565b3480156104de57600080fd5b506103056104ed366004613dd0565b610f5a565b3480156104fe57600080fd5b50610305610f95565b34801561051357600080fd5b506102a0610fcd565b34801561052857600080fd5b5060105461010090046001600160a01b03166102cd565b34801561054b57600080fd5b50610305610fe9565b34801561056057600080fd5b5061030561056f366004613dd0565b611175565b34801561058057600080fd5b506102a06111f7565b610305610597366004613e6f565b611206565b3480156105a857600080fd5b506103056105b7366004613d5c565b61131d565b3480156105c857600080fd5b506103186113e2565b3480156105dd57600080fd5b506103186105ec366004613c44565b601c6020526000908152604090205481565b34801561060a57600080fd5b50610318610619366004613c44565b601d6020526000908152604090205481565b34801561063757600080fd5b50610305610646366004613e9f565b611464565b34801561065757600080fd5b50610305610666366004613cdf565b6114a2565b34801561067757600080fd5b506102a0610686366004613e6f565b6114da565b34801561069757600080fd5b506103186106a6366004613c44565b6001600160a01b03166000908152600d602052604090205490565b6103056106cf366004613eca565b6115b5565b3480156106e057600080fd5b506106f46106ef366004613e6f565b61171b565b60405161028291906141bc565b34801561070d57600080fd5b5061027661071c366004613c67565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561075657600080fd5b50610305610765366004613c44565b611a12565b34801561077657600080fd5b50610305610785366004613c44565b611a8d565b34801561079657600080fd5b506103056107a5366004613dd0565b611b2b565b60006107b582611b63565b92915050565b6060600080546107ca9061430f565b80601f01602080910402602001604051908101604052809291908181526020018280546107f69061430f565b80156108435780601f1061081857610100808354040283529160200191610843565b820191906000526020600020905b81548152906001019060200180831161082657829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108cb5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006108f282610e22565b9050806001600160a01b0316836001600160a01b031614156109605760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016108c2565b336001600160a01b038216148061097c575061097c813361071c565b6109ee5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016108c2565b6109f88383611b88565b505050565b610a08335b82611bf6565b610a245760405162461bcd60e51b81526004016108c29061416b565b6109f8838383611ced565b6040518060600160405280602b815260200161443d602b913981565b6000610a5683610e99565b8210610ab85760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016108c2565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6010546001600160a01b03610100909104163314610b115760405162461bcd60e51b81526004016108c290614136565b610b19611e98565b565b6109f8838383604051806020016040528060008152506114a2565b610b3f33610a02565b610ba45760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b60648201526084016108c2565b610bad81611f2b565b50565b6010546001600160a01b03610100909104163314610be05760405162461bcd60e51b81526004016108c290614136565b6013805460ff19166001179055565b6010546001600160a01b03610100909104163314610c1f5760405162461bcd60e51b81526004016108c290614136565b610c298282611fd2565b5050565b6000610c3860085490565b8210610c9b5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016108c2565b60088281548110610cbc57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6010546001600160a01b03610100909104163314610cfe5760405162461bcd60e51b81526004016108c290614136565b8051610c29906014906020840190613b35565b60105460ff1615610d345760405162461bcd60e51b81526004016108c29061410c565b336000908152601d60205260409020548390610d51908790614281565b1115610d915760405162461bcd60e51b815260206004820152600f60248201526e0c2dadeeadce840e8dede40d0d2ced608b1b60448201526064016108c2565b6017544211610dda5760405162461bcd60e51b81526020600482015260156024820152741dda1a5d195b1a5cdd081cd85b194818db1bdcd959605a1b60448201526064016108c2565b336000908152601d6020526040902054610df5908690614281565b336000908152601d6020526040902055601654610e1b90869086908690869086906120a8565b5050505050565b6000818152600260205260408120546001600160a01b0316806107b55760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016108c2565b60006001600160a01b038216610f045760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016108c2565b506001600160a01b031660009081526003602052604090205490565b6010546001600160a01b03610100909104163314610f505760405162461bcd60e51b81526004016108c290614136565b610b196000612188565b6010546001600160a01b03610100909104163314610f8a5760405162461bcd60e51b81526004016108c290614136565b601591909155601655565b6010546001600160a01b03610100909104163314610fc55760405162461bcd60e51b81526004016108c290614136565b610b196121e2565b6040518060600160405280602e815260200161440f602e913981565b6010546001600160a01b036101009091041633146110195760405162461bcd60e51b81526004016108c290614136565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb6110606010546001600160a01b036101009091041690565b6040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b1580156110bf57600080fd5b505afa1580156110d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110f79190613e87565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561113d57600080fd5b505af1158015611151573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bad9190613db4565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146111ed5760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c0060448201526064016108c2565b610c29828261223a565b6060600180546107ca9061430f565b60105460ff16156112295760405162461bcd60e51b81526004016108c29061410c565b601954421161127a5760405162461bcd60e51b815260206004820152601760248201527f7075626c69632073616c65206e6f74207374617274656400000000000000000060448201526064016108c2565b60115461128790826142ad565b34146112c95760405162461bcd60e51b81526020600482015260116024820152701c185e5b595b9d081a5b98dbdc9c9958dd607a1b60448201526064016108c2565b600a8111156113135760405162461bcd60e51b81526020600482015260166024820152751b585e081d1e08185b5bdd5b9d08195e18d95959195960521b60448201526064016108c2565b610bad3382611fd2565b6001600160a01b0382163314156113765760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108c2565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6010546000906001600160a01b036101009091041633146114155760405162461bcd60e51b81526004016108c290614136565b61145f7f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000061236a565b905090565b6010546001600160a01b036101009091041633146114945760405162461bcd60e51b81526004016108c290614136565b601792909255601855601955565b6114ac3383611bf6565b6114c85760405162461bcd60e51b81526004016108c29061416b565b6114d4848484846124f5565b50505050565b6000818152600260205260409020546060906001600160a01b03166115595760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016108c2565b6000601480546115689061430f565b90501161158457604051806020016040528060008152506107b5565b601461158f83612528565b6040516020016115a0929190613f9d565b60405160208183030381529060405292915050565b60105460ff16156115d85760405162461bcd60e51b81526004016108c29061410c565b601754421180156115ea575060185442105b61162e5760405162461bcd60e51b81526020600482015260156024820152741dda1a5d195b1a5cdd081cd85b194818db1bdcd959605a1b60448201526064016108c2565b60125461163b90866142ad565b341461167d5760405162461bcd60e51b81526020600482015260116024820152701c185e5b595b9d081a5b98dbdc9c9958dd607a1b60448201526064016108c2565b336000908152601c6020526040902054839061169a908790614281565b11156116da5760405162461bcd60e51b815260206004820152600f60248201526e0c2dadeeadce840e8dede40d0d2ced608b1b60448201526064016108c2565b336000908152601c60205260409020546116f5908690614281565b336000908152601c6020526040902055601554610e1b90869086908690869086906120a8565b6040805161014081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e081018290526101008101829052610120810191909152601a54158015906117be5750601a805483919061178b906001906142cc565b815481106117a957634e487b7160e01b600052603260045260246000fd5b90600052602060002090600202016001015410155b6117fd5760405162461bcd60e51b815260206004820152601060248201526f1b9bdd081c995d99585b1959081e595d60821b60448201526064016108c2565b60408051610140810182526000848152601b6020529190912054819060ff1661182e5761182984612642565b611841565b6000848152601b602052604090205460ff165b60ff90811682526000858152601b6020908152604090912054920191166118705761186b84612787565b611883565b6000848152601b602052604090205460ff165b60ff90811682526000858152601b6020908152604090912054920191166118b2576118ad846128a2565b6118c5565b6000848152601b602052604090205460ff165b60ff90811682526000858152601b6020908152604090912054920191166118f4576118ef84612a95565b611907565b6000848152601b602052604090205460ff165b60ff90811682526000858152601b6020908152604090912054920191166119365761193184612cd0565b611949565b6000848152601b602052604090205460ff165b60ff90811682526000858152601b6020908152604090912054920191166119785761197384612f40565b61198b565b6000848152601b602052604090205460ff165b60ff16815260200160656119a085600661318d565b6119aa919061437f565b60ff16815260200160656119bf85600761318d565b6119c9919061437f565b60ff16815260200160656119de85600861318d565b6119e8919061437f565b60ff16815260200160656119fd85600961318d565b611a07919061437f565b60ff16905292915050565b336001600160a01b0382161480611a4a575060105461010090046001600160a01b03166001600160a01b0316336001600160a01b0316145b611a845760405162461bcd60e51b815260206004820152600b60248201526a1b9bdd08185b1b1bddd95960aa1b60448201526064016108c2565b610bad81613269565b6010546001600160a01b03610100909104163314611abd5760405162461bcd60e51b81526004016108c290614136565b6001600160a01b038116611b225760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108c2565b610bad81612188565b6010546001600160a01b03610100909104163314611b5b5760405162461bcd60e51b81526004016108c290614136565b601255601155565b60006001600160e01b0319821663780e9d6360e01b14806107b557506107b58261343a565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611bbd82610e22565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611c6f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108c2565b6000611c7a83610e22565b9050806001600160a01b0316846001600160a01b03161480611cb55750836001600160a01b0316611caa8461084d565b6001600160a01b0316145b80611ce557506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611d0082610e22565b6001600160a01b031614611d685760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016108c2565b6001600160a01b038216611dca5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108c2565b611dd583838361348a565b611de0600082611b88565b6001600160a01b0383166000908152600360205260408120805460019290611e099084906142cc565b90915550506001600160a01b0382166000908152600360205260408120805460019290611e37908490614281565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60105460ff16611ee15760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016108c2565b6010805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6000611f3682610e22565b9050611f448160008461348a565b611f4f600083611b88565b6001600160a01b0381166000908152600360205260408120805460019290611f789084906142cc565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6122b881611fdf60085490565b611fe99190614281565b111561202d5760405162461bcd60e51b81526020600482015260136024820152721b585e081cdd5c1c1b1e48195e18d959591959606a1b60448201526064016108c2565b60135460ff161561206e5760405162461bcd60e51b815260206004820152600b60248201526a1b5a5b9d0818db1bdcd95960aa1b60448201526064016108c2565b60005b818110156109f8576120968361208660085490565b612091906001614281565b613495565b806120a081614344565b915050612071565b60408051602081018790526bffffffffffffffffffffffff193360601b1691810191909152605481018590526000906074016040516020818303038152906040528051906020012090506121328484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508692508591506135e39050565b6121755760405162461bcd60e51b815260206004820152601460248201527334b73b30b634b21036b2b935b63290383937b7b360611b60448201526064016108c2565b61217f3388611fd2565b50505050505050565b601080546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60105460ff16156122055760405162461bcd60e51b81526004016108c29061410c565b6010805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611f0e3390565b601a546123215760015b60108160ff161161231f576000805b8161230a57600061226360085490565b6040516001600160f81b031960f887901b16602082015260218101849052604181018790526061016040516020818303038152906040528051906020012060001c6122ae919061437f565b6122b9906001614281565b6000818152601b602052604090205490915060ff166122f6576000818152601b60205260409020805460ff191660ff861617905560019250612304565b8161230081614344565b9250505b50612253565b505080806123179061435f565b915050612244565b505b601a604051806040016040528083815260200161233d60085490565b90528154600181810184556000938452602093849020835160029093020191825592909101519101555050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f0000000000000000000000000000000000000000000000000000000000000000848660006040516020016123da929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161240793929190614080565b602060405180830381600087803b15801561242157600080fd5b505af1158015612435573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124599190613db4565b506000838152600a6020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a0909101909252815191830191909120938790529190526124b5906001614281565b6000858152600a6020526040902055611ce58482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b612500848484611ced565b61250c848484846136a0565b6114d45760405162461bcd60e51b81526004016108c2906140ba565b60608161254c5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612576578061256081614344565b915061256f9050600a83614299565b9150612550565b60008167ffffffffffffffff81111561259f57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156125c9576020820181803683370190505b5090505b8415611ce5576125de6001836142cc565b91506125eb600a8661437f565b6125f6906030614281565b60f81b81838151811061261957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061263b600a86614299565b94506125cd565b6000806122b861265384600061318d565b61265d919061437f565b612668906001614281565b9050610125811161267c5750601192915050565b6101eb811161268e5750601292915050565b61032f81116126a05750601392915050565b61038f81116126b25750601492915050565b61071681116126c45750601592915050565b610dce81116126d65750601692915050565b61139581116126e85750601792915050565b6114ce81116126fa5750601892915050565b6115d6811161270c5750601992915050565b6116f4811161271e5750601a92915050565b6117ae81116127305750601b92915050565b61186881116127425750601c92915050565b611c2a81116127545750601d92915050565b611d0081116127665750601e92915050565b6121ea81116127785750601f92915050565b50602092915050565b50919050565b6000806122b861279884600161318d565b6127a2919061437f565b6127ad906001614281565b90506101e081116127c15750602192915050565b6104cf81116127d35750602292915050565b6109bc81116127e55750602392915050565b610acd81116127f75750602492915050565b610bc081116128095750602592915050565b610ccb811161281b5750602692915050565b610d55811161282d5750602792915050565b610ecd811161283f5750602892915050565b61102181116128515750602992915050565b6119a181116128635750602a92915050565b611c4181116128755750602b92915050565b611ede81116128875750602c92915050565b611fcc81116128995750602d92915050565b50602e92915050565b6000806122b86128b384600261318d565b6128bd919061437f565b6128c8906001614281565b90506104df81116128dc5750602f92915050565b6105f581116128ee5750603092915050565b61087281116129005750603192915050565b6109ac81116129125750603292915050565b610aed81116129245750603392915050565b610c5d81116129365750603492915050565b610cf181116129485750603592915050565b610ddb811161295a5750603692915050565b610eec811161296c5750603792915050565b610fa7811161297e5750603892915050565b61109f81116129905750603992915050565b6111ea81116129a25750603a92915050565b61133181116129b45750603b92915050565b61141e81116129c65750603c92915050565b61150a81116129d85750603d92915050565b61168481116129ea5750603e92915050565b61175381116129fc5750603f92915050565b6117c88111612a0e5750604092915050565b6119478111612a205750604192915050565b611aa18111612a325750604292915050565b611d888111612a445750604392915050565b611f0d8111612a565750604492915050565b611fb18111612a685750604592915050565b61208c8111612a7a5750604692915050565b6121d28111612a8c5750604792915050565b50604892915050565b6000806122b8612aa684600361318d565b612ab0919061437f565b612abb906001614281565b905061037d8111612acf5750604992915050565b6104038111612ae15750604a92915050565b61047c8111612af35750604b92915050565b6105b88111612b055750604c92915050565b61073b8111612b175750604d92915050565b6107fc8111612b295750604e92915050565b6108c08111612b3b5750604f92915050565b6109208111612b4d5750605092915050565b6109ab8111612b5f5750605192915050565b610a358111612b715750605292915050565b610a648111612b835750605392915050565b610b258111612b955750605492915050565b610c3c8111612ba75750605592915050565b610db98111612bb95750605692915050565b610f658111612bcb5750605792915050565b6112e48111612bdd5750605892915050565b6113d78111612bef5750605992915050565b61152b8111612c015750605a92915050565b6115d28111612c135750605b92915050565b6117798111612c255750605c92915050565b61182c8111612c375750605d92915050565b6119538111612c495750605e92915050565b611ccd8111612c5b5750605f92915050565b611dd28111612c6d5750606092915050565b611e208111612c7f5750606192915050565b611f678111612c915750606292915050565b61203d8111612ca35750606392915050565b6121e38111612cb55750606492915050565b6122648111612cc75750606592915050565b50606692915050565b6000806122b8612ce184600461318d565b612ceb919061437f565b612cf6906001614281565b905060488111612d095750606792915050565b6101138111612d1b5750606892915050565b6102228111612d2d5750606992915050565b61030f8111612d3f5750606a92915050565b6104fc8111612d515750606b92915050565b6106528111612d635750606c92915050565b61069a8111612d755750606d92915050565b61080a8111612d875750606e92915050565b61089d8111612d995750606f92915050565b6109d68111612dab5750607092915050565b610a608111612dbd5750607192915050565b610b428111612dcf5750607292915050565b610d628111612de15750607392915050565b610f4a8111612df35750607492915050565b610fe98111612e055750607592915050565b61103f8111612e175750607692915050565b6111558111612e295750607792915050565b6112ac8111612e3b5750607892915050565b61138c8111612e4d5750607992915050565b6114d88111612e5f5750607a92915050565b6116208111612e715750607b92915050565b6117198111612e835750607c92915050565b6119018111612e955750607d92915050565b611a608111612ea75750607e92915050565b611afd8111612eb95750607f92915050565b611b3c8111612ecb5750608092915050565b611bcc8111612edd5750608192915050565b611cba8111612eef5750608292915050565b611dad8111612f015750608392915050565b611e9c8111612f135750608492915050565b611f298111612f255750608592915050565b6120848111612f375750608692915050565b50608792915050565b6000806122b8612f5184600561318d565b612f5b919061437f565b612f66906001614281565b90506101738111612f7a5750608892915050565b6104af8111612f8c5750608992915050565b6105a58111612f9e5750608a92915050565b6107a28111612fb05750608b92915050565b6108358111612fc25750608c92915050565b6108b18111612fd45750608d92915050565b610c0e8111612fe65750608e92915050565b610caf8111612ff85750608f92915050565b610d3a811161300a5750609092915050565b610dcc811161301c5750609192915050565b610e4f811161302e5750609292915050565b610fdd81116130405750609392915050565b61110481116130525750609492915050565b61116f81116130645750609592915050565b6112c281116130765750609692915050565b61147b81116130885750609792915050565b611684811161309a5750609892915050565b6117d581116130ac5750609992915050565b61186681116130be5750609a92915050565b6118e381116130d05750609b92915050565b6119df81116130e25750609c92915050565b611a7481116130f45750609d92915050565b611b1781116131065750609e92915050565b611d1681116131185750609f92915050565b611d45811161312a575060a092915050565b611d8c811161313c575060a192915050565b611e61811161314e575060a292915050565b611f048111613160575060a392915050565b61202c8111613172575060a492915050565b6120f18111613184575060a592915050565b5060a692915050565b6000805b601a5481101561325f5783601a82815481106131bd57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060020201600101541061324d578383601a83815481106131f757634e487b7160e01b600052603260045260246000fd5b90600052602060002090600202016000015460405160200161322c939291909283526020830191909152604082015260600190565b6040516020818303038152906040528051906020012060001c9150506107b5565b8061325781614344565b915050613191565b5060009392505050565b6001600160a01b0381166000908152600d60205260409020546132dd5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084016108c2565b6000600c54476132ed9190614281565b6001600160a01b0383166000908152600e6020908152604080832054600b54600d90935290832054939450919261332490856142ad565b61332e9190614299565b61333891906142cc565b90508061339b5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b60648201526084016108c2565b6001600160a01b0383166000908152600e60205260409020546133bf908290614281565b6001600160a01b0384166000908152600e6020526040902055600c546133e6908290614281565b600c556133f383826137aa565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b60006001600160e01b031982166380ac58cd60e01b148061346b57506001600160e01b03198216635b5e139f60e01b145b806107b557506301ffc9a760e01b6001600160e01b03198316146107b5565b6109f88383836138c3565b6001600160a01b0382166134eb5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108c2565b6000818152600260205260409020546001600160a01b0316156135505760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108c2565b61355c6000838361348a565b6001600160a01b0382166000908152600360205260408120805460019290613585908490614281565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600081815b855181101561369557600086828151811061361357634e487b7160e01b600052603260045260246000fd5b60200260200101519050808311613655576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250613682565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061368d81614344565b9150506135e8565b509092149392505050565b60006001600160a01b0384163b156137a257604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906136e4903390899088908890600401614043565b602060405180830381600087803b1580156136fe57600080fd5b505af192505050801561372e575060408051601f3d908101601f1916820190925261372b91810190613e0d565b60015b613788573d80801561375c576040519150601f19603f3d011682016040523d82523d6000602084013e613761565b606091505b5080516137805760405162461bcd60e51b81526004016108c2906140ba565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611ce5565b506001611ce5565b804710156137fa5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016108c2565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114613847576040519150601f19603f3d011682016040523d82523d6000602084013e61384c565b606091505b50509050806109f85760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016108c2565b6001600160a01b03831661391e5761391981600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613941565b816001600160a01b0316836001600160a01b03161461394157613941838261397b565b6001600160a01b038216613958576109f881613a18565b826001600160a01b0316826001600160a01b0316146109f8576109f88282613af1565b6000600161398884610e99565b61399291906142cc565b6000838152600760205260409020549091508082146139e5576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613a2a906001906142cc565b60008381526009602052604081205460088054939450909284908110613a6057634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110613a8f57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613ad557634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613afc83610e99565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054613b419061430f565b90600052602060002090601f016020900481019282613b635760008555613ba9565b82601f10613b7c57805160ff1916838001178555613ba9565b82800160010185558215613ba9579182015b82811115613ba9578251825591602001919060010190613b8e565b50613bb5929150613bb9565b5090565b5b80821115613bb55760008155600101613bba565b600067ffffffffffffffff80841115613be957613be96143bf565b604051601f8501601f19908116603f01168101908282118183101715613c1157613c116143bf565b81604052809350858152868686011115613c2a57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215613c55578081fd5b8135613c60816143d5565b9392505050565b60008060408385031215613c79578081fd5b8235613c84816143d5565b91506020830135613c94816143d5565b809150509250929050565b600080600060608486031215613cb3578081fd5b8335613cbe816143d5565b92506020840135613cce816143d5565b929592945050506040919091013590565b60008060008060808587031215613cf4578081fd5b8435613cff816143d5565b93506020850135613d0f816143d5565b925060408501359150606085013567ffffffffffffffff811115613d31578182fd5b8501601f81018713613d41578182fd5b613d5087823560208401613bce565b91505092959194509250565b60008060408385031215613d6e578182fd5b8235613d79816143d5565b91506020830135613c94816143ea565b60008060408385031215613d9b578182fd5b8235613da6816143d5565b946020939093013593505050565b600060208284031215613dc5578081fd5b8151613c60816143ea565b60008060408385031215613de2578182fd5b50508035926020909101359150565b600060208284031215613e02578081fd5b8135613c60816143f8565b600060208284031215613e1e578081fd5b8151613c60816143f8565b600060208284031215613e3a578081fd5b813567ffffffffffffffff811115613e50578182fd5b8201601f81018413613e60578182fd5b611ce584823560208401613bce565b600060208284031215613e80578081fd5b5035919050565b600060208284031215613e98578081fd5b5051919050565b600080600060608486031215613eb3578081fd5b505081359360208301359350604090920135919050565b600080600080600060808688031215613ee1578283fd5b853594506020860135935060408601359250606086013567ffffffffffffffff80821115613f0d578283fd5b818801915088601f830112613f20578283fd5b813581811115613f2e578384fd5b8960208260051b8501011115613f42578384fd5b9699959850939650602001949392505050565b60008151808452613f6d8160208601602086016142e3565b601f01601f19169290920160200192915050565b60008151613f938185602086016142e3565b9290920192915050565b600080845482600182811c915080831680613fb957607f831692505b6020808410821415613fd957634e487b7160e01b87526022600452602487fd5b818015613fed5760018114613ffe5761402a565b60ff1986168952848901965061402a565b60008b815260209020885b868110156140225781548b820152908501908301614009565b505084890196505b50505050505061403a8185613f81565b95945050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061407690830184613f55565b9695505050505050565b60018060a01b038416815282602082015260606040820152600061403a6060830184613f55565b602081526000613c606020830184613f55565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b815160ff168152610140810160208301516141dc602084018260ff169052565b5060408301516141f1604084018260ff169052565b506060830151614206606084018260ff169052565b50608083015161421b608084018260ff169052565b5060a083015161423060a084018260ff169052565b5060c083015161424560c084018260ff169052565b5060e083015161425a60e084018260ff169052565b506101008381015160ff908116918401919091526101209384015116929091019190915290565b6000821982111561429457614294614393565b500190565b6000826142a8576142a86143a9565b500490565b60008160001904831182151516156142c7576142c7614393565b500290565b6000828210156142de576142de614393565b500390565b60005b838110156142fe5781810151838201526020016142e6565b838111156114d45750506000910152565b600181811c9082168061432357607f821691505b6020821081141561278157634e487b7160e01b600052602260045260246000fd5b600060001982141561435857614358614393565b5060010190565b600060ff821660ff81141561437657614376614393565b60010192915050565b60008261438e5761438e6143a9565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610bad57600080fd5b8015158114610bad57600080fd5b6001600160e01b031981168114610bad57600080fdfe516d5674584365345759326d58484b6d4c63534e7a736b7957534c413638614151774e6977644436546b6f5855414b706a4e596a71577751667579786431397854324d465931626a6962717046756e5376624d444f4b4f5a6ba264697066735822122078f4cf812dd20ee03246b6fc52beed260713be7341f4b59048c8df18a08145d864736f6c634300080400330000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000380000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec80000000000000000000000000000000000000000000000000000000000000000000b457870616e6461626c6573000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000550414e44410000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d57336f6434663938566e716f45587656426155505a4b615142676438697947363456395350414174726357622f00000000000000000000000000000000000000000000000000000000000000000000000000000000000b000000000000000000000000a97ecb80ec1fce3b15b528e708ed148c6761027c00000000000000000000000099ac4d2195ee34d0f56ec5930d3248015908086e000000000000000000000000be1edab7f5fc7d58bf5d1225b7b608a797f9d11d0000000000000000000000005b92a53e91495052b7849ea585bec7e99c75293b00000000000000000000000096b2aee8dce1746d3341651f8fbcf007afde7e1900000000000000000000000086626b7c0cd3500439e2df43d4789d0466b925b5000000000000000000000000e7fff33d78fd81fa0bfdca008695e125c3710ef8000000000000000000000000cfea8e38ad74ab181c20988166b8d74f8da22ef90000000000000000000000000c666d38505b06ab6170536dc0ce6c55a6825df70000000000000000000000001b44d6dcea0efc25cdeda6caaacb0d1721ba37c6000000000000000000000000dcda62083d7996bc4587e1a5522395824803d6ed000000000000000000000000000000000000000000000000000000000000000b000000000000000000000000000000000000000000000000000000000000002800000000000000000000000000000000000000000000000000000000000000280000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000019000000000000000000000000000000000000000000000000000000000000000f0000000000000000000000000000000000000000000000000000000000000002800000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000023000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000005

Deployed Bytecode

0x6080604052600436106102515760003560e01c80638456cb5911610139578063afa15a2e116100b6578063df7253961161007a578063df725396146106c1578063e1dc0761146106d4578063e985e9c514610701578063ec32043f1461074a578063f2fde38b1461076a578063f7d975771461078a57600080fd5b8063afa15a2e146105fe578063b7f4a4c51461062b578063b88d4fde1461064b578063c87b56dd1461066b578063ce7c2ac21461068b57600080fd5b806395d89b41116100fd57806395d89b4114610574578063a0712d6814610589578063a22cb4651461059c578063a475b5dd146105bc578063a960c65f146105d157600080fd5b80638456cb59146104f257806389fe2a7e146105075780638da5cb5b1461051c5780638dc654a21461053f57806394985ddd1461055457600080fd5b806342966c68116101d25780635c975abb116101965780635c975abb14610445578063621b320f1461045d5780636352211e1461047d57806370a082311461049d578063715018a6146104bd57806375edcbe0146104d257600080fd5b806342966c68146103b05780634768da0a146103d0578063484b973c146103e55780634f6ccce71461040557806355f804b31461042557600080fd5b806323b872dd1161021957806323b872dd1461032657806325f75235146103465780632f745c591461035b5780633f4ba83a1461037b57806342842e0e1461039057600080fd5b806301ffc9a71461025657806306fdde031461028b578063081812fc146102ad578063095ea7b3146102e557806318160ddd14610307575b600080fd5b34801561026257600080fd5b50610276610271366004613df1565b6107aa565b60405190151581526020015b60405180910390f35b34801561029757600080fd5b506102a06107bb565b60405161028291906140a7565b3480156102b957600080fd5b506102cd6102c8366004613e6f565b61084d565b6040516001600160a01b039091168152602001610282565b3480156102f157600080fd5b50610305610300366004613d89565b6108e7565b005b34801561031357600080fd5b506008545b604051908152602001610282565b34801561033257600080fd5b50610305610341366004613c9f565b6109fd565b34801561035257600080fd5b506102a0610a2f565b34801561036757600080fd5b50610318610376366004613d89565b610a4b565b34801561038757600080fd5b50610305610ae1565b34801561039c57600080fd5b506103056103ab366004613c9f565b610b1b565b3480156103bc57600080fd5b506103056103cb366004613e6f565b610b36565b3480156103dc57600080fd5b50610305610bb0565b3480156103f157600080fd5b50610305610400366004613d89565b610bef565b34801561041157600080fd5b50610318610420366004613e6f565b610c2d565b34801561043157600080fd5b50610305610440366004613e29565b610cce565b34801561045157600080fd5b5060105460ff16610276565b34801561046957600080fd5b50610305610478366004613eca565b610d11565b34801561048957600080fd5b506102cd610498366004613e6f565b610e22565b3480156104a957600080fd5b506103186104b8366004613c44565b610e99565b3480156104c957600080fd5b50610305610f20565b3480156104de57600080fd5b506103056104ed366004613dd0565b610f5a565b3480156104fe57600080fd5b50610305610f95565b34801561051357600080fd5b506102a0610fcd565b34801561052857600080fd5b5060105461010090046001600160a01b03166102cd565b34801561054b57600080fd5b50610305610fe9565b34801561056057600080fd5b5061030561056f366004613dd0565b611175565b34801561058057600080fd5b506102a06111f7565b610305610597366004613e6f565b611206565b3480156105a857600080fd5b506103056105b7366004613d5c565b61131d565b3480156105c857600080fd5b506103186113e2565b3480156105dd57600080fd5b506103186105ec366004613c44565b601c6020526000908152604090205481565b34801561060a57600080fd5b50610318610619366004613c44565b601d6020526000908152604090205481565b34801561063757600080fd5b50610305610646366004613e9f565b611464565b34801561065757600080fd5b50610305610666366004613cdf565b6114a2565b34801561067757600080fd5b506102a0610686366004613e6f565b6114da565b34801561069757600080fd5b506103186106a6366004613c44565b6001600160a01b03166000908152600d602052604090205490565b6103056106cf366004613eca565b6115b5565b3480156106e057600080fd5b506106f46106ef366004613e6f565b61171b565b60405161028291906141bc565b34801561070d57600080fd5b5061027661071c366004613c67565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561075657600080fd5b50610305610765366004613c44565b611a12565b34801561077657600080fd5b50610305610785366004613c44565b611a8d565b34801561079657600080fd5b506103056107a5366004613dd0565b611b2b565b60006107b582611b63565b92915050565b6060600080546107ca9061430f565b80601f01602080910402602001604051908101604052809291908181526020018280546107f69061430f565b80156108435780601f1061081857610100808354040283529160200191610843565b820191906000526020600020905b81548152906001019060200180831161082657829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108cb5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006108f282610e22565b9050806001600160a01b0316836001600160a01b031614156109605760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016108c2565b336001600160a01b038216148061097c575061097c813361071c565b6109ee5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016108c2565b6109f88383611b88565b505050565b610a08335b82611bf6565b610a245760405162461bcd60e51b81526004016108c29061416b565b6109f8838383611ced565b6040518060600160405280602b815260200161443d602b913981565b6000610a5683610e99565b8210610ab85760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016108c2565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6010546001600160a01b03610100909104163314610b115760405162461bcd60e51b81526004016108c290614136565b610b19611e98565b565b6109f8838383604051806020016040528060008152506114a2565b610b3f33610a02565b610ba45760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b60648201526084016108c2565b610bad81611f2b565b50565b6010546001600160a01b03610100909104163314610be05760405162461bcd60e51b81526004016108c290614136565b6013805460ff19166001179055565b6010546001600160a01b03610100909104163314610c1f5760405162461bcd60e51b81526004016108c290614136565b610c298282611fd2565b5050565b6000610c3860085490565b8210610c9b5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016108c2565b60088281548110610cbc57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6010546001600160a01b03610100909104163314610cfe5760405162461bcd60e51b81526004016108c290614136565b8051610c29906014906020840190613b35565b60105460ff1615610d345760405162461bcd60e51b81526004016108c29061410c565b336000908152601d60205260409020548390610d51908790614281565b1115610d915760405162461bcd60e51b815260206004820152600f60248201526e0c2dadeeadce840e8dede40d0d2ced608b1b60448201526064016108c2565b6017544211610dda5760405162461bcd60e51b81526020600482015260156024820152741dda1a5d195b1a5cdd081cd85b194818db1bdcd959605a1b60448201526064016108c2565b336000908152601d6020526040902054610df5908690614281565b336000908152601d6020526040902055601654610e1b90869086908690869086906120a8565b5050505050565b6000818152600260205260408120546001600160a01b0316806107b55760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016108c2565b60006001600160a01b038216610f045760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016108c2565b506001600160a01b031660009081526003602052604090205490565b6010546001600160a01b03610100909104163314610f505760405162461bcd60e51b81526004016108c290614136565b610b196000612188565b6010546001600160a01b03610100909104163314610f8a5760405162461bcd60e51b81526004016108c290614136565b601591909155601655565b6010546001600160a01b03610100909104163314610fc55760405162461bcd60e51b81526004016108c290614136565b610b196121e2565b6040518060600160405280602e815260200161440f602e913981565b6010546001600160a01b036101009091041633146110195760405162461bcd60e51b81526004016108c290614136565b7f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b031663a9059cbb6110606010546001600160a01b036101009091041690565b6040516370a0823160e01b81523060048201527f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316906370a082319060240160206040518083038186803b1580156110bf57600080fd5b505afa1580156110d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110f79190613e87565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561113d57600080fd5b505af1158015611151573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bad9190613db4565b336001600160a01b037f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795216146111ed5760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c0060448201526064016108c2565b610c29828261223a565b6060600180546107ca9061430f565b60105460ff16156112295760405162461bcd60e51b81526004016108c29061410c565b601954421161127a5760405162461bcd60e51b815260206004820152601760248201527f7075626c69632073616c65206e6f74207374617274656400000000000000000060448201526064016108c2565b60115461128790826142ad565b34146112c95760405162461bcd60e51b81526020600482015260116024820152701c185e5b595b9d081a5b98dbdc9c9958dd607a1b60448201526064016108c2565b600a8111156113135760405162461bcd60e51b81526020600482015260166024820152751b585e081d1e08185b5bdd5b9d08195e18d95959195960521b60448201526064016108c2565b610bad3382611fd2565b6001600160a01b0382163314156113765760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108c2565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6010546000906001600160a01b036101009091041633146114155760405162461bcd60e51b81526004016108c290614136565b61145f7faa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4457f0000000000000000000000000000000000000000000000001bc16d674ec8000061236a565b905090565b6010546001600160a01b036101009091041633146114945760405162461bcd60e51b81526004016108c290614136565b601792909255601855601955565b6114ac3383611bf6565b6114c85760405162461bcd60e51b81526004016108c29061416b565b6114d4848484846124f5565b50505050565b6000818152600260205260409020546060906001600160a01b03166115595760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016108c2565b6000601480546115689061430f565b90501161158457604051806020016040528060008152506107b5565b601461158f83612528565b6040516020016115a0929190613f9d565b60405160208183030381529060405292915050565b60105460ff16156115d85760405162461bcd60e51b81526004016108c29061410c565b601754421180156115ea575060185442105b61162e5760405162461bcd60e51b81526020600482015260156024820152741dda1a5d195b1a5cdd081cd85b194818db1bdcd959605a1b60448201526064016108c2565b60125461163b90866142ad565b341461167d5760405162461bcd60e51b81526020600482015260116024820152701c185e5b595b9d081a5b98dbdc9c9958dd607a1b60448201526064016108c2565b336000908152601c6020526040902054839061169a908790614281565b11156116da5760405162461bcd60e51b815260206004820152600f60248201526e0c2dadeeadce840e8dede40d0d2ced608b1b60448201526064016108c2565b336000908152601c60205260409020546116f5908690614281565b336000908152601c6020526040902055601554610e1b90869086908690869086906120a8565b6040805161014081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e081018290526101008101829052610120810191909152601a54158015906117be5750601a805483919061178b906001906142cc565b815481106117a957634e487b7160e01b600052603260045260246000fd5b90600052602060002090600202016001015410155b6117fd5760405162461bcd60e51b815260206004820152601060248201526f1b9bdd081c995d99585b1959081e595d60821b60448201526064016108c2565b60408051610140810182526000848152601b6020529190912054819060ff1661182e5761182984612642565b611841565b6000848152601b602052604090205460ff165b60ff90811682526000858152601b6020908152604090912054920191166118705761186b84612787565b611883565b6000848152601b602052604090205460ff165b60ff90811682526000858152601b6020908152604090912054920191166118b2576118ad846128a2565b6118c5565b6000848152601b602052604090205460ff165b60ff90811682526000858152601b6020908152604090912054920191166118f4576118ef84612a95565b611907565b6000848152601b602052604090205460ff165b60ff90811682526000858152601b6020908152604090912054920191166119365761193184612cd0565b611949565b6000848152601b602052604090205460ff165b60ff90811682526000858152601b6020908152604090912054920191166119785761197384612f40565b61198b565b6000848152601b602052604090205460ff165b60ff16815260200160656119a085600661318d565b6119aa919061437f565b60ff16815260200160656119bf85600761318d565b6119c9919061437f565b60ff16815260200160656119de85600861318d565b6119e8919061437f565b60ff16815260200160656119fd85600961318d565b611a07919061437f565b60ff16905292915050565b336001600160a01b0382161480611a4a575060105461010090046001600160a01b03166001600160a01b0316336001600160a01b0316145b611a845760405162461bcd60e51b815260206004820152600b60248201526a1b9bdd08185b1b1bddd95960aa1b60448201526064016108c2565b610bad81613269565b6010546001600160a01b03610100909104163314611abd5760405162461bcd60e51b81526004016108c290614136565b6001600160a01b038116611b225760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108c2565b610bad81612188565b6010546001600160a01b03610100909104163314611b5b5760405162461bcd60e51b81526004016108c290614136565b601255601155565b60006001600160e01b0319821663780e9d6360e01b14806107b557506107b58261343a565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611bbd82610e22565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611c6f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108c2565b6000611c7a83610e22565b9050806001600160a01b0316846001600160a01b03161480611cb55750836001600160a01b0316611caa8461084d565b6001600160a01b0316145b80611ce557506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611d0082610e22565b6001600160a01b031614611d685760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016108c2565b6001600160a01b038216611dca5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108c2565b611dd583838361348a565b611de0600082611b88565b6001600160a01b0383166000908152600360205260408120805460019290611e099084906142cc565b90915550506001600160a01b0382166000908152600360205260408120805460019290611e37908490614281565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60105460ff16611ee15760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016108c2565b6010805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6000611f3682610e22565b9050611f448160008461348a565b611f4f600083611b88565b6001600160a01b0381166000908152600360205260408120805460019290611f789084906142cc565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6122b881611fdf60085490565b611fe99190614281565b111561202d5760405162461bcd60e51b81526020600482015260136024820152721b585e081cdd5c1c1b1e48195e18d959591959606a1b60448201526064016108c2565b60135460ff161561206e5760405162461bcd60e51b815260206004820152600b60248201526a1b5a5b9d0818db1bdcd95960aa1b60448201526064016108c2565b60005b818110156109f8576120968361208660085490565b612091906001614281565b613495565b806120a081614344565b915050612071565b60408051602081018790526bffffffffffffffffffffffff193360601b1691810191909152605481018590526000906074016040516020818303038152906040528051906020012090506121328484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508692508591506135e39050565b6121755760405162461bcd60e51b815260206004820152601460248201527334b73b30b634b21036b2b935b63290383937b7b360611b60448201526064016108c2565b61217f3388611fd2565b50505050505050565b601080546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60105460ff16156122055760405162461bcd60e51b81526004016108c29061410c565b6010805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611f0e3390565b601a546123215760015b60108160ff161161231f576000805b8161230a57600061226360085490565b6040516001600160f81b031960f887901b16602082015260218101849052604181018790526061016040516020818303038152906040528051906020012060001c6122ae919061437f565b6122b9906001614281565b6000818152601b602052604090205490915060ff166122f6576000818152601b60205260409020805460ff191660ff861617905560019250612304565b8161230081614344565b9250505b50612253565b505080806123179061435f565b915050612244565b505b601a604051806040016040528083815260200161233d60085490565b90528154600181810184556000938452602093849020835160029093020191825592909101519101555050565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952848660006040516020016123da929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161240793929190614080565b602060405180830381600087803b15801561242157600080fd5b505af1158015612435573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124599190613db4565b506000838152600a6020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a0909101909252815191830191909120938790529190526124b5906001614281565b6000858152600a6020526040902055611ce58482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b612500848484611ced565b61250c848484846136a0565b6114d45760405162461bcd60e51b81526004016108c2906140ba565b60608161254c5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612576578061256081614344565b915061256f9050600a83614299565b9150612550565b60008167ffffffffffffffff81111561259f57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156125c9576020820181803683370190505b5090505b8415611ce5576125de6001836142cc565b91506125eb600a8661437f565b6125f6906030614281565b60f81b81838151811061261957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061263b600a86614299565b94506125cd565b6000806122b861265384600061318d565b61265d919061437f565b612668906001614281565b9050610125811161267c5750601192915050565b6101eb811161268e5750601292915050565b61032f81116126a05750601392915050565b61038f81116126b25750601492915050565b61071681116126c45750601592915050565b610dce81116126d65750601692915050565b61139581116126e85750601792915050565b6114ce81116126fa5750601892915050565b6115d6811161270c5750601992915050565b6116f4811161271e5750601a92915050565b6117ae81116127305750601b92915050565b61186881116127425750601c92915050565b611c2a81116127545750601d92915050565b611d0081116127665750601e92915050565b6121ea81116127785750601f92915050565b50602092915050565b50919050565b6000806122b861279884600161318d565b6127a2919061437f565b6127ad906001614281565b90506101e081116127c15750602192915050565b6104cf81116127d35750602292915050565b6109bc81116127e55750602392915050565b610acd81116127f75750602492915050565b610bc081116128095750602592915050565b610ccb811161281b5750602692915050565b610d55811161282d5750602792915050565b610ecd811161283f5750602892915050565b61102181116128515750602992915050565b6119a181116128635750602a92915050565b611c4181116128755750602b92915050565b611ede81116128875750602c92915050565b611fcc81116128995750602d92915050565b50602e92915050565b6000806122b86128b384600261318d565b6128bd919061437f565b6128c8906001614281565b90506104df81116128dc5750602f92915050565b6105f581116128ee5750603092915050565b61087281116129005750603192915050565b6109ac81116129125750603292915050565b610aed81116129245750603392915050565b610c5d81116129365750603492915050565b610cf181116129485750603592915050565b610ddb811161295a5750603692915050565b610eec811161296c5750603792915050565b610fa7811161297e5750603892915050565b61109f81116129905750603992915050565b6111ea81116129a25750603a92915050565b61133181116129b45750603b92915050565b61141e81116129c65750603c92915050565b61150a81116129d85750603d92915050565b61168481116129ea5750603e92915050565b61175381116129fc5750603f92915050565b6117c88111612a0e5750604092915050565b6119478111612a205750604192915050565b611aa18111612a325750604292915050565b611d888111612a445750604392915050565b611f0d8111612a565750604492915050565b611fb18111612a685750604592915050565b61208c8111612a7a5750604692915050565b6121d28111612a8c5750604792915050565b50604892915050565b6000806122b8612aa684600361318d565b612ab0919061437f565b612abb906001614281565b905061037d8111612acf5750604992915050565b6104038111612ae15750604a92915050565b61047c8111612af35750604b92915050565b6105b88111612b055750604c92915050565b61073b8111612b175750604d92915050565b6107fc8111612b295750604e92915050565b6108c08111612b3b5750604f92915050565b6109208111612b4d5750605092915050565b6109ab8111612b5f5750605192915050565b610a358111612b715750605292915050565b610a648111612b835750605392915050565b610b258111612b955750605492915050565b610c3c8111612ba75750605592915050565b610db98111612bb95750605692915050565b610f658111612bcb5750605792915050565b6112e48111612bdd5750605892915050565b6113d78111612bef5750605992915050565b61152b8111612c015750605a92915050565b6115d28111612c135750605b92915050565b6117798111612c255750605c92915050565b61182c8111612c375750605d92915050565b6119538111612c495750605e92915050565b611ccd8111612c5b5750605f92915050565b611dd28111612c6d5750606092915050565b611e208111612c7f5750606192915050565b611f678111612c915750606292915050565b61203d8111612ca35750606392915050565b6121e38111612cb55750606492915050565b6122648111612cc75750606592915050565b50606692915050565b6000806122b8612ce184600461318d565b612ceb919061437f565b612cf6906001614281565b905060488111612d095750606792915050565b6101138111612d1b5750606892915050565b6102228111612d2d5750606992915050565b61030f8111612d3f5750606a92915050565b6104fc8111612d515750606b92915050565b6106528111612d635750606c92915050565b61069a8111612d755750606d92915050565b61080a8111612d875750606e92915050565b61089d8111612d995750606f92915050565b6109d68111612dab5750607092915050565b610a608111612dbd5750607192915050565b610b428111612dcf5750607292915050565b610d628111612de15750607392915050565b610f4a8111612df35750607492915050565b610fe98111612e055750607592915050565b61103f8111612e175750607692915050565b6111558111612e295750607792915050565b6112ac8111612e3b5750607892915050565b61138c8111612e4d5750607992915050565b6114d88111612e5f5750607a92915050565b6116208111612e715750607b92915050565b6117198111612e835750607c92915050565b6119018111612e955750607d92915050565b611a608111612ea75750607e92915050565b611afd8111612eb95750607f92915050565b611b3c8111612ecb5750608092915050565b611bcc8111612edd5750608192915050565b611cba8111612eef5750608292915050565b611dad8111612f015750608392915050565b611e9c8111612f135750608492915050565b611f298111612f255750608592915050565b6120848111612f375750608692915050565b50608792915050565b6000806122b8612f5184600561318d565b612f5b919061437f565b612f66906001614281565b90506101738111612f7a5750608892915050565b6104af8111612f8c5750608992915050565b6105a58111612f9e5750608a92915050565b6107a28111612fb05750608b92915050565b6108358111612fc25750608c92915050565b6108b18111612fd45750608d92915050565b610c0e8111612fe65750608e92915050565b610caf8111612ff85750608f92915050565b610d3a811161300a5750609092915050565b610dcc811161301c5750609192915050565b610e4f811161302e5750609292915050565b610fdd81116130405750609392915050565b61110481116130525750609492915050565b61116f81116130645750609592915050565b6112c281116130765750609692915050565b61147b81116130885750609792915050565b611684811161309a5750609892915050565b6117d581116130ac5750609992915050565b61186681116130be5750609a92915050565b6118e381116130d05750609b92915050565b6119df81116130e25750609c92915050565b611a7481116130f45750609d92915050565b611b1781116131065750609e92915050565b611d1681116131185750609f92915050565b611d45811161312a575060a092915050565b611d8c811161313c575060a192915050565b611e61811161314e575060a292915050565b611f048111613160575060a392915050565b61202c8111613172575060a492915050565b6120f18111613184575060a592915050565b5060a692915050565b6000805b601a5481101561325f5783601a82815481106131bd57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060020201600101541061324d578383601a83815481106131f757634e487b7160e01b600052603260045260246000fd5b90600052602060002090600202016000015460405160200161322c939291909283526020830191909152604082015260600190565b6040516020818303038152906040528051906020012060001c9150506107b5565b8061325781614344565b915050613191565b5060009392505050565b6001600160a01b0381166000908152600d60205260409020546132dd5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084016108c2565b6000600c54476132ed9190614281565b6001600160a01b0383166000908152600e6020908152604080832054600b54600d90935290832054939450919261332490856142ad565b61332e9190614299565b61333891906142cc565b90508061339b5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b60648201526084016108c2565b6001600160a01b0383166000908152600e60205260409020546133bf908290614281565b6001600160a01b0384166000908152600e6020526040902055600c546133e6908290614281565b600c556133f383826137aa565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b60006001600160e01b031982166380ac58cd60e01b148061346b57506001600160e01b03198216635b5e139f60e01b145b806107b557506301ffc9a760e01b6001600160e01b03198316146107b5565b6109f88383836138c3565b6001600160a01b0382166134eb5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108c2565b6000818152600260205260409020546001600160a01b0316156135505760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108c2565b61355c6000838361348a565b6001600160a01b0382166000908152600360205260408120805460019290613585908490614281565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600081815b855181101561369557600086828151811061361357634e487b7160e01b600052603260045260246000fd5b60200260200101519050808311613655576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250613682565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061368d81614344565b9150506135e8565b509092149392505050565b60006001600160a01b0384163b156137a257604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906136e4903390899088908890600401614043565b602060405180830381600087803b1580156136fe57600080fd5b505af192505050801561372e575060408051601f3d908101601f1916820190925261372b91810190613e0d565b60015b613788573d80801561375c576040519150601f19603f3d011682016040523d82523d6000602084013e613761565b606091505b5080516137805760405162461bcd60e51b81526004016108c2906140ba565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611ce5565b506001611ce5565b804710156137fa5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016108c2565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114613847576040519150601f19603f3d011682016040523d82523d6000602084013e61384c565b606091505b50509050806109f85760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016108c2565b6001600160a01b03831661391e5761391981600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613941565b816001600160a01b0316836001600160a01b03161461394157613941838261397b565b6001600160a01b038216613958576109f881613a18565b826001600160a01b0316826001600160a01b0316146109f8576109f88282613af1565b6000600161398884610e99565b61399291906142cc565b6000838152600760205260409020549091508082146139e5576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613a2a906001906142cc565b60008381526009602052604081205460088054939450909284908110613a6057634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110613a8f57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613ad557634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613afc83610e99565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054613b419061430f565b90600052602060002090601f016020900481019282613b635760008555613ba9565b82601f10613b7c57805160ff1916838001178555613ba9565b82800160010185558215613ba9579182015b82811115613ba9578251825591602001919060010190613b8e565b50613bb5929150613bb9565b5090565b5b80821115613bb55760008155600101613bba565b600067ffffffffffffffff80841115613be957613be96143bf565b604051601f8501601f19908116603f01168101908282118183101715613c1157613c116143bf565b81604052809350858152868686011115613c2a57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215613c55578081fd5b8135613c60816143d5565b9392505050565b60008060408385031215613c79578081fd5b8235613c84816143d5565b91506020830135613c94816143d5565b809150509250929050565b600080600060608486031215613cb3578081fd5b8335613cbe816143d5565b92506020840135613cce816143d5565b929592945050506040919091013590565b60008060008060808587031215613cf4578081fd5b8435613cff816143d5565b93506020850135613d0f816143d5565b925060408501359150606085013567ffffffffffffffff811115613d31578182fd5b8501601f81018713613d41578182fd5b613d5087823560208401613bce565b91505092959194509250565b60008060408385031215613d6e578182fd5b8235613d79816143d5565b91506020830135613c94816143ea565b60008060408385031215613d9b578182fd5b8235613da6816143d5565b946020939093013593505050565b600060208284031215613dc5578081fd5b8151613c60816143ea565b60008060408385031215613de2578182fd5b50508035926020909101359150565b600060208284031215613e02578081fd5b8135613c60816143f8565b600060208284031215613e1e578081fd5b8151613c60816143f8565b600060208284031215613e3a578081fd5b813567ffffffffffffffff811115613e50578182fd5b8201601f81018413613e60578182fd5b611ce584823560208401613bce565b600060208284031215613e80578081fd5b5035919050565b600060208284031215613e98578081fd5b5051919050565b600080600060608486031215613eb3578081fd5b505081359360208301359350604090920135919050565b600080600080600060808688031215613ee1578283fd5b853594506020860135935060408601359250606086013567ffffffffffffffff80821115613f0d578283fd5b818801915088601f830112613f20578283fd5b813581811115613f2e578384fd5b8960208260051b8501011115613f42578384fd5b9699959850939650602001949392505050565b60008151808452613f6d8160208601602086016142e3565b601f01601f19169290920160200192915050565b60008151613f938185602086016142e3565b9290920192915050565b600080845482600182811c915080831680613fb957607f831692505b6020808410821415613fd957634e487b7160e01b87526022600452602487fd5b818015613fed5760018114613ffe5761402a565b60ff1986168952848901965061402a565b60008b815260209020885b868110156140225781548b820152908501908301614009565b505084890196505b50505050505061403a8185613f81565b95945050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061407690830184613f55565b9695505050505050565b60018060a01b038416815282602082015260606040820152600061403a6060830184613f55565b602081526000613c606020830184613f55565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b815160ff168152610140810160208301516141dc602084018260ff169052565b5060408301516141f1604084018260ff169052565b506060830151614206606084018260ff169052565b50608083015161421b608084018260ff169052565b5060a083015161423060a084018260ff169052565b5060c083015161424560c084018260ff169052565b5060e083015161425a60e084018260ff169052565b506101008381015160ff908116918401919091526101209384015116929091019190915290565b6000821982111561429457614294614393565b500190565b6000826142a8576142a86143a9565b500490565b60008160001904831182151516156142c7576142c7614393565b500290565b6000828210156142de576142de614393565b500390565b60005b838110156142fe5781810151838201526020016142e6565b838111156114d45750506000910152565b600181811c9082168061432357607f821691505b6020821081141561278157634e487b7160e01b600052602260045260246000fd5b600060001982141561435857614358614393565b5060010190565b600060ff821660ff81141561437657614376614393565b60010192915050565b60008261438e5761438e6143a9565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610bad57600080fd5b8015158114610bad57600080fd5b6001600160e01b031981168114610bad57600080fdfe516d5674584365345759326d58484b6d4c63534e7a736b7957534c413638614151774e6977644436546b6f5855414b706a4e596a71577751667579786431397854324d465931626a6962717046756e5376624d444f4b4f5a6ba264697066735822122078f4cf812dd20ee03246b6fc52beed260713be7341f4b59048c8df18a08145d864736f6c63430008040033

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

0000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000380000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec80000000000000000000000000000000000000000000000000000000000000000000b457870616e6461626c6573000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000550414e44410000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d57336f6434663938566e716f45587656426155505a4b615142676438697947363456395350414174726357622f00000000000000000000000000000000000000000000000000000000000000000000000000000000000b000000000000000000000000a97ecb80ec1fce3b15b528e708ed148c6761027c00000000000000000000000099ac4d2195ee34d0f56ec5930d3248015908086e000000000000000000000000be1edab7f5fc7d58bf5d1225b7b608a797f9d11d0000000000000000000000005b92a53e91495052b7849ea585bec7e99c75293b00000000000000000000000096b2aee8dce1746d3341651f8fbcf007afde7e1900000000000000000000000086626b7c0cd3500439e2df43d4789d0466b925b5000000000000000000000000e7fff33d78fd81fa0bfdca008695e125c3710ef8000000000000000000000000cfea8e38ad74ab181c20988166b8d74f8da22ef90000000000000000000000000c666d38505b06ab6170536dc0ce6c55a6825df70000000000000000000000001b44d6dcea0efc25cdeda6caaacb0d1721ba37c6000000000000000000000000dcda62083d7996bc4587e1a5522395824803d6ed000000000000000000000000000000000000000000000000000000000000000b000000000000000000000000000000000000000000000000000000000000002800000000000000000000000000000000000000000000000000000000000000280000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000019000000000000000000000000000000000000000000000000000000000000000f0000000000000000000000000000000000000000000000000000000000000002800000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000023000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000005

-----Decoded View---------------
Arg [0] : _name (string): Expandables
Arg [1] : _symbol (string): PANDA
Arg [2] : _baseTokenURI (string): ipfs://QmW3od4f98VnqoEXvVBaUPZKaQBgd8iyG64V9SPAAtrcWb/
Arg [3] : payees (address[]): 0xa97eCB80Ec1fce3B15B528e708ED148C6761027C,0x99Ac4d2195EE34D0f56EC5930d3248015908086e,0xBe1EDAb7F5fC7d58Bf5d1225B7b608a797f9d11d,0x5b92a53E91495052B7849EA585Bec7E99c75293B,0x96b2aeE8DcE1746d3341651F8fBCF007aFDe7e19,0x86626b7c0Cd3500439e2DF43D4789d0466b925B5,0xe7ffF33d78FD81FA0Bfdca008695e125c3710EF8,0xCfea8e38ad74AB181C20988166b8d74f8dA22ef9,0x0C666d38505B06aB6170536Dc0cE6c55A6825df7,0x1B44d6dceA0eFC25cDedA6CAAaCB0D1721ba37C6,0xdcdA62083D7996bc4587e1a5522395824803D6eD
Arg [4] : shares_ (uint256[]): 40,40,100,400,240,40,50,35,30,20,5
Arg [5] : _vrfCoordinator (address): 0xf0d54349aDdcf704F77AE15b96510dEA15cb7952
Arg [6] : _linkToken (address): 0x514910771AF9Ca656af840dff83E8264EcF986CA
Arg [7] : _keyHash (bytes32): 0xaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [8] : _fee (uint256): 2000000000000000000

-----Encoded View---------------
40 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000200
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000380
Arg [5] : 000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952
Arg [6] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [7] : aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [8] : 0000000000000000000000000000000000000000000000001bc16d674ec80000
Arg [9] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [10] : 457870616e6461626c6573000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [12] : 50414e4441000000000000000000000000000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [14] : 697066733a2f2f516d57336f6434663938566e716f45587656426155505a4b61
Arg [15] : 5142676438697947363456395350414174726357622f00000000000000000000
Arg [16] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [17] : 000000000000000000000000a97ecb80ec1fce3b15b528e708ed148c6761027c
Arg [18] : 00000000000000000000000099ac4d2195ee34d0f56ec5930d3248015908086e
Arg [19] : 000000000000000000000000be1edab7f5fc7d58bf5d1225b7b608a797f9d11d
Arg [20] : 0000000000000000000000005b92a53e91495052b7849ea585bec7e99c75293b
Arg [21] : 00000000000000000000000096b2aee8dce1746d3341651f8fbcf007afde7e19
Arg [22] : 00000000000000000000000086626b7c0cd3500439e2df43d4789d0466b925b5
Arg [23] : 000000000000000000000000e7fff33d78fd81fa0bfdca008695e125c3710ef8
Arg [24] : 000000000000000000000000cfea8e38ad74ab181c20988166b8d74f8da22ef9
Arg [25] : 0000000000000000000000000c666d38505b06ab6170536dc0ce6c55a6825df7
Arg [26] : 0000000000000000000000001b44d6dcea0efc25cdeda6caaacb0d1721ba37c6
Arg [27] : 000000000000000000000000dcda62083d7996bc4587e1a5522395824803d6ed
Arg [28] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [29] : 0000000000000000000000000000000000000000000000000000000000000028
Arg [30] : 0000000000000000000000000000000000000000000000000000000000000028
Arg [31] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [32] : 0000000000000000000000000000000000000000000000000000000000000190
Arg [33] : 00000000000000000000000000000000000000000000000000000000000000f0
Arg [34] : 0000000000000000000000000000000000000000000000000000000000000028
Arg [35] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [36] : 0000000000000000000000000000000000000000000000000000000000000023
Arg [37] : 000000000000000000000000000000000000000000000000000000000000001e
Arg [38] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [39] : 0000000000000000000000000000000000000000000000000000000000000005


Loading...
Loading
Loading...
Loading
[ 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.