ETH Price: $2,525.44 (+0.34%)

Token

Pass the Baton (BATON)
 

Overview

Max Total Supply

0 BATON

Holders

516

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
nitrous9.eth
Balance
10 BATON
0x98cb6107a67da3375f16c304aeffe1fcc0b1239f
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:
Batons

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 22 : Batons-arithmetic.sol
// SPDX-License-Identifier: GPL-3.0-or-later

//         .;.
//      'lo;;c:.
//   .;lcokkocdkl'...................................................
//  .dXN0dld0KOl;oxxdddddddddddddddddddddddddddddddddddddddddddddddol'
// .cxkKNXK0xoxko:oOOkxxxxkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkdoc:'
//  .;lxk0XN0dldOK0o;oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOxl:;::'
//    .;oxkKNX00kdxkolxk00000000KKKKKKKKKKKKKKKKKKKKKKKKKKKK0kl;,;;::'
//      cOkx0XXNKxldO0k:,okkKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXKkl,'',,;::'
//      cKKK0kk0NN0xooxko,.:dOKNNNNNNNNNNNNNNNNNNNNNNNNNXOc'..'',,;::'
//      cKKXXKkxkKNNKxllxocxkc;o0NNNNNNNNNNNNNNNNNNNNNNOc'....'',,;::'
//      cKKXNNNKkxkKNNKxc:d00o;:lkKNNWWWNNNNNNNNNNNWNOc.......'',,;;:'
//      cKKXNNNWWKkdxOK0xxkxxOKdc::oKNWWWWWWWNNNNWNk:.........'',,;;:'
//      cKKXNNWWWWNOxx0XNN0o;,'.. .cdxOXNWWWWWWWXk:...........'',,;;:'
//      cKXXNNWWWWWWXOx0WNo.  ....l0x''cd0NWWWXk:.............'',,;;:.
//      cKXXNNWWWWMMWKdkXx.  .;,.:xOOdlclok0Xk;................',,;;:'
//      cKXXNNWWWWWWMMWWKc  .':lxOOxxko:;,',dd'................',,;;:'
//      cKXXNNWWWWMMMMMMW0xdd0NWWNx,..     ;do,................',,;;:'
//      cKXXNNWWWWWMMMMMMMMW0oo0WO'  .','.,k0l.'::,............',,;;:'
//      cKXXNNWWWWMMMMMMMMMMW0kK0;   ';,.,dkkkkdlodl;..........'',;;:'
//      cKXXNNWWWWMMMMMMMMMMMMWWO,..':odx00kdoo:'..:xc.........'',;;:'
//      cKXXNNWWWWMMMMMMMMMMMWMNOodkkKNNWWKc.. ...'od:.........'',;;:'
//      cKXXNNWWWWMMMMMMMMMMMW0dc:col:d0XXc. .;c,.lKOc,:ll;....'',;;:'
//      cKXXNNNWWWMMMMMMMMMWKdc:::::::xKKo.  .:;,lkxk0Oocc;....'',;;:'
//      cKXXNNNWWWMMMMMMMWKxlccc::::::cloc,,,cx0KX0d::,..   ...'',;;:'
//      cKKXXNNWWWMMMMMWKxlcccc:::::::::::okkxkKWNd.  ..;:'.':,'',;;:'
//      cKKXXNNWWWWMMWXklcccccc::::::::::;;::,:kXx..'oxxkOko,,cl:,;;:'
//      cKKXXNNWWWWWXklcccccccc::::::::::::;;;lOk, .cXWXOkxkko,cxdc;:'
//      cKKXXNNWWWXkocccccccccccc:::::::::::;;;cc'..,ckNNK0kxkOkdldxo'
//      cKKXXNNNXkocccccccccccccccccc::::::::::;;;,;lllOXXNKOOOOkxxdoc.
//      cKKXXXKOdlllllllcccccccccccccccccc::::::::::;lkOddKNNKOkOOOd,,cc.
//      cKKKKOdolllllllllllcccccccccccccccccc::::::::::ldOOxONXXOxxkkodxo;.
//      c00kdoooooollllllllllccccccccccccccccccccccccccccoddkkkXNKkxxO0x;'.
//      ;dlllccccccccccc:::::::::::::::::::::::::::::::::::ldo:ckNN0kxxo'
//                                                           .:c:ckNXo'
//                                                             .:c,;,.
//                                                               ..

pragma solidity ^0.8.0;

import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "@openzeppelin/contracts/interfaces/IERC2981.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

// Ownable is required by OpenSea.
contract Batons is
    ERC721,
    VRFConsumerBase,
    ReentrancyGuard,
    IERC2981,
    Ownable,
    AccessControl
{
    using Strings for uint256; // enables number.toString()

    uint256 public constant BATONS_PER_GROUP = 1968;
    uint256 public constant CHARITY_GROUPS = 4;
    uint256 public constant MAX_BATON_SUPPLY =
        BATONS_PER_GROUP * CHARITY_GROUPS;
    uint256 public constant SALE_PRICE = 0.1 ether;
    uint256 public constant MAX_AMOUNT_PER_MINT = 4;
    string private constant CONTRACT_METADATA_URI =
        "ipfs://QmWHCVAykdMdUYEcqrCSgMUQjZXFEvNLDBfwLW3vEQFhfj";

    // Create a new role identifier for the treasurer role.
    bytes32 public constant TREASURER_ROLE = keccak256("TREASURER_ROLE");

    uint256 public constant BRONZE_UPGRADE = 0.5 ether;
    uint256 public constant SILVER_UPGRADE = 2.5 ether;
    uint256 public constant GOLD_UPGRADE = 7.5 ether;
    uint256 public constant CHARITY_SALES_PCT = 30;
    uint256 constant ROYALTY_PERCENT_BIPS = 750; // = 7.5%

    // The numbers of batons minted non-publicly, e.g., advisors and early
    // birds, by each wallet address. Note that `balanceOf()` cannot substitute
    // these state variables due to the mint-and-transfer hack.
    mapping(address => mapping(uint256 => uint256)) private _advisorMints;
    mapping(address => mapping(uint256 => uint256)) private _earlyBirdMints;

    function getBatonDonation(uint256 _tokenId)
        external
        view
        returns (uint256)
    {
        return batonDonations[_tokenId];
    }

    function getAdvisorMints(address _advisor, uint256 _charityGroup)
        external
        view
        returns (uint256)
    {
        return _advisorMints[_advisor][_charityGroup];
    }

    function getEarlyBirdMints(address _earlyBird, uint256 _charityGroup)
        external
        view
        returns (uint256)
    {
        return _earlyBirdMints[_earlyBird][_charityGroup];
    }

    modifier onlyAdmin() {
        require(
            hasRole(DEFAULT_ADMIN_ROLE, msg.sender),
            "Caller is not the admin"
        );
        _;
    }

    modifier onlyTreasurer() {
        require(
            hasRole(TREASURER_ROLE, msg.sender),
            "Caller is not the treasurer"
        );
        _;
    }

    bytes32 private immutable vrfKeyHash;
    uint256 private immutable vrfFee; // in LINK.

    /**
     * @param _vrfCoordinator Address of the Chainlink VRF Coordinator. See [Chainlink VRF Addresses](https://docs.chain.link/docs/vrf-contracts/) for details.
     * @param _link Address of the LINK token. See [LINK Token Addresses](https://docs.chain.link/docs/link-token-contracts/) for details.
     * @param _vrfKeyHash The public key against which randomness is generated. See [Chainlink VRF Addresses](https://docs.chain.link/docs/vrf-contracts/) for details.
     * @param _vrfFee The fee, in LINK, for the request. Specified by the oracle.
     */
    constructor(
        address _vrfCoordinator,
        address _link,
        bytes32 _vrfKeyHash,
        uint256 _vrfFee,
        address _treasurer
    )
        VRFConsumerBase(_vrfCoordinator, _link)
        ERC721("Pass the Baton", "BATON")
    {
        // We need to make sure that the treasurer is different from the admin
        // (deployer). If not, there'll be no treasurer when the admin calls
        // `renounceAdmin()` because it revokes all of their roles. Nobody can
        // grant the treasurer role ever again once the admin role is renounced.
        require(
            _treasurer != msg.sender,
            "Treasurer should be different from deployer"
        );
        vrfKeyHash = _vrfKeyHash;
        vrfFee = _vrfFee;
        // Grant the contract deployer the default admin role: it will be able
        // to grant and revoke any roles. Note that _setupRole() is for
        // constructor only. Use grantRole() outside of the constructor.
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
        // Grant the deployer the treasurer role as well.
        _setupRole(TREASURER_ROLE, msg.sender);
        // Grant the treasurer the treasurer role.
        _setupRole(TREASURER_ROLE, _treasurer);
    }

    // Once the admin renounces their roles, nobody can grant someone the
    // treasurer role ever again. Even the treasurer cannot.
    function renounceAdmin() external onlyAdmin {
        require(saleState == State.LIVE, "Admin required to start sale");
        renounceRole(DEFAULT_ADMIN_ROLE, msg.sender);
        renounceRole(TREASURER_ROLE, msg.sender);
        if (owner() == msg.sender) {
            renounceOwnership();
        }
    }

    // For when the constructor granted a wrong user the treasurer role.
    function grantTreasurer(address _treasurer) external onlyAdmin {
        grantRole(TREASURER_ROLE, _treasurer);
    }

    // For when the constructor granted a wrong user the treasurer role.
    function revokeTreasurer(address _treasurer) external onlyAdmin {
        revokeRole(TREASURER_ROLE, _treasurer);
    }

    /* CHARITY GROUPS AND PAYMENT SPLITTERS */
    PaymentSplitter[CHARITY_GROUPS + 1] private charityGroupSplitters;
    PaymentSplitter private artistAndDevSplitter;
    PaymentSplitter private royaltySplitter;

    /* STATE, SALES, AND PRESALES */
    enum State {
        ADVISOR_SALE, // Only advisors can mint
        PRESALE, // 12 hour presale window for earlybirds and advisors
        LIVE // sale
    }
    State public saleState = State.ADVISOR_SALE;
    bytes32 private advisorMerkleRoot; // redeem for free
    bytes32 private earlybirdMerkleRoot; // redeem early
    uint256[CHARITY_GROUPS + 1] private nextMintIdx; // holds the index of the next token to mint in each charity group, 0 <= nextMintIdx[i] < 1968

    // Returns the number of batons mintable in the given charity group.
    function numMintableBatons(uint256 _charityGroup)
        external
        view
        returns (uint256)
    {
        return BATONS_PER_GROUP - nextMintIdx[_charityGroup];
    }

    /**
     * internal function that keeps track of pointers within charity groups and prevents out-of-bounds
     * @param _charityGroup - the charityGroup
     * @dev payment is to be handled by each caller
     */
    function _mintToCharityGroup(
        uint256 _charityGroup,
        address _recipient,
        uint256 _amountToMint
    ) internal returns (uint256 firstTokenId) {
        require(
            0 < _amountToMint &&
                _amountToMint <= BATONS_PER_GROUP - nextMintIdx[_charityGroup],
            "Charity Group is sold out"
        );
        firstTokenId =
            _charityGroup *
            BATONS_PER_GROUP +
            nextMintIdx[_charityGroup];
        for (uint256 i = 0; i < _amountToMint; ++i) {
            _safeMint(_recipient, firstTokenId + i);
        }
        nextMintIdx[_charityGroup] += _amountToMint;
    }

    /**
     * free reserved batons for handful of advisors and artist
     */
    function mintAdvisor(
        address _advisor,
        uint256 _charityGroup,
        uint256 _maxMints,
        bytes32[] calldata _merkleProof,
        uint256 _amountToMint
    ) external nonReentrant onlyMintableGroup(_charityGroup) {
        bytes32 node = getMerkleLeaf(_advisor, _charityGroup, _maxMints);
        require(
            MerkleProof.verify(_merkleProof, advisorMerkleRoot, node),
            "Invalid Merkle proof"
        );
        require(
            _advisorMints[_advisor][_charityGroup] + _amountToMint <= _maxMints,
            "Tried to mint too many"
        );
        _advisorMints[_advisor][_charityGroup] += _amountToMint;
        _mintToCharityGroup(_charityGroup, _advisor, _amountToMint);
    }

    /**
     * Supporters will have the opportunity to mint batons
     * during the presale. Once the public sale is live, they'd
     * just have to mint like everyone else.
     */
    function mintEarlybird(
        address _supporter,
        uint256 _charityGroup,
        uint256 _maxMints,
        bytes32[] calldata _merkleProof,
        uint256 _amountToMint
    ) external payable nonReentrant onlyMintableGroup(_charityGroup) {
        require(saleState != State.ADVISOR_SALE, "Presale hasn't started");
        require(
            address(charityGroupSplitters[_charityGroup]) != address(0) &&
                address(artistAndDevSplitter) != address(0),
            "PaymentSplitters not set"
        );
        require(msg.value == SALE_PRICE * _amountToMint, "Wrong ETHs received");
        bytes32 node = getMerkleLeaf(_supporter, _charityGroup, _maxMints);
        require(
            MerkleProof.verify(_merkleProof, earlybirdMerkleRoot, node),
            "Invalid Merkle proof"
        );
        require(
            _earlyBirdMints[_supporter][_charityGroup] + _amountToMint <=
                _maxMints,
            "Tried to mint too many"
        );
        _earlyBirdMints[_supporter][_charityGroup] += _amountToMint;
        // Pay the charity group.
        uint256 amountToCharityGroup = (msg.value * CHARITY_SALES_PCT) / 100;
        (bool sent, ) = address(charityGroupSplitters[_charityGroup]).call{
            value: amountToCharityGroup
        }("");
        require(sent, "Payment failed");
        // Pay the artist and dev teams.
        (sent, ) = address(artistAndDevSplitter).call{
            value: msg.value - amountToCharityGroup
        }("");
        require(sent, "Payment failed");
        _mintToCharityGroup(_charityGroup, _supporter, _amountToMint);
    }

    function mintPublic(uint256 _charityGroup, uint256 _amountToMint)
        external
        payable
        nonReentrant
        onlyMintableGroup(_charityGroup)
    {
        require(saleState == State.LIVE, "Sale state isn't LIVE");
        require(
            address(charityGroupSplitters[_charityGroup]) != address(0) &&
                address(artistAndDevSplitter) != address(0),
            "PaymentSplitters not set"
        );
        require(
            _amountToMint <= MAX_AMOUNT_PER_MINT,
            "Tried to mint too many per request"
        );
        require(msg.value == SALE_PRICE * _amountToMint, "Wrong ETHs received");
        // Pay the charity group.
        uint256 amountToCharityGroup = (msg.value * CHARITY_SALES_PCT) / 100;
        (bool sent, ) = address(charityGroupSplitters[_charityGroup]).call{
            value: amountToCharityGroup
        }("");
        require(sent, "Payment failed");
        // Pay the artist and dev teams.
        (sent, ) = address(artistAndDevSplitter).call{
            value: msg.value - amountToCharityGroup
        }("");
        require(sent, "Payment failed");
        _mintToCharityGroup(_charityGroup, msg.sender, _amountToMint);
    }

    /* SALE LIFECYCLE */
    function stopSale() external onlyAdmin {
        require(saleState != State.ADVISOR_SALE, "Sale state is ADVISOR_SALE");
        saleState = State.ADVISOR_SALE;
    }

    function startPresale() external onlyAdmin {
        require(
            saleState == State.ADVISOR_SALE,
            "Sale state isn't ADVISOR_SALE"
        );
        require(
            address(royaltySplitter) != address(0),
            "Configure payment splitters"
        );
        saleState = State.PRESALE;
    }

    function startSale() external onlyAdmin {
        require(saleState == State.PRESALE, "Sale state isn't PRESALE");
        saleState = State.LIVE;
    }

    /* RANDOMIZATION AND REVEALING METADATA */
    uint256 private randomOffset; // random result % 1968
    string private baseURI =
        "ipfs://QmZP6G4ddkh8XcTAbeStDRox3e2msNaKWNEAk3dagjbJ1T/"; // an ipfs:// URL ending in a slash

    /**
     * @param _ipfsBase MUST end in a slash (/).
     */
    function revealMetadata(string memory _ipfsBase)
        public
        onlyAdmin
        returns (bytes32)
    {
        require(LINK.balanceOf(address(this)) >= vrfFee, "Not enough LINK");
        baseURI = _ipfsBase;
        return requestRandomness(vrfKeyHash, vrfFee);
    }

    function fulfillRandomness(
        bytes32, /*requestId*/
        uint256 randomness
    ) internal override {
        randomOffset = randomness % MAX_BATON_SUPPLY;
    }

    function assetIdForToken(uint256 _tokenId)
        public
        view
        returns (uint256 assetId)
    {
        uint256 charityGroup = _tokenId / BATONS_PER_GROUP;
        uint256 offset = (_tokenId + randomOffset) % BATONS_PER_GROUP;
        assetId = charityGroup * BATONS_PER_GROUP + offset;
    }

    function charityGroupForToken(uint256 _tokenId)
        public
        pure
        returns (uint256)
    {
        return _tokenId / BATONS_PER_GROUP;
    }

    /* DONATIONS & EVOLUTIONS */
    uint256[MAX_BATON_SUPPLY + BATONS_PER_GROUP] private batonDonations; // per baton - with an extra slot for final batons

    event Donated(
        uint256 indexed tokenId,
        address indexed donor,
        uint256 amount
    );

    /**
     * Determine how "upgraded" the token is for use in `tokenURI`.
     * Upgrades come from donations
     */
    function getEvolutionLevel(uint256 _tokenId) public view returns (uint256) {
        require(
            0 <= charityGroupForToken(_tokenId) &&
                charityGroupForToken(_tokenId) < CHARITY_GROUPS,
            "Final batons don't evolve"
        );
        uint256 amountDonated = batonDonations[_tokenId];
        if (amountDonated >= GOLD_UPGRADE) {
            return 3;
        } else if (amountDonated >= SILVER_UPGRADE) {
            return 2;
        } else if (amountDonated >= BRONZE_UPGRADE) {
            return 1;
        } else {
            // default non-upgraded state
            return 0;
        }
    }

    function donate(uint256 _tokenId) external payable nonReentrant {
        require(
            msg.sender == ownerOf(_tokenId),
            "You must own the baton to donate"
            /* ownerOf also asserts that _exists(_tokenId) */
        );
        uint256 charityGroup = charityGroupForToken(_tokenId);
        // An advisor can mint batons and donate to them even before the
        // PaymentSplitters are set.
        require(
            address(charityGroupSplitters[charityGroup]) != address(0),
            "PaymentSplitters not set"
        );
        batonDonations[_tokenId] += msg.value;
        (bool sent, ) = address(charityGroupSplitters[charityGroup]).call{
            value: msg.value
        }("");
        require(sent, "Donation failed");
        emit Donated(_tokenId, msg.sender, msg.value);
    }

    // looks at the paymentsplitter to calculate how much has been donated to a charity group
    function cumulativePayoutTo(PaymentSplitter _p)
        internal
        view
        returns (uint256)
    {
        if (address(_p) == address(0)) {
            return 0;
        }
        return _p.totalReleased() + address(_p).balance;
    }

    /**
     * The amount given to a charity is a factor of primary sales, secondary sales (times charity %), and donations
     */
    function getAmountDonated(uint256 _charityGroup)
        public
        view
        returns (uint256)
    {
        uint256 donationVolume = cumulativePayoutTo(
            charityGroupSplitters[_charityGroup]
        );
        if (_charityGroup == CHARITY_GROUPS) {
            // Final baton group has no primary sales. Final baton royalties count
            // towards project charities, so are intentionally excluded.
            return donationVolume;
        }
        uint256 secondaryVolume = cumulativePayoutTo(royaltySplitter);
        // the amount specific to this charity. final batons don't count in the divisor bc
        return
            donationVolume +
            ((secondaryVolume / CHARITY_GROUPS) * CHARITY_SALES_PCT) /
            100;
    }

    /**
     * the amount raised from the project is a function of primaries, royalties, and donations
     */
    function getDonationsFromProject() external view returns (uint256 total) {
        total = 0;
        for (uint256 i = 0; i < CHARITY_GROUPS + 1; i++) {
            total += getAmountDonated(i);
        }
    }

    function tokenURI(uint256 _tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(
            _exists(_tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );
        uint256 batonId = assetIdForToken(_tokenId);
        string memory relativePath;
        if (charityGroupForToken(_tokenId) == CHARITY_GROUPS) {
            // final baton, no evolution level
            relativePath = string(
                abi.encodePacked(batonId.toString(), "/0.json")
            );
        } else {
            uint256 evolutionLevel = getEvolutionLevel(_tokenId);
            relativePath = string(
                abi.encodePacked(
                    batonId.toString(),
                    "/",
                    evolutionLevel.toString(),
                    ".json"
                )
            );
        }
        return
            bytes(_baseURI()).length > 0
                ? string(abi.encodePacked(_baseURI(), relativePath))
                : "";
    }

    /**
     * FINAL EVOLUTION BURN-TO-Mint
     * @param _tokenIds, tokenId array with a token for each charity group
     * batons must be in final evolution. batons must be owned by caller
     * @return tokenId of newly created baton, in range [1968*4-1968*5)
     * @dev it's not necessary to enforce <= 1968 final batons because
     *      that's guaranteed by the burn-to-mint logic
     */
    function burnToMint(uint256[CHARITY_GROUPS] calldata _tokenIds)
        external
        nonReentrant
        returns (uint256 tokenId)
    {
        // CHECKS
        for (uint256 i = 0; i < CHARITY_GROUPS; i++) {
            require(
                charityGroupForToken(_tokenIds[i]) == i,
                "Must have a token from each charity"
            );
            require(
                getEvolutionLevel(_tokenIds[i]) == 3,
                "Must be in final form"
            );
            require(
                ownerOf(_tokenIds[i]) == msg.sender,
                /* ownerOf also asserts _exists() */
                "Must own the batons to burn-to-mint"
            );
        }
        for (uint256 i = 0; i < CHARITY_GROUPS; i++) {
            _burn(_tokenIds[i]);
        }
        tokenId = _mintToCharityGroup(CHARITY_GROUPS, msg.sender, 1);
        // The donation amounts of all four burnt batons are aggregated and
        // transferred to the newly minted baton.
        for (uint256 i = 0; i < CHARITY_GROUPS; i++) {
            batonDonations[tokenId] += batonDonations[_tokenIds[i]];
            batonDonations[_tokenIds[i]] = 0;
        }
    }

    // See https://docs.opensea.io/docs/contract-level-metadata for details.
    function contractURI() public pure returns (string memory) {
        return CONTRACT_METADATA_URI;
    }

    /* ROYALTIES */
    function royaltyInfo(
        uint256, /*_tokenId*/
        uint256 _salePrice
    )
        external
        view
        virtual
        override
        returns (address receiver, uint256 royaltyAmount)
    {
        receiver = address(royaltySplitter);
        require(receiver != address(0));
        royaltyAmount = (_salePrice * ROYALTY_PERCENT_BIPS) / 10000;
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(IERC165, ERC721, AccessControl)
        returns (bool)
    {
        return
            interfaceId == type(IERC2981).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /* HELPER FUNCTIONS */
    function getMerkleLeaf(
        address _claimer,
        uint256 _charityGroup,
        uint256 _maxMints
    ) public pure returns (bytes32) {
        return keccak256(abi.encodePacked(_claimer, _charityGroup, _maxMints));
    }

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

    /**
     * Checks if _charityGroup can be minted by users.
     */
    modifier onlyMintableGroup(uint256 _charityId) {
        require(
            0 <= _charityId && _charityId < CHARITY_GROUPS,
            "Can only mint one of four lanes"
        );
        _;
    }

    function setAdvisorMerkleRoot(bytes32 _merkleRoot) public onlyAdmin {
        require(
            saleState == State.ADVISOR_SALE,
            "Sale state isn't ADVISOR_SALE"
        );
        advisorMerkleRoot = _merkleRoot;
    }

    function setEarlybirdMerkleRoot(bytes32 _merkleRoot) public onlyAdmin {
        require(
            saleState == State.ADVISOR_SALE,
            "Sale state isn't ADVISOR_SALE"
        );
        earlybirdMerkleRoot = _merkleRoot;
    }

    function setPaymentSplitters(
        address[] calldata _charityGroupSplitters,
        address _artistAndDevSplitter,
        address _royaltySplitter
    ) public onlyTreasurer {
        require(
            _charityGroupSplitters.length == CHARITY_GROUPS + 1,
            "Need a PaymentSplitter for each charity group"
        );
        for (uint256 i = 0; i < _charityGroupSplitters.length; i++) {
            charityGroupSplitters[i] = PaymentSplitter(
                payable(_charityGroupSplitters[i])
            );
        }
        artistAndDevSplitter = PaymentSplitter(payable(_artistAndDevSplitter));
        royaltySplitter = PaymentSplitter(payable(_royaltySplitter));
    }

    function _pendingPaymentAmount(PaymentSplitter _splitter, address _payee)
        private
        view
        returns (uint256)
    {
        if (address(_splitter) == address(0)) {
            return 0;
        }
        uint256 totalReceived = address(_splitter).balance +
            _splitter.totalReleased();
        uint256 alreadyReleased = _splitter.released(_payee);
        return
            (totalReceived * _splitter.shares(_payee)) /
            _splitter.totalShares() -
            alreadyReleased;
    }

    // Returns the pending payment amount for the payee. You need to call
    // pullPayments() to actually transfer ETHs to the payee.
    function pendingPaymentAmount(address _payee)
        external
        view
        returns (uint256)
    {
        uint256 amount = _pendingPaymentAmount(royaltySplitter, _payee);
        amount += _pendingPaymentAmount(artistAndDevSplitter, _payee);
        for (uint256 i = 0; i < CHARITY_GROUPS + 1; i++) {
            amount += _pendingPaymentAmount(charityGroupSplitters[i], _payee);
        }
        return amount;
    }

    // Transfers ETHs from all PaymentSplitters to the payee. You may call
    // pendingPaymentAmount() to see if the payee has any pending payments.
    function pullPayments(address payable _payee) external {
        // Try to pull the royalty payments. The try-catch block is
        // required because PaymentSplitter.release() fails if the payee doesn't
        // have any shares or pending payments.
        try royaltySplitter.release(_payee) {} catch {}
        for (uint256 i = 0; i < CHARITY_GROUPS + 1; i++) {
            // Try to pull the charity payments. See the comment above.
            try charityGroupSplitters[i].release(_payee) {} catch {}
        }
        // Try to pull the artist and dev payments. See the comment above.
        try artistAndDevSplitter.release(_payee) {} catch {}
    }
}

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

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    function _grantRole(bytes32 role, address account) private {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

    uint256 private _totalShares;
    uint256 private _totalReleased;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 6 of 22 : IERC2981.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Called with the sale price to determine how much royalty is owed and to whom.
     * @param tokenId - the NFT asset queried for royalty information
     * @param salePrice - the sale price of the NFT asset specified by `tokenId`
     * @return receiver - address of who should be sent the royalty payment
     * @return royaltyAmount - the royalty payment amount for `salePrice`
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 8 of 22 : 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 9 of 22 : 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 10 of 22 : 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 11 of 22 : 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 12 of 22 : 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 13 of 22 : IAccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 14 of 22 : 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 15 of 22 : 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 16 of 22 : 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 17 of 22 : 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 18 of 22 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 19 of 22 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 20 of 22 : 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 21 of 22 : 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 22 of 22 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_vrfCoordinator","type":"address"},{"internalType":"address","name":"_link","type":"address"},{"internalType":"bytes32","name":"_vrfKeyHash","type":"bytes32"},{"internalType":"uint256","name":"_vrfFee","type":"uint256"},{"internalType":"address","name":"_treasurer","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"donor","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Donated","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":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BATONS_PER_GROUP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BRONZE_UPGRADE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CHARITY_GROUPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CHARITY_SALES_PCT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GOLD_UPGRADE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_AMOUNT_PER_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_BATON_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SALE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SILVER_UPGRADE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TREASURER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"uint256","name":"_tokenId","type":"uint256"}],"name":"assetIdForToken","outputs":[{"internalType":"uint256","name":"assetId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[4]","name":"_tokenIds","type":"uint256[4]"}],"name":"burnToMint","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"charityGroupForToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"donate","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_advisor","type":"address"},{"internalType":"uint256","name":"_charityGroup","type":"uint256"}],"name":"getAdvisorMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_charityGroup","type":"uint256"}],"name":"getAmountDonated","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"getBatonDonation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDonationsFromProject","outputs":[{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_earlyBird","type":"address"},{"internalType":"uint256","name":"_charityGroup","type":"uint256"}],"name":"getEarlyBirdMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getEvolutionLevel","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_claimer","type":"address"},{"internalType":"uint256","name":"_charityGroup","type":"uint256"},{"internalType":"uint256","name":"_maxMints","type":"uint256"}],"name":"getMerkleLeaf","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasurer","type":"address"}],"name":"grantTreasurer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_advisor","type":"address"},{"internalType":"uint256","name":"_charityGroup","type":"uint256"},{"internalType":"uint256","name":"_maxMints","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"_amountToMint","type":"uint256"}],"name":"mintAdvisor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_supporter","type":"address"},{"internalType":"uint256","name":"_charityGroup","type":"uint256"},{"internalType":"uint256","name":"_maxMints","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"_amountToMint","type":"uint256"}],"name":"mintEarlybird","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_charityGroup","type":"uint256"},{"internalType":"uint256","name":"_amountToMint","type":"uint256"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_charityGroup","type":"uint256"}],"name":"numMintableBatons","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_payee","type":"address"}],"name":"pendingPaymentAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_payee","type":"address"}],"name":"pullPayments","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_ipfsBase","type":"string"}],"name":"revealMetadata","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasurer","type":"address"}],"name":"revokeTreasurer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleState","outputs":[{"internalType":"enum Batons.State","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setAdvisorMerkleRoot","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":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setEarlybirdMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_charityGroupSplitters","type":"address[]"},{"internalType":"address","name":"_artistAndDevSplitter","type":"address"},{"internalType":"address","name":"_royaltySplitter","type":"address"}],"name":"setPaymentSplitters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"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"}]

6012805460ff60a01b19169055610160604052603661010081815290620050da6101203980516200003991601b91602090910190620002da565b503480156200004757600080fd5b5060405162005110380380620051108339810160408190526200006a916200039d565b604080518082018252600e81526d2830b9b9903a3432902130ba37b760911b6020808301918252835180850190945260058452642120aa27a760d91b90840152815188938893929091620000c191600091620002da565b508051620000d7906001906020840190620002da565b5050506001600160601b0319606092831b811660a052911b1660805260016007556200010a620001043390565b620001d4565b6001600160a01b0381163314156200017c5760405162461bcd60e51b815260206004820152602b60248201527f5472656173757265722073686f756c6420626520646966666572656e7420667260448201526a37b6903232b83637bcb2b960a91b606482015260840160405180910390fd5b60c083905260e08290526200019360003362000226565b620001ae600080516020620050ba8339815191523362000226565b620001c9600080516020620050ba8339815191528262000226565b505050505062000437565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b62000232828262000236565b5050565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff16620002325760008281526009602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620002963390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b828054620002e890620003fa565b90600052602060002090601f0160209004810192826200030c576000855562000357565b82601f106200032757805160ff191683800117855562000357565b8280016001018555821562000357579182015b82811115620003575782518255916020019190600101906200033a565b506200036592915062000369565b5090565b5b808211156200036557600081556001016200036a565b80516001600160a01b03811681146200039857600080fd5b919050565b600080600080600060a08688031215620003b5578081fd5b620003c08662000380565b9450620003d06020870162000380565b93506040860151925060608601519150620003ee6080870162000380565b90509295509295909350565b600181811c908216806200040f57607f821691505b602082108114156200043157634e487b7160e01b600052602260045260246000fd5b50919050565b60805160601c60a05160601c60c05160e051614c2e6200048c60003960008181610f38015261105601526000611035015260008181611e520152613030015260008181610f5a01526130010152614c2e6000f3fe6080604052600436106103b85760003560e01c80638b670d0a116101f2578063c7aa36d71161010d578063ed5dcff8116100a0578063f2fde38b1161006f578063f2fde38b14610b4e578063f413889714610521578063f636a84714610b6e578063fc06549914610b8e57600080fd5b8063ed5dcff814610ad9578063ee7e893914610af9578063f0a3a97c14610b19578063f14faf6f14610b3b57600080fd5b8063e36b0b37116100dc578063e36b0b3714610a53578063e8a3d48514610a68578063e985e9c514610a7d578063ed5ab3f614610ac657600080fd5b8063c7aa36d7146109de578063c87b56dd146109f3578063d547741f14610a13578063e23e21f914610a3357600080fd5b8063a217fddf11610185578063b66a0e5d11610154578063b66a0e5d14610946578063b88d4fde1461095b578063b9d2eb5d1461097b578063bb9a8e161461099b57600080fd5b8063a217fddf146108bb578063a22cb465146108d0578063a9e3586b146108f0578063ac00ea731461090357600080fd5b806392dc2997116101c157806392dc29971461084a57806394985ddd1461086a57806395d89b411461088a5780639a846ee81461089f57600080fd5b80638b670d0a146107d75780638bad0c0a146107f75780638da5cb5b1461080c57806391d148541461082a57600080fd5b8063492c3af8116102e25780636f64500211610275578063715018a611610244578063715018a6146107665780637f205a741461077b5780637f6d1e79146107975780637fee7b27146107b757600080fd5b80636f645002146106e6578063707502f71461070657806370886eb91461072657806370a082311461074657600080fd5b806362f8e37d116102b157806362f8e37d146106665780636352211e146106865780636726344c146106a65780636a96071e146106c657600080fd5b8063492c3af8146105eb5780635b087f54146106075780635c67a06714610623578063603f4d521461063857600080fd5b806323b872dd1161035a5780632f2ff15d116103295780632f2ff15d146105755780633545eb4a1461059557806336568abe146105ab57806342842e0e146105cb57600080fd5b806323b872dd146104d1578063248a9ca3146104f15780632a0689da146105215780632a55205a1461053657600080fd5b8063081812fc11610396578063081812fc1461042b578063095ea7b3146104635780630cb71584146104835780630ef5ba4e146104b157600080fd5b806301ffc9a7146103bd57806304c98b2b146103f257806306fdde0314610409575b600080fd5b3480156103c957600080fd5b506103dd6103d83660046145c3565b610ba3565b60405190151581526020015b60405180910390f35b3480156103fe57600080fd5b50610407610bce565b005b34801561041557600080fd5b5061041e610cbe565b6040516103e9919061482e565b34801561043757600080fd5b5061044b610446366004614566565b610d50565b6040516001600160a01b0390911681526020016103e9565b34801561046f57600080fd5b5061040761047e3660046143f5565b610de5565b34801561048f57600080fd5b506104a361049e3660046145fb565b610efb565b6040519081526020016103e9565b3480156104bd57600080fd5b506104a36104cc366004614566565b61107a565b3480156104dd57600080fd5b506104076104ec36600461430b565b6110a6565b3480156104fd57600080fd5b506104a361050c366004614566565b60009081526009602052604090206001015490565b34801561052d57600080fd5b506104a3600481565b34801561054257600080fd5b506105566105513660046145a2565b6110d7565b604080516001600160a01b0390931683526020830191909152016103e9565b34801561058157600080fd5b5061040761059036600461457e565b611111565b3480156105a157600080fd5b506104a36107b081565b3480156105b757600080fd5b506104076105c636600461457e565b611137565b3480156105d757600080fd5b506104076105e636600461430b565b6111b5565b3480156105f757600080fd5b506104a36722b1c8c1227a000081565b34801561061357600080fd5b506104a36768155a43676e000081565b34801561062f57600080fd5b506104a3601e81565b34801561064457600080fd5b5060125461065990600160a01b900460ff1681565b6040516103e99190614806565b34801561067257600080fd5b506104a3610681366004614566565b6111d0565b34801561069257600080fd5b5061044b6106a1366004614566565b611267565b3480156106b257600080fd5b506104a36106c1366004614566565b6112de565b3480156106d257600080fd5b506104076106e1366004614566565b61130f565b3480156106f257600080fd5b506104076107013660046144c4565b611386565b34801561071257600080fd5b50610407610721366004614454565b61151d565b34801561073257600080fd5b506104a361074136600461452a565b6116c5565b34801561075257600080fd5b506104a36107613660046142b7565b6119e7565b34801561077257600080fd5b50610407611a6e565b34801561078757600080fd5b506104a367016345785d8a000081565b3480156107a357600080fd5b506104a36107b23660046142b7565b611ad4565b3480156107c357600080fd5b506104a36107d2366004614566565b611b84565b3480156107e357600080fd5b506104076107f23660046142b7565b611b92565b34801561080357600080fd5b50610407611ce6565b34801561081857600080fd5b506008546001600160a01b031661044b565b34801561083657600080fd5b506103dd61084536600461457e565b611dd5565b34801561085657600080fd5b506104a3610865366004614566565b611e00565b34801561087657600080fd5b506104076108853660046145a2565b611e47565b34801561089657600080fd5b5061041e611ec9565b3480156108ab57600080fd5b506104a36706f05b59d3b2000081565b3480156108c757600080fd5b506104a3600081565b3480156108dc57600080fd5b506104076108eb3660046143c8565b611ed8565b6104076108fe366004614454565b611f9d565b34801561090f57600080fd5b506104a361091e3660046143f5565b6001600160a01b03919091166000908152600a60209081526040808320938352929052205490565b34801561095257600080fd5b5061040761239e565b34801561096757600080fd5b5061040761097636600461434b565b61245a565b34801561098757600080fd5b506104076109963660046142b7565b612492565b3480156109a757600080fd5b506104a36109b63660046143f5565b6001600160a01b03919091166000908152600b60209081526040808320938352929052205490565b3480156109ea57600080fd5b506104a36124d1565b3480156109ff57600080fd5b5061041e610a0e366004614566565b612513565b348015610a1f57600080fd5b50610407610a2e36600461457e565b61267a565b348015610a3f57600080fd5b506104a3610a4e366004614566565b6126a0565b348015610a5f57600080fd5b50610407612783565b348015610a7457600080fd5b5061041e612840565b348015610a8957600080fd5b506103dd610a983660046142d3565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610407610ad43660046145a2565b612860565b348015610ae557600080fd5b50610407610af43660046142b7565b612b72565b348015610b0557600080fd5b506104a3610b14366004614420565b612bb1565b348015610b2557600080fd5b506104a3600080516020614ba483398151915281565b610407610b49366004614566565b612c00565b348015610b5a57600080fd5b50610407610b693660046142b7565b612e1b565b348015610b7a57600080fd5b50610407610b89366004614566565b612ee3565b348015610b9a57600080fd5b506104a3612f5a565b60006001600160e01b0319821663152a902d60e11b1480610bc85750610bc882612f6a565b92915050565b610bd9600033611dd5565b610bfe5760405162461bcd60e51b8152600401610bf590614960565b60405180910390fd5b6000601254600160a01b900460ff166002811115610c2c57634e487b7160e01b600052602160045260246000fd5b14610c495760405162461bcd60e51b8152600401610bf590614901565b6012546001600160a01b0316610ca15760405162461bcd60e51b815260206004820152601b60248201527f436f6e666967757265207061796d656e742073706c69747465727300000000006044820152606401610bf5565b601280546001919060ff60a01b1916600160a01b835b0217905550565b606060008054610ccd90614ac4565b80601f0160208091040260200160405190810160405280929190818152602001828054610cf990614ac4565b8015610d465780601f10610d1b57610100808354040283529160200191610d46565b820191906000526020600020905b815481529060010190602001808311610d2957829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610dc95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bf5565b506000908152600460205260409020546001600160a01b031690565b6000610df082611267565b9050806001600160a01b0316836001600160a01b03161415610e5e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610bf5565b336001600160a01b0382161480610e7a5750610e7a8133610a98565b610eec5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610bf5565b610ef68383612f8f565b505050565b6000610f078133611dd5565b610f235760405162461bcd60e51b8152600401610bf590614960565b6040516370a0823160e01b81523060048201527f0000000000000000000000000000000000000000000000000000000000000000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b158015610fa457600080fd5b505afa158015610fb8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fdc9190614641565b101561101c5760405162461bcd60e51b815260206004820152600f60248201526e4e6f7420656e6f756768204c494e4b60881b6044820152606401610bf5565b815161102f90601b906020850190614167565b50610bc87f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000612ffd565b6000601c82612670811061109e57634e487b7160e01b600052603260045260246000fd5b015492915050565b6110b03382613188565b6110cc5760405162461bcd60e51b8152600401610bf590614997565b610ef683838361327b565b6012546001600160a01b03166000816110ef57600080fd5b6127106110fe6102ee85614a4b565b6111089190614a37565b90509250929050565b60008281526009602052604090206001015461112d813361341b565b610ef6838361347f565b6001600160a01b03811633146111a75760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610bf5565b6111b18282613505565b5050565b610ef68383836040518060200160405280600081525061245a565b600080611207600c84600581106111f757634e487b7160e01b600052603260045260246000fd5b01546001600160a01b031661356c565b905060048314156112185792915050565b601254600090611230906001600160a01b031661356c565b90506064601e611241600484614a37565b61124b9190614a4b565b6112559190614a37565b61125f9083614a1f565b949350505050565b6000818152600260205260408120546001600160a01b031680610bc85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610bf5565b60006015826005811061130157634e487b7160e01b600052603260045260246000fd5b0154610bc8906107b0614a6a565b61131a600033611dd5565b6113365760405162461bcd60e51b8152600401610bf590614960565b6000601254600160a01b900460ff16600281111561136457634e487b7160e01b600052602160045260246000fd5b146113815760405162461bcd60e51b8152600401610bf590614901565b601355565b61139e600080516020614ba483398151915233611dd5565b6113ea5760405162461bcd60e51b815260206004820152601b60248201527f43616c6c6572206973206e6f74207468652074726561737572657200000000006044820152606401610bf5565b6113f660046001614a1f565b831461145a5760405162461bcd60e51b815260206004820152602d60248201527f4e6565642061205061796d656e7453706c697474657220666f7220656163682060448201526c0636861726974792067726f757609c1b6064820152608401610bf5565b60005b838110156114ec5784848281811061148557634e487b7160e01b600052603260045260246000fd5b905060200201602081019061149a91906142b7565b600c82600581106114bb57634e487b7160e01b600052603260045260246000fd5b0180546001600160a01b0319166001600160a01b0392909216919091179055806114e481614af9565b91505061145d565b50601180546001600160a01b039384166001600160a01b031991821617909155601280549290931691161790555050565b600260075414156115405760405162461bcd60e51b8152600401610bf5906149e8565b600260075584600481106115665760405162461bcd60e51b8152600401610bf5906148ca565b6000611573888888612bb1565b90506115b685858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601354915084905061360a565b6115f95760405162461bcd60e51b815260206004820152601460248201527324b73b30b634b21026b2b935b63290383937b7b360611b6044820152606401610bf5565b6001600160a01b0388166000908152600a602090815260408083208a8452909152902054869061162a908590614a1f565b11156116715760405162461bcd60e51b8152602060048201526016602482015275547269656420746f206d696e7420746f6f206d616e7960501b6044820152606401610bf5565b6001600160a01b0388166000908152600a602090815260408083208a8452909152812080548592906116a4908490614a1f565b909155506116b590508789856136c7565b5050600160075550505050505050565b6000600260075414156116ea5760405162461bcd60e51b8152600401610bf5906149e8565b600260075560005b6004811015611898578061172984836004811061171f57634e487b7160e01b600052603260045260246000fd5b6020020135611b84565b146117825760405162461bcd60e51b815260206004820152602360248201527f4d7573742068617665206120746f6b656e2066726f6d2065616368206368617260448201526269747960e81b6064820152608401610bf5565b6117af8382600481106117a557634e487b7160e01b600052603260045260246000fd5b60200201356126a0565b6003146117f65760405162461bcd60e51b81526020600482015260156024820152744d75737420626520696e2066696e616c20666f726d60581b6044820152606401610bf5565b3361182484836004811061181a57634e487b7160e01b600052603260045260246000fd5b6020020135611267565b6001600160a01b0316146118865760405162461bcd60e51b815260206004820152602360248201527f4d757374206f776e20746865206261746f6e7320746f206275726e2d746f2d6d6044820152621a5b9d60ea1b6064820152608401610bf5565b8061189081614af9565b9150506116f2565b5060005b60048110156118e4576118d28382600481106118c857634e487b7160e01b600052603260045260246000fd5b60200201356137fc565b806118dc81614af9565b91505061189c565b506118f260043360016136c7565b905060005b60048110156119dc57601c83826004811061192257634e487b7160e01b600052603260045260246000fd5b6020020135612670811061194657634e487b7160e01b600052603260045260246000fd5b0154601c83612670811061196a57634e487b7160e01b600052603260045260246000fd5b01600082825461197a9190614a1f565b9091555060009050601c8483600481106119a457634e487b7160e01b600052603260045260246000fd5b602002013561267081106119c857634e487b7160e01b600052603260045260246000fd5b0155806119d481614af9565b9150506118f7565b506001600755919050565b60006001600160a01b038216611a525760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610bf5565b506001600160a01b031660009081526003602052604090205490565b6008546001600160a01b03163314611ac85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610bf5565b611ad26000613897565b565b6012546000908190611aef906001600160a01b0316846138e9565b601154909150611b08906001600160a01b0316846138e9565b611b129082614a1f565b905060005b611b2360046001614a1f565b811015611b7d57611b5f600c8260058110611b4e57634e487b7160e01b600052603260045260246000fd5b01546001600160a01b0316856138e9565b611b699083614a1f565b915080611b7581614af9565b915050611b17565b5092915050565b6000610bc86107b083614a37565b601254604051631916558760e01b81526001600160a01b03838116600483015290911690631916558790602401600060405180830381600087803b158015611bd957600080fd5b505af1925050508015611bea575060015b5060005b611bfa60046001614a1f565b811015611c8c57600c8160058110611c2257634e487b7160e01b600052603260045260246000fd5b0154604051631916558760e01b81526001600160a01b03848116600483015290911690631916558790602401600060405180830381600087803b158015611c6857600080fd5b505af1925050508015611c79575060015b5080611c8481614af9565b915050611bee565b50601154604051631916558760e01b81526001600160a01b03838116600483015290911690631916558790602401600060405180830381600087803b158015611cd457600080fd5b505af19250505080156111b157505b50565b611cf1600033611dd5565b611d0d5760405162461bcd60e51b8152600401610bf590614960565b6002601254600160a01b900460ff166002811115611d3b57634e487b7160e01b600052602160045260246000fd5b14611d885760405162461bcd60e51b815260206004820152601c60248201527f41646d696e20726571756972656420746f2073746172742073616c65000000006044820152606401610bf5565b611d93600033611137565b611dab600080516020614ba483398151915233611137565b33611dbe6008546001600160a01b031690565b6001600160a01b03161415611ad257611ad2611a6e565b60009182526009602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600080611e0f6107b084614a37565b905060006107b0601a5485611e249190614a1f565b611e2e9190614b14565b905080611e3d6107b084614a4b565b61125f9190614a1f565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614611ebf5760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610bf5565b6111b18282613b1b565b606060018054610ccd90614ac4565b6001600160a01b038216331415611f315760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610bf5565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60026007541415611fc05760405162461bcd60e51b8152600401610bf5906149e8565b60026007558460048110611fe65760405162461bcd60e51b8152600401610bf5906148ca565b6000601254600160a01b900460ff16600281111561201457634e487b7160e01b600052602160045260246000fd5b141561205b5760405162461bcd60e51b8152602060048201526016602482015275141c995cd85b19481a185cdb89dd081cdd185c9d195960521b6044820152606401610bf5565b6000600c876005811061207e57634e487b7160e01b600052603260045260246000fd5b01546001600160a01b0316148015906120a157506011546001600160a01b031615155b6120bd5760405162461bcd60e51b8152600401610bf590614841565b6120cf8267016345785d8a0000614a4b565b34146121135760405162461bcd60e51b815260206004820152601360248201527215dc9bdb99c81155121cc81c9958d95a5d9959606a1b6044820152606401610bf5565b6000612120888888612bb1565b905061216385858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601454915084905061360a565b6121a65760405162461bcd60e51b815260206004820152601460248201527324b73b30b634b21026b2b935b63290383937b7b360611b6044820152606401610bf5565b6001600160a01b0388166000908152600b602090815260408083208a845290915290205486906121d7908590614a1f565b111561221e5760405162461bcd60e51b8152602060048201526016602482015275547269656420746f206d696e7420746f6f206d616e7960501b6044820152606401610bf5565b6001600160a01b0388166000908152600b602090815260408083208a845290915281208054859290612251908490614a1f565b90915550600090506064612266601e34614a4b565b6122709190614a37565b90506000600c896005811061229557634e487b7160e01b600052603260045260246000fd5b01546040516001600160a01b03909116908390600081818185875af1925050503d80600081146122e1576040519150601f19603f3d011682016040523d82523d6000602084013e6122e6565b606091505b50509050806123075760405162461bcd60e51b8152600401610bf590614938565b6011546001600160a01b031661231d8334614a6a565b604051600081818185875af1925050503d8060008114612359576040519150601f19603f3d011682016040523d82523d6000602084013e61235e565b606091505b505080915050806123815760405162461bcd60e51b8152600401610bf590614938565b61238c898b876136c7565b50506001600755505050505050505050565b6123a9600033611dd5565b6123c55760405162461bcd60e51b8152600401610bf590614960565b6001601254600160a01b900460ff1660028111156123f357634e487b7160e01b600052602160045260246000fd5b146124405760405162461bcd60e51b815260206004820152601860248201527f53616c652073746174652069736e27742050524553414c4500000000000000006044820152606401610bf5565b601280546002919060ff60a01b1916600160a01b83610cb7565b6124643383613188565b6124805760405162461bcd60e51b8152600401610bf590614997565b61248c84848484613b39565b50505050565b61249d600033611dd5565b6124b95760405162461bcd60e51b8152600401610bf590614960565b611ce3600080516020614ba483398151915282611111565b6000805b6124e160046001614a1f565b81101561250f576124f1816111d0565b6124fb9083614a1f565b91508061250781614af9565b9150506124d5565b5090565b6000818152600260205260409020546060906001600160a01b03166125925760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610bf5565b600061259d83611e00565b9050606060046125ac85611b84565b14156125e1576125bb82613b6c565b6040516020016125cb91906146b4565b6040516020818303038152906040529050612624565b60006125ec856126a0565b90506125f783613b6c565b61260082613b6c565b6040516020016126119291906146df565b6040516020818303038152906040529150505b600061262e613c86565b5111612649576040518060200160405280600081525061125f565b612651613c86565b81604051602001612663929190614685565b604051602081830303815290604052949350505050565b600082815260096020526040902060010154612696813361341b565b610ef68383613505565b60006126ab82611b84565b5060046126b783611b84565b106127045760405162461bcd60e51b815260206004820152601960248201527f46696e616c206261746f6e7320646f6e27742065766f6c7665000000000000006044820152606401610bf5565b6000601c83612670811061272857634e487b7160e01b600052603260045260246000fd5b015490506768155a43676e000081106127445750600392915050565b6722b1c8c1227a0000811061275c5750600292915050565b6706f05b59d3b2000081106127745750600192915050565b50600092915050565b50919050565b61278e600033611dd5565b6127aa5760405162461bcd60e51b8152600401610bf590614960565b6000601254600160a01b900460ff1660028111156127d857634e487b7160e01b600052602160045260246000fd5b14156128265760405162461bcd60e51b815260206004820152601a60248201527f53616c652073746174652069732041445649534f525f53414c450000000000006044820152606401610bf5565b601280546000919060ff60a01b1916600160a01b83610cb7565b6060604051806060016040528060358152602001614bc460359139905090565b600260075414156128835760405162461bcd60e51b8152600401610bf5906149e8565b600260075581600481106128a95760405162461bcd60e51b8152600401610bf5906148ca565b6002601254600160a01b900460ff1660028111156128d757634e487b7160e01b600052602160045260246000fd5b1461291c5760405162461bcd60e51b815260206004820152601560248201527453616c652073746174652069736e2774204c49564560581b6044820152606401610bf5565b6000600c846005811061293f57634e487b7160e01b600052603260045260246000fd5b01546001600160a01b03161480159061296257506011546001600160a01b031615155b61297e5760405162461bcd60e51b8152600401610bf590614841565b60048211156129da5760405162461bcd60e51b815260206004820152602260248201527f547269656420746f206d696e7420746f6f206d616e79207065722072657175656044820152611cdd60f21b6064820152608401610bf5565b6129ec8267016345785d8a0000614a4b565b3414612a305760405162461bcd60e51b815260206004820152601360248201527215dc9bdb99c81155121cc81c9958d95a5d9959606a1b6044820152606401610bf5565b60006064612a3f601e34614a4b565b612a499190614a37565b90506000600c8560058110612a6e57634e487b7160e01b600052603260045260246000fd5b01546040516001600160a01b03909116908390600081818185875af1925050503d8060008114612aba576040519150601f19603f3d011682016040523d82523d6000602084013e612abf565b606091505b5050905080612ae05760405162461bcd60e51b8152600401610bf590614938565b6011546001600160a01b0316612af68334614a6a565b604051600081818185875af1925050503d8060008114612b32576040519150601f19603f3d011682016040523d82523d6000602084013e612b37565b606091505b50508091505080612b5a5760405162461bcd60e51b8152600401610bf590614938565b612b658533866136c7565b5050600160075550505050565b612b7d600033611dd5565b612b995760405162461bcd60e51b8152600401610bf590614960565b611ce3600080516020614ba48339815191528261267a565b6040516bffffffffffffffffffffffff19606085901b16602082015260348101839052605481018290526000906074016040516020818303038152906040528051906020012090509392505050565b60026007541415612c235760405162461bcd60e51b8152600401610bf5906149e8565b6002600755612c3181611267565b6001600160a01b0316336001600160a01b031614612c915760405162461bcd60e51b815260206004820181905260248201527f596f75206d757374206f776e20746865206261746f6e20746f20646f6e6174656044820152606401610bf5565b6000612c9c82611b84565b90506000600c8260058110612cc157634e487b7160e01b600052603260045260246000fd5b01546001600160a01b03161415612cea5760405162461bcd60e51b8152600401610bf590614841565b34601c836126708110612d0d57634e487b7160e01b600052603260045260246000fd5b016000828254612d1d9190614a1f565b9091555060009050600c8260058110612d4657634e487b7160e01b600052603260045260246000fd5b01546040516001600160a01b03909116903490600081818185875af1925050503d8060008114612d92576040519150601f19603f3d011682016040523d82523d6000602084013e612d97565b606091505b5050905080612dda5760405162461bcd60e51b815260206004820152600f60248201526e111bdb985d1a5bdb8819985a5b1959608a1b6044820152606401610bf5565b604051348152339084907f1b606d34afacd55873aba0fd274841a10c63e18455f2dffebad2fc60a36b2c839060200160405180910390a35050600160075550565b6008546001600160a01b03163314612e755760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610bf5565b6001600160a01b038116612eda5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bf5565b611ce381613897565b612eee600033611dd5565b612f0a5760405162461bcd60e51b8152600401610bf590614960565b6000601254600160a01b900460ff166002811115612f3857634e487b7160e01b600052602160045260246000fd5b14612f555760405162461bcd60e51b8152600401610bf590614901565b601455565b612f6760046107b0614a4b565b81565b60006001600160e01b03198216637965db0b60e01b1480610bc85750610bc882613c95565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612fc482611267565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f00000000000000000000000000000000000000000000000000000000000000008486600060405160200161306d929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161309a939291906147df565b602060405180830381600087803b1580156130b457600080fd5b505af11580156130c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130ec919061454a565b50600083815260066020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a090910190925281519183019190912093879052919052613148906001614a1f565b60008581526006602052604090205561125f8482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b6000818152600260205260408120546001600160a01b03166132015760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bf5565b600061320c83611267565b9050806001600160a01b0316846001600160a01b031614806132475750836001600160a01b031661323c84610d50565b6001600160a01b0316145b8061125f57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff1661125f565b826001600160a01b031661328e82611267565b6001600160a01b0316146132f65760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610bf5565b6001600160a01b0382166133585760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610bf5565b613363600082612f8f565b6001600160a01b038316600090815260036020526040812080546001929061338c908490614a6a565b90915550506001600160a01b03821660009081526003602052604081208054600192906133ba908490614a1f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6134258282611dd5565b6111b15761343d816001600160a01b03166014613ce5565b613448836020613ce5565b60405160200161345992919061472d565b60408051601f198184030181529082905262461bcd60e51b8252610bf59160040161482e565b6134898282611dd5565b6111b15760008281526009602090815260408083206001600160a01b03851684529091529020805460ff191660011790556134c13390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61350f8282611dd5565b156111b15760008281526009602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006001600160a01b03821661358457506000919050565b816001600160a01b031631826001600160a01b031663e33b7de36040518163ffffffff1660e01b815260040160206040518083038186803b1580156135c857600080fd5b505afa1580156135dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136009190614641565b610bc89190614a1f565b600081815b85518110156136bc57600086828151811061363a57634e487b7160e01b600052603260045260246000fd5b6020026020010151905080831161367c5760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506136a9565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806136b481614af9565b91505061360f565b509092149392505050565b60008160001080156137075750601584600581106136f557634e487b7160e01b600052603260045260246000fd5b0154613703906107b0614a6a565b8211155b6137535760405162461bcd60e51b815260206004820152601960248201527f436861726974792047726f757020697320736f6c64206f7574000000000000006044820152606401610bf5565b6015846005811061377457634e487b7160e01b600052603260045260246000fd5b01546137826107b086614a4b565b61378c9190614a1f565b905060005b828110156137bc576137ac846137a78385614a1f565b613ece565b6137b581614af9565b9050613791565b5081601585600581106137df57634e487b7160e01b600052603260045260246000fd5b0160008282546137ef9190614a1f565b9091555090949350505050565b600061380782611267565b9050613814600083612f8f565b6001600160a01b038116600090815260036020526040812080546001929061383d908490614a6a565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b03831661390157506000610bc8565b6000836001600160a01b031663e33b7de36040518163ffffffff1660e01b815260040160206040518083038186803b15801561393c57600080fd5b505afa158015613950573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906139749190614641565b613988906001600160a01b03861631614a1f565b604051632614965760e21b81526001600160a01b038581166004830152919250600091861690639852595c9060240160206040518083038186803b1580156139cf57600080fd5b505afa1580156139e3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a079190614641565b905080856001600160a01b0316633a98ef396040518163ffffffff1660e01b815260040160206040518083038186803b158015613a4357600080fd5b505afa158015613a57573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a7b9190614641565b60405163673e156160e11b81526001600160a01b03878116600483015288169063ce7c2ac29060240160206040518083038186803b158015613abc57600080fd5b505afa158015613ad0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613af49190614641565b613afe9085614a4b565b613b089190614a37565b613b129190614a6a565b95945050505050565b613b2860046107b0614a4b565b613b329082614b14565b601a555050565b613b4484848461327b565b613b5084848484613ee8565b61248c5760405162461bcd60e51b8152600401610bf590614878565b606081613b905750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613bba5780613ba481614af9565b9150613bb39050600a83614a37565b9150613b94565b60008167ffffffffffffffff811115613be357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613c0d576020820181803683370190505b5090505b841561125f57613c22600183614a6a565b9150613c2f600a86614b14565b613c3a906030614a1f565b60f81b818381518110613c5d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613c7f600a86614a37565b9450613c11565b6060601b8054610ccd90614ac4565b60006001600160e01b031982166380ac58cd60e01b1480613cc657506001600160e01b03198216635b5e139f60e01b145b80610bc857506301ffc9a760e01b6001600160e01b0319831614610bc8565b60606000613cf4836002614a4b565b613cff906002614a1f565b67ffffffffffffffff811115613d2557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613d4f576020820181803683370190505b509050600360fc1b81600081518110613d7857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110613db557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000613dd9846002614a4b565b613de4906001614a1f565b90505b6001811115613e78576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110613e2657634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110613e4a57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93613e7181614aad565b9050613de7565b508315613ec75760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610bf5565b9392505050565b6111b1828260405180602001604052806000815250613ff2565b60006001600160a01b0384163b15613fea57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613f2c9033908990889088906004016147a2565b602060405180830381600087803b158015613f4657600080fd5b505af1925050508015613f76575060408051601f3d908101601f19168201909252613f73918101906145df565b60015b613fd0573d808015613fa4576040519150601f19603f3d011682016040523d82523d6000602084013e613fa9565b606091505b508051613fc85760405162461bcd60e51b8152600401610bf590614878565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061125f565b50600161125f565b613ffc8383614025565b6140096000848484613ee8565b610ef65760405162461bcd60e51b8152600401610bf590614878565b6001600160a01b03821661407b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bf5565b6000818152600260205260409020546001600160a01b0316156140e05760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bf5565b6001600160a01b0382166000908152600360205260408120805460019290614109908490614a1f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461417390614ac4565b90600052602060002090601f01602090048101928261419557600085556141db565b82601f106141ae57805160ff19168380011785556141db565b828001600101855582156141db579182015b828111156141db5782518255916020019190600101906141c0565b5061250f9291505b8082111561250f57600081556001016141e3565b600067ffffffffffffffff8084111561421257614212614b54565b604051601f8501601f19908116603f0116810190828211818310171561423a5761423a614b54565b8160405280935085815286868601111561425357600080fd5b858560208301376000602087830101525050509392505050565b60008083601f84011261427e578182fd5b50813567ffffffffffffffff811115614295578182fd5b6020830191508360208260051b85010111156142b057600080fd5b9250929050565b6000602082840312156142c8578081fd5b8135613ec781614b6a565b600080604083850312156142e5578081fd5b82356142f081614b6a565b9150602083013561430081614b6a565b809150509250929050565b60008060006060848603121561431f578081fd5b833561432a81614b6a565b9250602084013561433a81614b6a565b929592945050506040919091013590565b60008060008060808587031215614360578081fd5b843561436b81614b6a565b9350602085013561437b81614b6a565b925060408501359150606085013567ffffffffffffffff81111561439d578182fd5b8501601f810187136143ad578182fd5b6143bc878235602084016141f7565b91505092959194509250565b600080604083850312156143da578182fd5b82356143e581614b6a565b9150602083013561430081614b7f565b60008060408385031215614407578182fd5b823561441281614b6a565b946020939093013593505050565b600080600060608486031215614434578283fd5b833561443f81614b6a565b95602085013595506040909401359392505050565b60008060008060008060a0878903121561446c578182fd5b863561447781614b6a565b95506020870135945060408701359350606087013567ffffffffffffffff8111156144a0578283fd5b6144ac89828a0161426d565b979a9699509497949695608090950135949350505050565b600080600080606085870312156144d9578182fd5b843567ffffffffffffffff8111156144ef578283fd5b6144fb8782880161426d565b909550935050602085013561450f81614b6a565b9150604085013561451f81614b6a565b939692955090935050565b60006080828403121561453b578081fd5b8260808301111561277d578081fd5b60006020828403121561455b578081fd5b8151613ec781614b7f565b600060208284031215614577578081fd5b5035919050565b60008060408385031215614590578182fd5b82359150602083013561430081614b6a565b600080604083850312156145b4578182fd5b50508035926020909101359150565b6000602082840312156145d4578081fd5b8135613ec781614b8d565b6000602082840312156145f0578081fd5b8151613ec781614b8d565b60006020828403121561460c578081fd5b813567ffffffffffffffff811115614622578182fd5b8201601f81018413614632578182fd5b61125f848235602084016141f7565b600060208284031215614652578081fd5b5051919050565b60008151808452614671816020860160208601614a81565b601f01601f19169290920160200192915050565b60008351614697818460208801614a81565b8351908301906146ab818360208801614a81565b01949350505050565b600082516146c6818460208701614a81565b661798173539b7b760c91b920191825250600701919050565b600083516146f1818460208801614a81565b602f60f81b908301908152835161470f816001840160208801614a81565b64173539b7b760d91b60019290910191820152600601949350505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351614765816017850160208801614a81565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351614796816028840160208801614a81565b01602801949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906147d590830184614659565b9695505050505050565b60018060a01b0384168152826020820152606060408201526000613b126060830184614659565b602081016003831061482857634e487b7160e01b600052602160045260246000fd5b91905290565b602081526000613ec76020830184614659565b60208082526018908201527f5061796d656e7453706c697474657273206e6f74207365740000000000000000604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601f908201527f43616e206f6e6c79206d696e74206f6e65206f6620666f7572206c616e657300604082015260600190565b6020808252601d908201527f53616c652073746174652069736e27742041445649534f525f53414c45000000604082015260600190565b6020808252600e908201526d14185e5b595b9d0819985a5b195960921b604082015260600190565b60208082526017908201527f43616c6c6572206973206e6f74207468652061646d696e000000000000000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60008219821115614a3257614a32614b28565b500190565b600082614a4657614a46614b3e565b500490565b6000816000190483118215151615614a6557614a65614b28565b500290565b600082821015614a7c57614a7c614b28565b500390565b60005b83811015614a9c578181015183820152602001614a84565b8381111561248c5750506000910152565b600081614abc57614abc614b28565b506000190190565b600181811c90821680614ad857607f821691505b6020821081141561277d57634e487b7160e01b600052602260045260246000fd5b6000600019821415614b0d57614b0d614b28565b5060010190565b600082614b2357614b23614b3e565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611ce357600080fd5b8015158114611ce357600080fd5b6001600160e01b031981168114611ce357600080fdfe3496e2e73c4d42b75d702e60d9e48102720b8691234415963a5a857b86425d07697066733a2f2f516d5748435641796b644d645559456371724353674d55516a5a584645764e4c444266774c57337645514668666aa26469706673582212202d5d12a39e2263a0317a272e7fde146325973ccbe4ef7306239e29a336622de564736f6c634300080400333496e2e73c4d42b75d702e60d9e48102720b8691234415963a5a857b86425d07697066733a2f2f516d5a5036473464646b6838586354416265537444526f783365326d734e614b574e45416b336461676a624a31542f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec80000000000000000000000000000d95e5c3c2fae90f3831696101d9bd9b006654464

Deployed Bytecode

0x6080604052600436106103b85760003560e01c80638b670d0a116101f2578063c7aa36d71161010d578063ed5dcff8116100a0578063f2fde38b1161006f578063f2fde38b14610b4e578063f413889714610521578063f636a84714610b6e578063fc06549914610b8e57600080fd5b8063ed5dcff814610ad9578063ee7e893914610af9578063f0a3a97c14610b19578063f14faf6f14610b3b57600080fd5b8063e36b0b37116100dc578063e36b0b3714610a53578063e8a3d48514610a68578063e985e9c514610a7d578063ed5ab3f614610ac657600080fd5b8063c7aa36d7146109de578063c87b56dd146109f3578063d547741f14610a13578063e23e21f914610a3357600080fd5b8063a217fddf11610185578063b66a0e5d11610154578063b66a0e5d14610946578063b88d4fde1461095b578063b9d2eb5d1461097b578063bb9a8e161461099b57600080fd5b8063a217fddf146108bb578063a22cb465146108d0578063a9e3586b146108f0578063ac00ea731461090357600080fd5b806392dc2997116101c157806392dc29971461084a57806394985ddd1461086a57806395d89b411461088a5780639a846ee81461089f57600080fd5b80638b670d0a146107d75780638bad0c0a146107f75780638da5cb5b1461080c57806391d148541461082a57600080fd5b8063492c3af8116102e25780636f64500211610275578063715018a611610244578063715018a6146107665780637f205a741461077b5780637f6d1e79146107975780637fee7b27146107b757600080fd5b80636f645002146106e6578063707502f71461070657806370886eb91461072657806370a082311461074657600080fd5b806362f8e37d116102b157806362f8e37d146106665780636352211e146106865780636726344c146106a65780636a96071e146106c657600080fd5b8063492c3af8146105eb5780635b087f54146106075780635c67a06714610623578063603f4d521461063857600080fd5b806323b872dd1161035a5780632f2ff15d116103295780632f2ff15d146105755780633545eb4a1461059557806336568abe146105ab57806342842e0e146105cb57600080fd5b806323b872dd146104d1578063248a9ca3146104f15780632a0689da146105215780632a55205a1461053657600080fd5b8063081812fc11610396578063081812fc1461042b578063095ea7b3146104635780630cb71584146104835780630ef5ba4e146104b157600080fd5b806301ffc9a7146103bd57806304c98b2b146103f257806306fdde0314610409575b600080fd5b3480156103c957600080fd5b506103dd6103d83660046145c3565b610ba3565b60405190151581526020015b60405180910390f35b3480156103fe57600080fd5b50610407610bce565b005b34801561041557600080fd5b5061041e610cbe565b6040516103e9919061482e565b34801561043757600080fd5b5061044b610446366004614566565b610d50565b6040516001600160a01b0390911681526020016103e9565b34801561046f57600080fd5b5061040761047e3660046143f5565b610de5565b34801561048f57600080fd5b506104a361049e3660046145fb565b610efb565b6040519081526020016103e9565b3480156104bd57600080fd5b506104a36104cc366004614566565b61107a565b3480156104dd57600080fd5b506104076104ec36600461430b565b6110a6565b3480156104fd57600080fd5b506104a361050c366004614566565b60009081526009602052604090206001015490565b34801561052d57600080fd5b506104a3600481565b34801561054257600080fd5b506105566105513660046145a2565b6110d7565b604080516001600160a01b0390931683526020830191909152016103e9565b34801561058157600080fd5b5061040761059036600461457e565b611111565b3480156105a157600080fd5b506104a36107b081565b3480156105b757600080fd5b506104076105c636600461457e565b611137565b3480156105d757600080fd5b506104076105e636600461430b565b6111b5565b3480156105f757600080fd5b506104a36722b1c8c1227a000081565b34801561061357600080fd5b506104a36768155a43676e000081565b34801561062f57600080fd5b506104a3601e81565b34801561064457600080fd5b5060125461065990600160a01b900460ff1681565b6040516103e99190614806565b34801561067257600080fd5b506104a3610681366004614566565b6111d0565b34801561069257600080fd5b5061044b6106a1366004614566565b611267565b3480156106b257600080fd5b506104a36106c1366004614566565b6112de565b3480156106d257600080fd5b506104076106e1366004614566565b61130f565b3480156106f257600080fd5b506104076107013660046144c4565b611386565b34801561071257600080fd5b50610407610721366004614454565b61151d565b34801561073257600080fd5b506104a361074136600461452a565b6116c5565b34801561075257600080fd5b506104a36107613660046142b7565b6119e7565b34801561077257600080fd5b50610407611a6e565b34801561078757600080fd5b506104a367016345785d8a000081565b3480156107a357600080fd5b506104a36107b23660046142b7565b611ad4565b3480156107c357600080fd5b506104a36107d2366004614566565b611b84565b3480156107e357600080fd5b506104076107f23660046142b7565b611b92565b34801561080357600080fd5b50610407611ce6565b34801561081857600080fd5b506008546001600160a01b031661044b565b34801561083657600080fd5b506103dd61084536600461457e565b611dd5565b34801561085657600080fd5b506104a3610865366004614566565b611e00565b34801561087657600080fd5b506104076108853660046145a2565b611e47565b34801561089657600080fd5b5061041e611ec9565b3480156108ab57600080fd5b506104a36706f05b59d3b2000081565b3480156108c757600080fd5b506104a3600081565b3480156108dc57600080fd5b506104076108eb3660046143c8565b611ed8565b6104076108fe366004614454565b611f9d565b34801561090f57600080fd5b506104a361091e3660046143f5565b6001600160a01b03919091166000908152600a60209081526040808320938352929052205490565b34801561095257600080fd5b5061040761239e565b34801561096757600080fd5b5061040761097636600461434b565b61245a565b34801561098757600080fd5b506104076109963660046142b7565b612492565b3480156109a757600080fd5b506104a36109b63660046143f5565b6001600160a01b03919091166000908152600b60209081526040808320938352929052205490565b3480156109ea57600080fd5b506104a36124d1565b3480156109ff57600080fd5b5061041e610a0e366004614566565b612513565b348015610a1f57600080fd5b50610407610a2e36600461457e565b61267a565b348015610a3f57600080fd5b506104a3610a4e366004614566565b6126a0565b348015610a5f57600080fd5b50610407612783565b348015610a7457600080fd5b5061041e612840565b348015610a8957600080fd5b506103dd610a983660046142d3565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610407610ad43660046145a2565b612860565b348015610ae557600080fd5b50610407610af43660046142b7565b612b72565b348015610b0557600080fd5b506104a3610b14366004614420565b612bb1565b348015610b2557600080fd5b506104a3600080516020614ba483398151915281565b610407610b49366004614566565b612c00565b348015610b5a57600080fd5b50610407610b693660046142b7565b612e1b565b348015610b7a57600080fd5b50610407610b89366004614566565b612ee3565b348015610b9a57600080fd5b506104a3612f5a565b60006001600160e01b0319821663152a902d60e11b1480610bc85750610bc882612f6a565b92915050565b610bd9600033611dd5565b610bfe5760405162461bcd60e51b8152600401610bf590614960565b60405180910390fd5b6000601254600160a01b900460ff166002811115610c2c57634e487b7160e01b600052602160045260246000fd5b14610c495760405162461bcd60e51b8152600401610bf590614901565b6012546001600160a01b0316610ca15760405162461bcd60e51b815260206004820152601b60248201527f436f6e666967757265207061796d656e742073706c69747465727300000000006044820152606401610bf5565b601280546001919060ff60a01b1916600160a01b835b0217905550565b606060008054610ccd90614ac4565b80601f0160208091040260200160405190810160405280929190818152602001828054610cf990614ac4565b8015610d465780601f10610d1b57610100808354040283529160200191610d46565b820191906000526020600020905b815481529060010190602001808311610d2957829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610dc95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bf5565b506000908152600460205260409020546001600160a01b031690565b6000610df082611267565b9050806001600160a01b0316836001600160a01b03161415610e5e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610bf5565b336001600160a01b0382161480610e7a5750610e7a8133610a98565b610eec5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610bf5565b610ef68383612f8f565b505050565b6000610f078133611dd5565b610f235760405162461bcd60e51b8152600401610bf590614960565b6040516370a0823160e01b81523060048201527f0000000000000000000000000000000000000000000000001bc16d674ec80000907f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316906370a082319060240160206040518083038186803b158015610fa457600080fd5b505afa158015610fb8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fdc9190614641565b101561101c5760405162461bcd60e51b815260206004820152600f60248201526e4e6f7420656e6f756768204c494e4b60881b6044820152606401610bf5565b815161102f90601b906020850190614167565b50610bc87faa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4457f0000000000000000000000000000000000000000000000001bc16d674ec80000612ffd565b6000601c82612670811061109e57634e487b7160e01b600052603260045260246000fd5b015492915050565b6110b03382613188565b6110cc5760405162461bcd60e51b8152600401610bf590614997565b610ef683838361327b565b6012546001600160a01b03166000816110ef57600080fd5b6127106110fe6102ee85614a4b565b6111089190614a37565b90509250929050565b60008281526009602052604090206001015461112d813361341b565b610ef6838361347f565b6001600160a01b03811633146111a75760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610bf5565b6111b18282613505565b5050565b610ef68383836040518060200160405280600081525061245a565b600080611207600c84600581106111f757634e487b7160e01b600052603260045260246000fd5b01546001600160a01b031661356c565b905060048314156112185792915050565b601254600090611230906001600160a01b031661356c565b90506064601e611241600484614a37565b61124b9190614a4b565b6112559190614a37565b61125f9083614a1f565b949350505050565b6000818152600260205260408120546001600160a01b031680610bc85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610bf5565b60006015826005811061130157634e487b7160e01b600052603260045260246000fd5b0154610bc8906107b0614a6a565b61131a600033611dd5565b6113365760405162461bcd60e51b8152600401610bf590614960565b6000601254600160a01b900460ff16600281111561136457634e487b7160e01b600052602160045260246000fd5b146113815760405162461bcd60e51b8152600401610bf590614901565b601355565b61139e600080516020614ba483398151915233611dd5565b6113ea5760405162461bcd60e51b815260206004820152601b60248201527f43616c6c6572206973206e6f74207468652074726561737572657200000000006044820152606401610bf5565b6113f660046001614a1f565b831461145a5760405162461bcd60e51b815260206004820152602d60248201527f4e6565642061205061796d656e7453706c697474657220666f7220656163682060448201526c0636861726974792067726f757609c1b6064820152608401610bf5565b60005b838110156114ec5784848281811061148557634e487b7160e01b600052603260045260246000fd5b905060200201602081019061149a91906142b7565b600c82600581106114bb57634e487b7160e01b600052603260045260246000fd5b0180546001600160a01b0319166001600160a01b0392909216919091179055806114e481614af9565b91505061145d565b50601180546001600160a01b039384166001600160a01b031991821617909155601280549290931691161790555050565b600260075414156115405760405162461bcd60e51b8152600401610bf5906149e8565b600260075584600481106115665760405162461bcd60e51b8152600401610bf5906148ca565b6000611573888888612bb1565b90506115b685858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601354915084905061360a565b6115f95760405162461bcd60e51b815260206004820152601460248201527324b73b30b634b21026b2b935b63290383937b7b360611b6044820152606401610bf5565b6001600160a01b0388166000908152600a602090815260408083208a8452909152902054869061162a908590614a1f565b11156116715760405162461bcd60e51b8152602060048201526016602482015275547269656420746f206d696e7420746f6f206d616e7960501b6044820152606401610bf5565b6001600160a01b0388166000908152600a602090815260408083208a8452909152812080548592906116a4908490614a1f565b909155506116b590508789856136c7565b5050600160075550505050505050565b6000600260075414156116ea5760405162461bcd60e51b8152600401610bf5906149e8565b600260075560005b6004811015611898578061172984836004811061171f57634e487b7160e01b600052603260045260246000fd5b6020020135611b84565b146117825760405162461bcd60e51b815260206004820152602360248201527f4d7573742068617665206120746f6b656e2066726f6d2065616368206368617260448201526269747960e81b6064820152608401610bf5565b6117af8382600481106117a557634e487b7160e01b600052603260045260246000fd5b60200201356126a0565b6003146117f65760405162461bcd60e51b81526020600482015260156024820152744d75737420626520696e2066696e616c20666f726d60581b6044820152606401610bf5565b3361182484836004811061181a57634e487b7160e01b600052603260045260246000fd5b6020020135611267565b6001600160a01b0316146118865760405162461bcd60e51b815260206004820152602360248201527f4d757374206f776e20746865206261746f6e7320746f206275726e2d746f2d6d6044820152621a5b9d60ea1b6064820152608401610bf5565b8061189081614af9565b9150506116f2565b5060005b60048110156118e4576118d28382600481106118c857634e487b7160e01b600052603260045260246000fd5b60200201356137fc565b806118dc81614af9565b91505061189c565b506118f260043360016136c7565b905060005b60048110156119dc57601c83826004811061192257634e487b7160e01b600052603260045260246000fd5b6020020135612670811061194657634e487b7160e01b600052603260045260246000fd5b0154601c83612670811061196a57634e487b7160e01b600052603260045260246000fd5b01600082825461197a9190614a1f565b9091555060009050601c8483600481106119a457634e487b7160e01b600052603260045260246000fd5b602002013561267081106119c857634e487b7160e01b600052603260045260246000fd5b0155806119d481614af9565b9150506118f7565b506001600755919050565b60006001600160a01b038216611a525760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610bf5565b506001600160a01b031660009081526003602052604090205490565b6008546001600160a01b03163314611ac85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610bf5565b611ad26000613897565b565b6012546000908190611aef906001600160a01b0316846138e9565b601154909150611b08906001600160a01b0316846138e9565b611b129082614a1f565b905060005b611b2360046001614a1f565b811015611b7d57611b5f600c8260058110611b4e57634e487b7160e01b600052603260045260246000fd5b01546001600160a01b0316856138e9565b611b699083614a1f565b915080611b7581614af9565b915050611b17565b5092915050565b6000610bc86107b083614a37565b601254604051631916558760e01b81526001600160a01b03838116600483015290911690631916558790602401600060405180830381600087803b158015611bd957600080fd5b505af1925050508015611bea575060015b5060005b611bfa60046001614a1f565b811015611c8c57600c8160058110611c2257634e487b7160e01b600052603260045260246000fd5b0154604051631916558760e01b81526001600160a01b03848116600483015290911690631916558790602401600060405180830381600087803b158015611c6857600080fd5b505af1925050508015611c79575060015b5080611c8481614af9565b915050611bee565b50601154604051631916558760e01b81526001600160a01b03838116600483015290911690631916558790602401600060405180830381600087803b158015611cd457600080fd5b505af19250505080156111b157505b50565b611cf1600033611dd5565b611d0d5760405162461bcd60e51b8152600401610bf590614960565b6002601254600160a01b900460ff166002811115611d3b57634e487b7160e01b600052602160045260246000fd5b14611d885760405162461bcd60e51b815260206004820152601c60248201527f41646d696e20726571756972656420746f2073746172742073616c65000000006044820152606401610bf5565b611d93600033611137565b611dab600080516020614ba483398151915233611137565b33611dbe6008546001600160a01b031690565b6001600160a01b03161415611ad257611ad2611a6e565b60009182526009602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600080611e0f6107b084614a37565b905060006107b0601a5485611e249190614a1f565b611e2e9190614b14565b905080611e3d6107b084614a4b565b61125f9190614a1f565b336001600160a01b037f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb79521614611ebf5760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610bf5565b6111b18282613b1b565b606060018054610ccd90614ac4565b6001600160a01b038216331415611f315760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610bf5565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60026007541415611fc05760405162461bcd60e51b8152600401610bf5906149e8565b60026007558460048110611fe65760405162461bcd60e51b8152600401610bf5906148ca565b6000601254600160a01b900460ff16600281111561201457634e487b7160e01b600052602160045260246000fd5b141561205b5760405162461bcd60e51b8152602060048201526016602482015275141c995cd85b19481a185cdb89dd081cdd185c9d195960521b6044820152606401610bf5565b6000600c876005811061207e57634e487b7160e01b600052603260045260246000fd5b01546001600160a01b0316148015906120a157506011546001600160a01b031615155b6120bd5760405162461bcd60e51b8152600401610bf590614841565b6120cf8267016345785d8a0000614a4b565b34146121135760405162461bcd60e51b815260206004820152601360248201527215dc9bdb99c81155121cc81c9958d95a5d9959606a1b6044820152606401610bf5565b6000612120888888612bb1565b905061216385858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601454915084905061360a565b6121a65760405162461bcd60e51b815260206004820152601460248201527324b73b30b634b21026b2b935b63290383937b7b360611b6044820152606401610bf5565b6001600160a01b0388166000908152600b602090815260408083208a845290915290205486906121d7908590614a1f565b111561221e5760405162461bcd60e51b8152602060048201526016602482015275547269656420746f206d696e7420746f6f206d616e7960501b6044820152606401610bf5565b6001600160a01b0388166000908152600b602090815260408083208a845290915281208054859290612251908490614a1f565b90915550600090506064612266601e34614a4b565b6122709190614a37565b90506000600c896005811061229557634e487b7160e01b600052603260045260246000fd5b01546040516001600160a01b03909116908390600081818185875af1925050503d80600081146122e1576040519150601f19603f3d011682016040523d82523d6000602084013e6122e6565b606091505b50509050806123075760405162461bcd60e51b8152600401610bf590614938565b6011546001600160a01b031661231d8334614a6a565b604051600081818185875af1925050503d8060008114612359576040519150601f19603f3d011682016040523d82523d6000602084013e61235e565b606091505b505080915050806123815760405162461bcd60e51b8152600401610bf590614938565b61238c898b876136c7565b50506001600755505050505050505050565b6123a9600033611dd5565b6123c55760405162461bcd60e51b8152600401610bf590614960565b6001601254600160a01b900460ff1660028111156123f357634e487b7160e01b600052602160045260246000fd5b146124405760405162461bcd60e51b815260206004820152601860248201527f53616c652073746174652069736e27742050524553414c4500000000000000006044820152606401610bf5565b601280546002919060ff60a01b1916600160a01b83610cb7565b6124643383613188565b6124805760405162461bcd60e51b8152600401610bf590614997565b61248c84848484613b39565b50505050565b61249d600033611dd5565b6124b95760405162461bcd60e51b8152600401610bf590614960565b611ce3600080516020614ba483398151915282611111565b6000805b6124e160046001614a1f565b81101561250f576124f1816111d0565b6124fb9083614a1f565b91508061250781614af9565b9150506124d5565b5090565b6000818152600260205260409020546060906001600160a01b03166125925760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610bf5565b600061259d83611e00565b9050606060046125ac85611b84565b14156125e1576125bb82613b6c565b6040516020016125cb91906146b4565b6040516020818303038152906040529050612624565b60006125ec856126a0565b90506125f783613b6c565b61260082613b6c565b6040516020016126119291906146df565b6040516020818303038152906040529150505b600061262e613c86565b5111612649576040518060200160405280600081525061125f565b612651613c86565b81604051602001612663929190614685565b604051602081830303815290604052949350505050565b600082815260096020526040902060010154612696813361341b565b610ef68383613505565b60006126ab82611b84565b5060046126b783611b84565b106127045760405162461bcd60e51b815260206004820152601960248201527f46696e616c206261746f6e7320646f6e27742065766f6c7665000000000000006044820152606401610bf5565b6000601c83612670811061272857634e487b7160e01b600052603260045260246000fd5b015490506768155a43676e000081106127445750600392915050565b6722b1c8c1227a0000811061275c5750600292915050565b6706f05b59d3b2000081106127745750600192915050565b50600092915050565b50919050565b61278e600033611dd5565b6127aa5760405162461bcd60e51b8152600401610bf590614960565b6000601254600160a01b900460ff1660028111156127d857634e487b7160e01b600052602160045260246000fd5b14156128265760405162461bcd60e51b815260206004820152601a60248201527f53616c652073746174652069732041445649534f525f53414c450000000000006044820152606401610bf5565b601280546000919060ff60a01b1916600160a01b83610cb7565b6060604051806060016040528060358152602001614bc460359139905090565b600260075414156128835760405162461bcd60e51b8152600401610bf5906149e8565b600260075581600481106128a95760405162461bcd60e51b8152600401610bf5906148ca565b6002601254600160a01b900460ff1660028111156128d757634e487b7160e01b600052602160045260246000fd5b1461291c5760405162461bcd60e51b815260206004820152601560248201527453616c652073746174652069736e2774204c49564560581b6044820152606401610bf5565b6000600c846005811061293f57634e487b7160e01b600052603260045260246000fd5b01546001600160a01b03161480159061296257506011546001600160a01b031615155b61297e5760405162461bcd60e51b8152600401610bf590614841565b60048211156129da5760405162461bcd60e51b815260206004820152602260248201527f547269656420746f206d696e7420746f6f206d616e79207065722072657175656044820152611cdd60f21b6064820152608401610bf5565b6129ec8267016345785d8a0000614a4b565b3414612a305760405162461bcd60e51b815260206004820152601360248201527215dc9bdb99c81155121cc81c9958d95a5d9959606a1b6044820152606401610bf5565b60006064612a3f601e34614a4b565b612a499190614a37565b90506000600c8560058110612a6e57634e487b7160e01b600052603260045260246000fd5b01546040516001600160a01b03909116908390600081818185875af1925050503d8060008114612aba576040519150601f19603f3d011682016040523d82523d6000602084013e612abf565b606091505b5050905080612ae05760405162461bcd60e51b8152600401610bf590614938565b6011546001600160a01b0316612af68334614a6a565b604051600081818185875af1925050503d8060008114612b32576040519150601f19603f3d011682016040523d82523d6000602084013e612b37565b606091505b50508091505080612b5a5760405162461bcd60e51b8152600401610bf590614938565b612b658533866136c7565b5050600160075550505050565b612b7d600033611dd5565b612b995760405162461bcd60e51b8152600401610bf590614960565b611ce3600080516020614ba48339815191528261267a565b6040516bffffffffffffffffffffffff19606085901b16602082015260348101839052605481018290526000906074016040516020818303038152906040528051906020012090509392505050565b60026007541415612c235760405162461bcd60e51b8152600401610bf5906149e8565b6002600755612c3181611267565b6001600160a01b0316336001600160a01b031614612c915760405162461bcd60e51b815260206004820181905260248201527f596f75206d757374206f776e20746865206261746f6e20746f20646f6e6174656044820152606401610bf5565b6000612c9c82611b84565b90506000600c8260058110612cc157634e487b7160e01b600052603260045260246000fd5b01546001600160a01b03161415612cea5760405162461bcd60e51b8152600401610bf590614841565b34601c836126708110612d0d57634e487b7160e01b600052603260045260246000fd5b016000828254612d1d9190614a1f565b9091555060009050600c8260058110612d4657634e487b7160e01b600052603260045260246000fd5b01546040516001600160a01b03909116903490600081818185875af1925050503d8060008114612d92576040519150601f19603f3d011682016040523d82523d6000602084013e612d97565b606091505b5050905080612dda5760405162461bcd60e51b815260206004820152600f60248201526e111bdb985d1a5bdb8819985a5b1959608a1b6044820152606401610bf5565b604051348152339084907f1b606d34afacd55873aba0fd274841a10c63e18455f2dffebad2fc60a36b2c839060200160405180910390a35050600160075550565b6008546001600160a01b03163314612e755760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610bf5565b6001600160a01b038116612eda5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bf5565b611ce381613897565b612eee600033611dd5565b612f0a5760405162461bcd60e51b8152600401610bf590614960565b6000601254600160a01b900460ff166002811115612f3857634e487b7160e01b600052602160045260246000fd5b14612f555760405162461bcd60e51b8152600401610bf590614901565b601455565b612f6760046107b0614a4b565b81565b60006001600160e01b03198216637965db0b60e01b1480610bc85750610bc882613c95565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612fc482611267565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb79528486600060405160200161306d929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161309a939291906147df565b602060405180830381600087803b1580156130b457600080fd5b505af11580156130c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130ec919061454a565b50600083815260066020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a090910190925281519183019190912093879052919052613148906001614a1f565b60008581526006602052604090205561125f8482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b6000818152600260205260408120546001600160a01b03166132015760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bf5565b600061320c83611267565b9050806001600160a01b0316846001600160a01b031614806132475750836001600160a01b031661323c84610d50565b6001600160a01b0316145b8061125f57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff1661125f565b826001600160a01b031661328e82611267565b6001600160a01b0316146132f65760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610bf5565b6001600160a01b0382166133585760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610bf5565b613363600082612f8f565b6001600160a01b038316600090815260036020526040812080546001929061338c908490614a6a565b90915550506001600160a01b03821660009081526003602052604081208054600192906133ba908490614a1f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6134258282611dd5565b6111b15761343d816001600160a01b03166014613ce5565b613448836020613ce5565b60405160200161345992919061472d565b60408051601f198184030181529082905262461bcd60e51b8252610bf59160040161482e565b6134898282611dd5565b6111b15760008281526009602090815260408083206001600160a01b03851684529091529020805460ff191660011790556134c13390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61350f8282611dd5565b156111b15760008281526009602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006001600160a01b03821661358457506000919050565b816001600160a01b031631826001600160a01b031663e33b7de36040518163ffffffff1660e01b815260040160206040518083038186803b1580156135c857600080fd5b505afa1580156135dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136009190614641565b610bc89190614a1f565b600081815b85518110156136bc57600086828151811061363a57634e487b7160e01b600052603260045260246000fd5b6020026020010151905080831161367c5760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506136a9565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806136b481614af9565b91505061360f565b509092149392505050565b60008160001080156137075750601584600581106136f557634e487b7160e01b600052603260045260246000fd5b0154613703906107b0614a6a565b8211155b6137535760405162461bcd60e51b815260206004820152601960248201527f436861726974792047726f757020697320736f6c64206f7574000000000000006044820152606401610bf5565b6015846005811061377457634e487b7160e01b600052603260045260246000fd5b01546137826107b086614a4b565b61378c9190614a1f565b905060005b828110156137bc576137ac846137a78385614a1f565b613ece565b6137b581614af9565b9050613791565b5081601585600581106137df57634e487b7160e01b600052603260045260246000fd5b0160008282546137ef9190614a1f565b9091555090949350505050565b600061380782611267565b9050613814600083612f8f565b6001600160a01b038116600090815260036020526040812080546001929061383d908490614a6a565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b03831661390157506000610bc8565b6000836001600160a01b031663e33b7de36040518163ffffffff1660e01b815260040160206040518083038186803b15801561393c57600080fd5b505afa158015613950573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906139749190614641565b613988906001600160a01b03861631614a1f565b604051632614965760e21b81526001600160a01b038581166004830152919250600091861690639852595c9060240160206040518083038186803b1580156139cf57600080fd5b505afa1580156139e3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a079190614641565b905080856001600160a01b0316633a98ef396040518163ffffffff1660e01b815260040160206040518083038186803b158015613a4357600080fd5b505afa158015613a57573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a7b9190614641565b60405163673e156160e11b81526001600160a01b03878116600483015288169063ce7c2ac29060240160206040518083038186803b158015613abc57600080fd5b505afa158015613ad0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613af49190614641565b613afe9085614a4b565b613b089190614a37565b613b129190614a6a565b95945050505050565b613b2860046107b0614a4b565b613b329082614b14565b601a555050565b613b4484848461327b565b613b5084848484613ee8565b61248c5760405162461bcd60e51b8152600401610bf590614878565b606081613b905750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613bba5780613ba481614af9565b9150613bb39050600a83614a37565b9150613b94565b60008167ffffffffffffffff811115613be357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613c0d576020820181803683370190505b5090505b841561125f57613c22600183614a6a565b9150613c2f600a86614b14565b613c3a906030614a1f565b60f81b818381518110613c5d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613c7f600a86614a37565b9450613c11565b6060601b8054610ccd90614ac4565b60006001600160e01b031982166380ac58cd60e01b1480613cc657506001600160e01b03198216635b5e139f60e01b145b80610bc857506301ffc9a760e01b6001600160e01b0319831614610bc8565b60606000613cf4836002614a4b565b613cff906002614a1f565b67ffffffffffffffff811115613d2557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613d4f576020820181803683370190505b509050600360fc1b81600081518110613d7857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110613db557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000613dd9846002614a4b565b613de4906001614a1f565b90505b6001811115613e78576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110613e2657634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110613e4a57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93613e7181614aad565b9050613de7565b508315613ec75760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610bf5565b9392505050565b6111b1828260405180602001604052806000815250613ff2565b60006001600160a01b0384163b15613fea57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613f2c9033908990889088906004016147a2565b602060405180830381600087803b158015613f4657600080fd5b505af1925050508015613f76575060408051601f3d908101601f19168201909252613f73918101906145df565b60015b613fd0573d808015613fa4576040519150601f19603f3d011682016040523d82523d6000602084013e613fa9565b606091505b508051613fc85760405162461bcd60e51b8152600401610bf590614878565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061125f565b50600161125f565b613ffc8383614025565b6140096000848484613ee8565b610ef65760405162461bcd60e51b8152600401610bf590614878565b6001600160a01b03821661407b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bf5565b6000818152600260205260409020546001600160a01b0316156140e05760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bf5565b6001600160a01b0382166000908152600360205260408120805460019290614109908490614a1f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461417390614ac4565b90600052602060002090601f01602090048101928261419557600085556141db565b82601f106141ae57805160ff19168380011785556141db565b828001600101855582156141db579182015b828111156141db5782518255916020019190600101906141c0565b5061250f9291505b8082111561250f57600081556001016141e3565b600067ffffffffffffffff8084111561421257614212614b54565b604051601f8501601f19908116603f0116810190828211818310171561423a5761423a614b54565b8160405280935085815286868601111561425357600080fd5b858560208301376000602087830101525050509392505050565b60008083601f84011261427e578182fd5b50813567ffffffffffffffff811115614295578182fd5b6020830191508360208260051b85010111156142b057600080fd5b9250929050565b6000602082840312156142c8578081fd5b8135613ec781614b6a565b600080604083850312156142e5578081fd5b82356142f081614b6a565b9150602083013561430081614b6a565b809150509250929050565b60008060006060848603121561431f578081fd5b833561432a81614b6a565b9250602084013561433a81614b6a565b929592945050506040919091013590565b60008060008060808587031215614360578081fd5b843561436b81614b6a565b9350602085013561437b81614b6a565b925060408501359150606085013567ffffffffffffffff81111561439d578182fd5b8501601f810187136143ad578182fd5b6143bc878235602084016141f7565b91505092959194509250565b600080604083850312156143da578182fd5b82356143e581614b6a565b9150602083013561430081614b7f565b60008060408385031215614407578182fd5b823561441281614b6a565b946020939093013593505050565b600080600060608486031215614434578283fd5b833561443f81614b6a565b95602085013595506040909401359392505050565b60008060008060008060a0878903121561446c578182fd5b863561447781614b6a565b95506020870135945060408701359350606087013567ffffffffffffffff8111156144a0578283fd5b6144ac89828a0161426d565b979a9699509497949695608090950135949350505050565b600080600080606085870312156144d9578182fd5b843567ffffffffffffffff8111156144ef578283fd5b6144fb8782880161426d565b909550935050602085013561450f81614b6a565b9150604085013561451f81614b6a565b939692955090935050565b60006080828403121561453b578081fd5b8260808301111561277d578081fd5b60006020828403121561455b578081fd5b8151613ec781614b7f565b600060208284031215614577578081fd5b5035919050565b60008060408385031215614590578182fd5b82359150602083013561430081614b6a565b600080604083850312156145b4578182fd5b50508035926020909101359150565b6000602082840312156145d4578081fd5b8135613ec781614b8d565b6000602082840312156145f0578081fd5b8151613ec781614b8d565b60006020828403121561460c578081fd5b813567ffffffffffffffff811115614622578182fd5b8201601f81018413614632578182fd5b61125f848235602084016141f7565b600060208284031215614652578081fd5b5051919050565b60008151808452614671816020860160208601614a81565b601f01601f19169290920160200192915050565b60008351614697818460208801614a81565b8351908301906146ab818360208801614a81565b01949350505050565b600082516146c6818460208701614a81565b661798173539b7b760c91b920191825250600701919050565b600083516146f1818460208801614a81565b602f60f81b908301908152835161470f816001840160208801614a81565b64173539b7b760d91b60019290910191820152600601949350505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351614765816017850160208801614a81565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351614796816028840160208801614a81565b01602801949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906147d590830184614659565b9695505050505050565b60018060a01b0384168152826020820152606060408201526000613b126060830184614659565b602081016003831061482857634e487b7160e01b600052602160045260246000fd5b91905290565b602081526000613ec76020830184614659565b60208082526018908201527f5061796d656e7453706c697474657273206e6f74207365740000000000000000604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601f908201527f43616e206f6e6c79206d696e74206f6e65206f6620666f7572206c616e657300604082015260600190565b6020808252601d908201527f53616c652073746174652069736e27742041445649534f525f53414c45000000604082015260600190565b6020808252600e908201526d14185e5b595b9d0819985a5b195960921b604082015260600190565b60208082526017908201527f43616c6c6572206973206e6f74207468652061646d696e000000000000000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60008219821115614a3257614a32614b28565b500190565b600082614a4657614a46614b3e565b500490565b6000816000190483118215151615614a6557614a65614b28565b500290565b600082821015614a7c57614a7c614b28565b500390565b60005b83811015614a9c578181015183820152602001614a84565b8381111561248c5750506000910152565b600081614abc57614abc614b28565b506000190190565b600181811c90821680614ad857607f821691505b6020821081141561277d57634e487b7160e01b600052602260045260246000fd5b6000600019821415614b0d57614b0d614b28565b5060010190565b600082614b2357614b23614b3e565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611ce357600080fd5b8015158114611ce357600080fd5b6001600160e01b031981168114611ce357600080fdfe3496e2e73c4d42b75d702e60d9e48102720b8691234415963a5a857b86425d07697066733a2f2f516d5748435641796b644d645559456371724353674d55516a5a584645764e4c444266774c57337645514668666aa26469706673582212202d5d12a39e2263a0317a272e7fde146325973ccbe4ef7306239e29a336622de564736f6c63430008040033

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

000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec80000000000000000000000000000d95e5c3c2fae90f3831696101d9bd9b006654464

-----Decoded View---------------
Arg [0] : _vrfCoordinator (address): 0xf0d54349aDdcf704F77AE15b96510dEA15cb7952
Arg [1] : _link (address): 0x514910771AF9Ca656af840dff83E8264EcF986CA
Arg [2] : _vrfKeyHash (bytes32): 0xaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [3] : _vrfFee (uint256): 2000000000000000000
Arg [4] : _treasurer (address): 0xd95e5C3c2FAE90F3831696101d9BD9b006654464

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952
Arg [1] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [2] : aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [3] : 0000000000000000000000000000000000000000000000001bc16d674ec80000
Arg [4] : 000000000000000000000000d95e5c3c2fae90f3831696101d9bd9b006654464


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.