ETH Price: $3,474.63 (+0.31%)

Token

LTOAD (LTOAD)
 

Overview

Max Total Supply

7,777 LTOAD

Holders

700

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
10 LTOAD
0x5f62e523ccf3063fdc38ff7c9b5f69586f90f976
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

The only Chainlink Ecosystem NFT that aims to reward the Chainlink community for their valiant service: educating the masses on all that is Chainlink and staying based. LTOADS aims to connect Chainlink BUILD and ecosystem partners with the force of nature that is Link TOADs (Marines).

# Exchange Pair Price  24H Volume % Volume

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x484bD39D...35AC7fCF5
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
OperatorFilteredToken

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 28 : OperatorFilteredToken.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.13;

import "./LockableRevealERC721EnumerableToken.sol";
import "operator-filter-registry/src/IOperatorFilterRegistry.sol";

contract OperatorFilteredToken is LockableRevealERC721EnumerableToken {

    error OperatorNotAllowed(address operator);

    bool                    public OSFiltering = true;
    address                 public DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);
    IOperatorFilterRegistry public OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);
    uint32         constant public version = 2022120701;

    function setup(TokenConstructorConfig memory config) public virtual override onlyOwner {

        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), DEFAULT_SUBSCRIPTION);
        }
        super.setup(config);
    }

    // Toggle to disable OS filtering
    function toggleOSFilterOperatorState() public onlyOwner() {
        OSFiltering = !OSFiltering;
    }

    function setApprovalForAll(address operator, bool approved) public override(ERC721, IERC721) {
        if(OSFiltering) {
            _checkFilterOperator(operator);
        }
        super.setApprovalForAll(operator, approved);
    }

    function approve(address operator, uint256 tokenId) public override(ERC721, IERC721) {
        if(OSFiltering) {
            _checkFilterOperator(operator);
        }
        super.approve(operator, tokenId);
    }

    function transferFrom(address from, address to, uint256 tokenId) public override(ERC721, IERC721) {
        if (OSFiltering && from != msg.sender) { _checkFilterOperator(msg.sender); }
        super.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId) public override(ERC721, IERC721) {
        if (OSFiltering && from != msg.sender) { _checkFilterOperator(msg.sender); }
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public override(ERC721, IERC721) {
        if (OSFiltering && from != msg.sender) { _checkFilterOperator(msg.sender); }
        super.safeTransferFrom(from, to, tokenId, data);
    }

    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

File 2 of 28 : LockableRevealERC721EnumerableToken.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.13;

import "./IToken.sol";
import "../interfaces/IRegistryConsumer.sol";
import "../interfaces/IRandomNumberProvider.sol";
import "../interfaces/IRandomNumberRequester.sol";
import "../extras/recovery/BlackHolePrevention.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "../../@galaxis/registries/contracts/CommunityList.sol";
import "../../@galaxis/registries/contracts/CommunityRegistry.sol";
import "../overrides/ERC721Enumerable.sol";

contract LockableRevealERC721EnumerableToken is IToken, ERC721Enumerable, Ownable, BlackHolePrevention {
    using Strings  for uint256; 
 
    bytes32 public constant TOKEN_CONTRACT_GIVEAWAY         = keccak256("TOKEN_CONTRACT_GIVEAWAY");
    bytes32 public constant TOKEN_CONTRACT_ACCESS_SALE      = keccak256("TOKEN_CONTRACT_ACCESS_SALE");
    bytes32 public constant TOKEN_CONTRACT_ACCESS_ADMIN     = keccak256("TOKEN_CONTRACT_ACCESS_ADMIN");
    bytes32 public constant TOKEN_CONTRACT_ACCESS_LOCK      = keccak256("TOKEN_CONTRACT_ACCESS_LOCK");
    bytes32 public constant TOKEN_CONTRACT_ACCESS_REVEAL    = keccak256("TOKEN_CONTRACT_ACCESS_REVEAL");

    

    IRegistryConsumer               public TheRegistry;
    string              constant    public REGISTRY_KEY_RANDOM_CONTRACT = "RANDOMV2_SSP";

    uint256                         public projectID;
    uint256                         public maxSupply;
    uint256                         public mintedSupply;    // minted incrementally
    uint256                         public mintedReserve;   
    uint256                         public reservedSupply;  // includes giveaway supply
    uint256                         public giveawaySupply;

    string                          public tokenPreRevealURI;
    string                          public tokenRevealURI;
    bool                            public transferLocked;
    bool                            public lastRevealRequested;

    mapping(uint16 => revealStruct) public reveals;
    mapping(uint256 => uint16)      public requestToRevealId;
    string                          public revealURI;
    uint16                          public currentRevealCount;
    string                          public contractURI;
    bool                            _initialized;
    
    CommunityRegistry               public myCommunityRegistry;

    using EnumerableSet for EnumerableSet.AddressSet;
    // onlyOwner can change contractControllers and transfer it's ownership
    // any contractController can setData
    EnumerableSet.AddressSet contractControllers;
    event contractControllerEvent(address _address, bool mode);
    EnumerableSet.AddressSet contractManagers;
    event contractManagerEvent(address _address, bool mode);

    event Locked(bool);
    event RandomProcessed(uint256 stage, uint256 randNumber, uint256 _shiftsBy, uint256 _start, uint256 _end);
    event ContractURIset(string contractURI);

    function setup(TokenConstructorConfig memory config) public virtual onlyOwner {
        require(!_initialized, "Token: Contract already initialized");
       
        ERC721.setup(config.erc721name, config.erc721symbol);

        uint256 chainId;
        assembly {
            chainId := chainid()
        }

        if(chainId == 1 || chainId == 5 || chainId == 1337 || chainId == 31337) {
            TheRegistry = IRegistryConsumer(0x1e8150050A7a4715aad42b905C08df76883f396F);
        } else {
            require(false, "Token: invalid chainId");
        }

        projectID           = config.projectID;
        tokenPreRevealURI   = config.tokenPreRevealURI;
        tokenRevealURI      = config.tokenRevealURI;
        maxSupply           = config.maxSupply;
        transferLocked      = config.transferLocked;
        reservedSupply      = config.reservedSupply;
        giveawaySupply      = config.giveawaySupply;

        CommunityList COMMUNITY_LIST = CommunityList(TheRegistry.getRegistryAddress("COMMUNITY_LIST"));
        (,address crAddr,) = COMMUNITY_LIST.communities(uint32(projectID));
        myCommunityRegistry = CommunityRegistry(crAddr);

        _initialized = true;
    }


    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 _tokenId
    ) internal override {
        if(from != address(0)) {
            require(!transferLocked, "Token: Transfers are not enabled");
        }
        super._beforeTokenTransfer(from, to, _tokenId);
    }

    /**
     * @dev Sale: mint cards.
     * - DEFAULT_ADMIN_ROLE or TOKEN_CONTRACT_ACCESS_SALE
     */
    function mintIncrementalCards(uint256 numberOfCards, address recipient) external onlyAllowed(TOKEN_CONTRACT_ACCESS_SALE) {
        require(!lastRevealRequested, "Token: Cannot mint after last reveal");
        require(mintedSupply + numberOfCards <= maxSupply - reservedSupply, "Token: This would exceed the number of cards available");
        uint256 mintId = mintedSupply + 1;
        for (uint j = 0; j < numberOfCards; j++) {
            _mint(recipient, mintId++);
        }
        mintedSupply+=numberOfCards;
    }

    /**
     * @dev Admin: mint reserved cards.
     *   Should only mint reserved AFTER the sale is over.
     * - DEFAULT_ADMIN_ROLE or TOKEN_CONTRACT_ACCESS_ADMIN
     */
    function mintReservedCards(uint256 numberOfCards, address recipient) external onlyAllowed(TOKEN_CONTRACT_ACCESS_ADMIN) {
        require(lastRevealRequested, "Token: Last reveal must be requested first");
        require(mintedReserve + numberOfCards <= reservedSupply - giveawaySupply, "Token: This would exceed the number of cards reserved cards available");
        uint256 mintId = mintedSupply + mintedReserve + 1;
        for (uint j = 0; j < numberOfCards; j++) {
            _mint(recipient, mintId++);
        }
        mintedReserve+=numberOfCards;
    }

    /**
     * @dev DropRegistry util
     */
    function getFirstGiveawayCardId() public view returns (uint256) {
        return mintedSupply + reservedSupply - giveawaySupply + 1;
    }

    /**
     * @dev DropRegistry: mint specific giveaway card.
     *   Can only mint after reserve has been minted.
     * - DEFAULT_ADMIN_ROLE or TOKEN_CONTRACT_GIVEAWAY
     */
    function mintGiveawayCard(uint256 _index, address _recipient) external onlyAllowed(TOKEN_CONTRACT_GIVEAWAY) {
        require(lastRevealRequested, "Token: Last reveal must be requested first");
        require(mintedReserve == reservedSupply - giveawaySupply, "Token: Must mint reserved cards first");
        uint256 firstIndex = getFirstGiveawayCardId();
        require( _index >= firstIndex && _index < firstIndex + giveawaySupply, "Token: Card id not in range");
        _mint(_recipient, _index);
    }

    /**
     * @dev Admin: set PreRevealURI
     * - DEFAULT_ADMIN_ROLE or TOKEN_CONTRACT_ACCESS_ADMIN
     */
    function setPreRevealURI(string calldata _tokenPreRevealURI) external onlyAllowed(TOKEN_CONTRACT_ACCESS_ADMIN) {
        tokenPreRevealURI = _tokenPreRevealURI;
    }

    /**
     * @dev Admin: set RevealURI
     * - DEFAULT_ADMIN_ROLE or TOKEN_CONTRACT_ACCESS_ADMIN
     */
    function setRevealURI(string calldata _tokenRevealURI) external onlyAllowed(TOKEN_CONTRACT_ACCESS_ADMIN) {
        tokenRevealURI = _tokenRevealURI;
    }

    /**
     * @dev Admin: reveal tokens starting at prev range end to current supply
     * - DEFAULT_ADMIN_ROLE or TOKEN_CONTRACT_ACCESS_REVEAL
     */
    function revealAtCurrentSupply() external onlyAllowed(TOKEN_CONTRACT_ACCESS_REVEAL) {
        require(!lastRevealRequested, "Token: Last reveal already requested");
        require(reveals[currentRevealCount].RANGE_END < mintedSupply, "Token: Reveal request already exists");
        revealStruct storage currentReveal = reveals[++currentRevealCount];
        currentReveal.RANGE_END = mintedSupply;
        currentReveal.REQUEST_ID = IRandomNumberProvider(TheRegistry.getRegistryAddress(REGISTRY_KEY_RANDOM_CONTRACT)).requestRandomNumberWithCallback();
        requestToRevealId[currentReveal.REQUEST_ID] = currentRevealCount;
    }

    /**
     * @dev Admin: reveal tokens starting at prev range end to max supply
     * - DEFAULT_ADMIN_ROLE or TOKEN_CONTRACT_ACCESS_REVEAL
     */
    function lastReveal() external onlyAllowed(TOKEN_CONTRACT_ACCESS_REVEAL) {
        require(!lastRevealRequested, "Token: Last reveal already requested");
        require(reveals[currentRevealCount].RANGE_END < maxSupply, "Token: Reveal request already exists");
        lastRevealRequested = true;
        revealStruct storage currentReveal = reveals[++currentRevealCount];
        currentReveal.RANGE_END = mintedSupply + reservedSupply;
        currentReveal.REQUEST_ID = IRandomNumberProvider(TheRegistry.getRegistryAddress(REGISTRY_KEY_RANDOM_CONTRACT)).requestRandomNumberWithCallback();
        requestToRevealId[currentReveal.REQUEST_ID] = currentRevealCount;
    }

    /**
     * @dev Chainlink VRF callback
     */
    function process(uint256 _random, uint256 _requestId) external {

        require(msg.sender == TheRegistry.getRegistryAddress(REGISTRY_KEY_RANDOM_CONTRACT), "Token: process() Unauthorised caller");

        // get reveal using _requestId
        uint16 thisRevealId = requestToRevealId[_requestId];
        revealStruct storage thisReveal = reveals[thisRevealId];

        require(!thisReveal.processed, "Token: reveal already processed.");

        if(thisReveal.REQUEST_ID == _requestId) {
            thisReveal.RANDOM_NUM = _random / 2; // Set msb to zero

            // in the very rare case where RANDOM_NUM is 0, use currentReveal.RANGE_END / 3
            if(thisReveal.RANDOM_NUM == 0) {
                thisReveal.RANDOM_NUM = thisReveal.RANGE_END * (10 ** 5) / 3;
            }

            thisReveal.RANGE_START = reveals[currentRevealCount-1].RANGE_END;
            thisReveal.SHIFT = thisReveal.RANDOM_NUM % ( thisReveal.RANGE_END - thisReveal.RANGE_START );
            
            // in the very rare case where the shifting result is 0, do it again but divide by 3
            if(thisReveal.SHIFT == 0) {
                thisReveal.RANDOM_NUM = thisReveal.RANDOM_NUM / 3;
                thisReveal.SHIFT = thisReveal.RANDOM_NUM % ( thisReveal.RANGE_END - thisReveal.RANGE_START );
            }

            thisReveal.processed = true;

            emit RandomProcessed(
                thisRevealId,
                thisReveal.RANDOM_NUM,
                thisReveal.SHIFT,
                thisReveal.RANGE_START,
                thisReveal.RANGE_END
            );

        } else revert("Token: Incorrect requestId received");
    }


    function findRevealRangeForN(uint256 n) public view returns (uint16) {
        for(uint16 i = 1; i <= currentRevealCount; i++) {
            if(n <= reveals[i].RANGE_END) {
                return i;
            }
        }
        return 0;
    }

    function uri(uint256 n) public view returns (uint256) {
        uint16 rangeId = findRevealRangeForN(n); 
        // outside ranges
        if(rangeId == 0) {
            return n;
        }

        revealStruct memory currentReveal = reveals[rangeId];
        uint256 shiftedN = n + currentReveal.SHIFT;
        if (shiftedN <= currentReveal.RANGE_END) {
            return shiftedN;
        }
        return currentReveal.RANGE_START + shiftedN - currentReveal.RANGE_END;
    }

    /**
    * @dev Reserved are always at the end of current minted 
    */
    function _reserved(uint256 _tokenId) public view returns (bool) {
        if(_tokenId > mintedSupply + mintedReserve && _tokenId <= mintedSupply + reservedSupply) {
            return true;
        }
        return false;
    }

    /**
    * @dev Get metadata server url for tokenId
    */
    function tokenURI(uint256 _tokenId) public view override(IToken, ERC721) returns (string memory) {
        require(_exists(_tokenId) || _reserved(_tokenId), 'Token: Token does not exist');

        uint16 rangeId = findRevealRangeForN(_tokenId);
        // outside ranges
        if(rangeId == 0) {
            return tokenPreRevealURI;
        }

        revealStruct memory currentReveal = reveals[rangeId];

        // if random number was not set, return pre reveal
        // TODO: most likely remove this.. as we never get here.. we're already outside range
        if(currentReveal.RANDOM_NUM == 0) {
            return tokenPreRevealURI;
        }

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

    /**
     * @dev Admin: Lock / Unlock transfers
     * - DEFAULT_ADMIN_ROLE or TOKEN_CONTRACT_ACCESS_LOCK
     */
    function setTransferLock(bool _locked) external onlyAllowed(TOKEN_CONTRACT_ACCESS_LOCK) {
        transferLocked = _locked;
        emit Locked(_locked);
    }


    function hasRole(bytes32 key, address user) public view returns (bool) {
        return myCommunityRegistry.hasRole(key, user);
    }

    /**
     * @dev Admin: Allow / Dissalow addresses
     */

    modifier onlyAllowed(bytes32 role) { 
        require(isAllowed(role, msg.sender), "Token: Unauthorised");
        _;
    }

    function isAllowed(bytes32 role, address user) public view returns (bool) { 
        return( user == owner() || hasRole(role, user));
    }

    function tellEverything() external view returns (TokenInfo memory) {
        
        revealStruct[] memory _reveals = new revealStruct[](currentRevealCount);
        for(uint16 i = 1; i <= currentRevealCount; i++) {
            _reveals[i - 1] = reveals[i];
        }

        uint256 contractManagers_length = contractManagers.length();
        address[] memory _managers = new address[](contractManagers_length);
        for(uint16 i = 0; i < contractManagers_length; i++) {
            _managers[i] = contractManagers.at(i);
        }

        uint256 contractControllers_length = contractControllers.length();
        address[] memory _controllers = new address[](contractControllers_length);
        for(uint16 i = 0; i < contractControllers_length; i++) {
            _controllers[i] = contractControllers.at(i);
        }

        return TokenInfo(
            name(),
            symbol(),
            projectID,
            maxSupply,
            mintedSupply,
            mintedReserve,
            reservedSupply,
            giveawaySupply,
            tokenPreRevealURI,
            tokenRevealURI,
            transferLocked,
            lastRevealRequested,
            totalSupply(),
            _reveals,
            owner(),
            _managers,
            _controllers
        );
    }

    function getTokenInfoForSale() external view returns (TokenInfoForSale memory) {
        return TokenInfoForSale(
            projectID,
            maxSupply,
            reservedSupply
        );
    }

    /**
     * @dev Admin: set setContractURI
     * - DEFAULT_ADMIN_ROLE or TOKEN_CONTRACT_ACCESS_ADMIN
     */
    function setContractURI(string memory _contractURI) external onlyAllowed(TOKEN_CONTRACT_ACCESS_ADMIN) {
        contractURI = _contractURI;
        emit ContractURIset(_contractURI);
    }
}

File 3 of 28 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);
    function register(address registrant) external;
    function registerAndSubscribe(address registrant, address subscription) external;
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;
    function unregister(address addr) external;
    function updateOperator(address registrant, address operator, bool filtered) external;
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
    function subscribe(address registrant, address registrantToSubscribe) external;
    function unsubscribe(address registrant, bool copyExistingEntries) external;
    function subscriptionOf(address addr) external returns (address registrant);
    function subscribers(address registrant) external returns (address[] memory);
    function subscriberAt(address registrant, uint256 index) external returns (address);
    function copyEntriesOf(address registrant, address registrantToCopy) external;
    function isOperatorFiltered(address registrant, address operator) external returns (bool);
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
    function filteredOperators(address addr) external returns (address[] memory);
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
    function isRegistered(address addr) external returns (bool);
    function codeHashOf(address addr) external returns (bytes32);
}

File 4 of 28 : IToken.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.13;


struct revealStruct {
    uint256 REQUEST_ID;
    uint256 RANDOM_NUM;
    uint256 SHIFT;
    uint256 RANGE_START;
    uint256 RANGE_END;
    bool processed;
}

struct TokenInfoForSale {
    uint256 projectID;
    uint256 maxSupply;
    uint256 reservedSupply;
}

struct TokenInfo {
    string      name;
    string      symbol;
    uint256     projectID;
    uint256     maxSupply;
    uint256     mintedSupply;
    uint256     mintedReserve;
    uint256     reservedSupply;
    uint256     giveawaySupply;
    string      tokenPreRevealURI;
    string      tokenRevealURI;
    bool        transferLocked;
    bool        lastRevealRequested;
    uint256     totalSupply;
    revealStruct[] reveals;
    address     owner;
    address[]   managers;
    address[]   controllers;
}

struct TokenConstructorConfig {
    uint256 projectID;
    uint256 maxSupply;
    string  erc721name;
    string  erc721symbol;
    string  tokenPreRevealURI;
    string  tokenRevealURI;     
    bool    transferLocked;
    uint256 reservedSupply;
    uint256 giveawaySupply;
}

interface IToken {

    function TOKEN_CONTRACT_GIVEAWAY() external returns (bytes32);
    function TOKEN_CONTRACT_ACCESS_SALE() external returns (bytes32);
    function TOKEN_CONTRACT_ACCESS_ADMIN() external returns (bytes32);
    function TOKEN_CONTRACT_ACCESS_LOCK() external returns (bytes32);
    function TOKEN_CONTRACT_ACCESS_REVEAL() external returns (bytes32);

    function mintIncrementalCards(uint256, address) external;
    function mintReservedCards(uint256, address) external;
    function mintGiveawayCard(uint256, address) external;

    function setPreRevealURI(string calldata) external;
    function setRevealURI(string calldata) external;

    function revealAtCurrentSupply() external;
    function lastReveal() external;
    function process(uint256, uint256) external;
    
    function uri(uint256) external view returns (uint256);
    function tokenURI(uint256) external view returns (string memory);

    function setTransferLock(bool) external;
    function hasRole(bytes32, address) external view returns (bool);
    function isAllowed(bytes32, address) external view returns (bool);    

    function getFirstGiveawayCardId() external view returns (uint256);
    function tellEverything() external view returns (TokenInfo memory);
    function getTokenInfoForSale() external view returns (TokenInfoForSale memory);

}

File 5 of 28 : IRegistryConsumer.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.13;

interface IRegistryConsumer {
    function getRegistryAddress(string memory key) external view returns (address) ;
    function getRegistryBool(string memory key) external view returns (bool);
    function getRegistryUINT(string memory key) external view returns (uint256) ;
    function getRegistryString(string memory key) external view returns (string memory) ;
    function isAdmin(address user) external view returns (bool);
}

File 6 of 28 : IRandomNumberProvider.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.13;

interface IRandomNumberProvider {
    function requestRandomNumber() external returns (uint256 requestId);
    function requestRandomNumberWithCallback() external returns (uint256);
    function isRequestComplete(uint256 requestId) external view returns (bool isCompleted);
    function randomNumber(uint256 requestId) external view returns (uint256 randomNum);
    function setAuth(address user, bool grant) external;
}

File 7 of 28 : IRandomNumberRequester.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.13;

interface IRandomNumberRequester {
    function process(uint256 rand, uint256 requestId) external;
}

File 8 of 28 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 9 of 28 : BlackHolePrevention.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.13;

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

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

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

File 10 of 28 : CommunityRegistry.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.13;

import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

//import "hardhat/console.sol";

interface IOwnable {
    function owner() external view returns (address);
}

contract CommunityRegistry is AccessControlEnumerable  {

    bytes32 public constant COMMUNITY_REGISTRY_ADMIN = keccak256("COMMUNITY_REGISTRY_ADMIN");


    uint32                      public  community_id;
    string                      public  community_name;
    address                     public  community_admin;

    mapping(bytes32 => address)         addresses;
    mapping(bytes32 => uint256)         uints;
    mapping(bytes32 => bool)            booleans;
    mapping(bytes32 => string)          strings;

   // mapping(address => bool)    public  admins;

    mapping(address => mapping(address => bool)) public app_admins;

    mapping (uint => string)    public  addressEntries;
    mapping (uint => string)    public  uintEntries;
    mapping (uint => string)    public  boolEntries;
    mapping (uint => string)    public  stringEntries;
    uint                        public  numberOfAddresses;
    uint                        public  numberOfUINTs;
    uint                        public  numberOfBooleans;
    uint                        public  numberOfStrings;

    uint                        public  nextAdmin;
    mapping(address => bool)    public  adminHas;
    mapping(uint256 => address) public  adminEntries;
    mapping(address => uint256) public  appAdminCounter;
    mapping(address =>mapping(uint256 =>address)) public appAdminEntries;

    address                     public  owner;

    bool                                initialised;

    bool                        public  independant;

    event IndependanceDay(bool gain_independance);

    modifier onlyAdmin() {
        require(isCommunityAdmin(COMMUNITY_REGISTRY_ADMIN),"CommunityRegistry : Unauthorised");
        _;
    }

    // function isCommunityAdmin(bytes32 role) public view returns (bool) {
    //     if (independant){        
    //         return(
    //             msg.sender == owner ||
    //             admins[msg.sender]
    //         );
    //     } else {            
    //        IAccessControlEnumerable ac = IAccessControlEnumerable(owner);   
    //        return(
    //             msg.sender == owner || 
    //             hasRole(DEFAULT_ADMIN_ROLE,msg.sender) ||
    //             ac.hasRole(role,msg.sender));
    //     }
    // }

    function isCommunityAdmin(bytes32 role) internal view returns (bool) {
        return isUserCommunityAdmin( role, msg.sender);
    }

    function isUserCommunityAdmin(bytes32 role, address user) public view returns (bool) {
        if (user == owner || hasRole(DEFAULT_ADMIN_ROLE,user) ) return true;
        if (independant){        
            return(
                hasRole(role,user)
            );
        } else {            
           IAccessControlEnumerable ac = IAccessControlEnumerable(owner);   
           return(
                ac.hasRole(role,user));
        }
    }

    function grantRole(bytes32 key, address user) public override(AccessControl,IAccessControl) onlyAdmin {
        _grantRole(key,user);
    }
 
    constructor (
        uint32  _community_id, 
        address _community_admin, 
        string memory _community_name
    ) {
        _init(_community_id,_community_admin,_community_name);
    }

    
    function init(
        uint32  _community_id, 
        address _community_admin, 
        string memory _community_name
    ) external {
        _init(_community_id,_community_admin,_community_name);
    }

    function _init(
        uint32  _community_id, 
        address _community_admin, 
        string memory _community_name
    ) internal {
        require(!initialised,"This can only be called once");
        initialised = true;
        community_id = _community_id;
        community_name  = _community_name;
        community_admin = _community_admin;
        _setupRole(DEFAULT_ADMIN_ROLE, community_admin); // default admin = launchpad
        owner = msg.sender;
    }



    event AdminUpdated(address user, bool isAdmin);
    event AppAdminChanged(address app,address user,bool state);
    //===
    event AddressChanged(string key, address value);
    event UintChanged(string key, uint256 value);
    event BooleanChanged(string key, bool value);
    event StringChanged(string key, string value);

    function setIndependant(bool gain_independance) external onlyAdmin {
        if (independant != gain_independance) {
                independant = gain_independance;
                emit IndependanceDay(gain_independance);
        }
    }


    function setAdmin(address user,bool status ) external onlyAdmin {
        if (status)
            _grantRole(COMMUNITY_REGISTRY_ADMIN,user);
        else
            _revokeRole(COMMUNITY_REGISTRY_ADMIN,user);
    }

    function hash(string memory field) internal pure returns (bytes32) {
        return keccak256(abi.encode(field));
    }

    function setRegistryAddress(string memory fn, address value) external onlyAdmin {
        bytes32 hf = hash(fn);
        addresses[hf] = value;
        addressEntries[numberOfAddresses++] = fn;
        emit AddressChanged(fn,value);
    }

    function setRegistryBool(string memory fn, bool value) external onlyAdmin {
        bytes32 hf = hash(fn);
        booleans[hf] = value;
        boolEntries[numberOfBooleans++] = fn;
        emit BooleanChanged(fn,value);
    }

    function setRegistryString(string memory fn, string memory value) external onlyAdmin {
        bytes32 hf = hash(fn);
        strings[hf] = value;
        stringEntries[numberOfStrings++] = fn;
        emit StringChanged(fn,value);
    }

    function setRegistryUINT(string memory fn, uint value) external onlyAdmin {
        bytes32 hf = hash(fn);
        uints[hf] = value;
        uintEntries[numberOfUINTs++] = fn;
        emit UintChanged(fn,value);
    }

    function setAppAdmin(address app, address user, bool state) external {
        require(
            msg.sender == IOwnable(app).owner() ||
            app_admins[app][msg.sender],
            "You do not have access permission"
        );
        app_admins[app][user] = state;
        if (state)
            appAdminEntries[app][appAdminCounter[app]++] = user;
        emit AppAdminChanged(app,user,state);
    }

    function getRegistryAddress(string memory key) external view returns (address) {
        return addresses[hash(key)];
    }

    function getRegistryBool(string memory key) external view returns (bool) {
        return booleans[hash(key)];
    }

    function getRegistryUINT(string memory key) external view returns (uint256) {
        return uints[hash(key)];
    }

    function getRegistryString(string memory key) external view returns (string memory) {
        return strings[hash(key)];
    }

 

    function isAppAdmin(address app, address user) external view returns (bool) {
        return 
            user == IOwnable(app).owner() ||
            app_admins[app][user];
    }
    
}

File 11 of 28 : CommunityList.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.13;

import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";

contract CommunityList is AccessControlEnumerable { 

    bytes32 public constant CONTRACT_ADMIN = keccak256("CONTRACT_ADMIN");


    uint256                              public numberOfEntries;

    struct community_entry {
        string      name;
        address     registry;
        uint32      id;
    }
    
    mapping(uint32 => community_entry)  public communities;   // community_id => record
    mapping(uint256 => uint32)           public index;         // entryNumber => community_id for enumeration

    event CommunityAdded(uint256 pos, string community_name, address community_registry, uint32 community_id);

    constructor() {
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _setupRole(CONTRACT_ADMIN,msg.sender);
    }

    function addCommunity(uint32 community_id, string memory community_name, address community_registry) external onlyRole(CONTRACT_ADMIN) {
        uint256 pos = numberOfEntries++;
        index[pos]  = community_id;
        communities[community_id] = community_entry(community_name, community_registry, community_id);
        emit CommunityAdded(pos, community_name, community_registry, community_id);
    }

}

File 12 of 28 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 13 of 28 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 14 of 28 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

File 15 of 28 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/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;

    bool private _initialized;

    /**
     * @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_;
    // }

    function setup(string memory name_, string memory symbol_) public {
        require(!_initialized, "ERC721: Contract already initialized");
        _name = name_;
        _symbol = symbol_;
        _initialized = true;
    }

    /**
     * @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 overridden 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 {
        _setApprovalForAll(_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 || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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);

        _afterTokenTransfer(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);

        _afterTokenTransfer(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 from incorrect owner");
        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);

        _afterTokenTransfer(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 Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @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 {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 16 of 28 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

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`.
     *
     * 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;

    /**
     * @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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @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);
}

File 17 of 28 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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 28 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

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 19 of 28 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

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 `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 20 of 28 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 21 of 28 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

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 22 of 28 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

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 23 of 28 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

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() {
        _transferOwnership(_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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 24 of 28 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

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

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

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

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

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

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

File 25 of 28 : AccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControlEnumerable.sol";
import "./AccessControl.sol";
import "../utils/structs/EnumerableSet.sol";

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;

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

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {_grantRole} to track enumerable memberships
     */
    function _grantRole(bytes32 role, address account) internal virtual override {
        super._grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {_revokeRole} to track enumerable memberships
     */
    function _revokeRole(bytes32 role, address account) internal virtual override {
        super._revokeRole(role, account);
        _roleMembers[role].remove(account);
    }
}

File 26 of 28 : IAccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";

/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable is IAccessControl {
    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

File 27 of 28 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol)

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);
        _;
    }

    /**
     * @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 virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @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 virtual {
        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 virtual 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 revoked `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}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    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);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 28 of 28 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

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;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"contractURI","type":"string"}],"name":"ContractURIset","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"","type":"bool"}],"name":"Locked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"stage","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"randNumber","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_shiftsBy","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_start","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_end","type":"uint256"}],"name":"RandomProcessed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"bool","name":"mode","type":"bool"}],"name":"contractControllerEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"bool","name":"mode","type":"bool"}],"name":"contractManagerEvent","type":"event"},{"inputs":[],"name":"DEFAULT_SUBSCRIPTION","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OSFiltering","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REGISTRY_KEY_RANDOM_CONTRACT","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_CONTRACT_ACCESS_ADMIN","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_CONTRACT_ACCESS_LOCK","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_CONTRACT_ACCESS_REVEAL","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_CONTRACT_ACCESS_SALE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_CONTRACT_GIVEAWAY","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TheRegistry","outputs":[{"internalType":"contract IRegistryConsumer","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"_reserved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentRevealCount","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"n","type":"uint256"}],"name":"findRevealRangeForN","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFirstGiveawayCardId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenInfoForSale","outputs":[{"components":[{"internalType":"uint256","name":"projectID","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"reservedSupply","type":"uint256"}],"internalType":"struct TokenInfoForSale","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"giveawaySupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"key","type":"bytes32"},{"internalType":"address","name":"user","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"user","type":"address"}],"name":"isAllowed","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":[],"name":"lastReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastRevealRequested","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"},{"internalType":"address","name":"_recipient","type":"address"}],"name":"mintGiveawayCard","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfCards","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"mintIncrementalCards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfCards","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"mintReservedCards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintedReserve","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"myCommunityRegistry","outputs":[{"internalType":"contract CommunityRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_random","type":"uint256"},{"internalType":"uint256","name":"_requestId","type":"uint256"}],"name":"process","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"projectID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"requestToRevealId","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reservedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tracker","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"retrieve721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tracker","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"retrieveERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"retrieveETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealAtCurrentSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"reveals","outputs":[{"internalType":"uint256","name":"REQUEST_ID","type":"uint256"},{"internalType":"uint256","name":"RANDOM_NUM","type":"uint256"},{"internalType":"uint256","name":"SHIFT","type":"uint256"},{"internalType":"uint256","name":"RANGE_START","type":"uint256"},{"internalType":"uint256","name":"RANGE_END","type":"uint256"},{"internalType":"bool","name":"processed","type":"bool"}],"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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenPreRevealURI","type":"string"}],"name":"setPreRevealURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenRevealURI","type":"string"}],"name":"setRevealURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_locked","type":"bool"}],"name":"setTransferLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"}],"name":"setup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"projectID","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"string","name":"erc721name","type":"string"},{"internalType":"string","name":"erc721symbol","type":"string"},{"internalType":"string","name":"tokenPreRevealURI","type":"string"},{"internalType":"string","name":"tokenRevealURI","type":"string"},{"internalType":"bool","name":"transferLocked","type":"bool"},{"internalType":"uint256","name":"reservedSupply","type":"uint256"},{"internalType":"uint256","name":"giveawaySupply","type":"uint256"}],"internalType":"struct TokenConstructorConfig","name":"config","type":"tuple"}],"name":"setup","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":[],"name":"tellEverything","outputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"projectID","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"mintedSupply","type":"uint256"},{"internalType":"uint256","name":"mintedReserve","type":"uint256"},{"internalType":"uint256","name":"reservedSupply","type":"uint256"},{"internalType":"uint256","name":"giveawaySupply","type":"uint256"},{"internalType":"string","name":"tokenPreRevealURI","type":"string"},{"internalType":"string","name":"tokenRevealURI","type":"string"},{"internalType":"bool","name":"transferLocked","type":"bool"},{"internalType":"bool","name":"lastRevealRequested","type":"bool"},{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"components":[{"internalType":"uint256","name":"REQUEST_ID","type":"uint256"},{"internalType":"uint256","name":"RANDOM_NUM","type":"uint256"},{"internalType":"uint256","name":"SHIFT","type":"uint256"},{"internalType":"uint256","name":"RANGE_START","type":"uint256"},{"internalType":"uint256","name":"RANGE_END","type":"uint256"},{"internalType":"bool","name":"processed","type":"bool"}],"internalType":"struct revealStruct[]","name":"reveals","type":"tuple[]"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"address[]","name":"managers","type":"address[]"},{"internalType":"address[]","name":"controllers","type":"address[]"}],"internalType":"struct TokenInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleOSFilterOperatorState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPreRevealURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenRevealURI","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":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transferLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"n","type":"uint256"}],"name":"uri","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"}]

608060405260208054743cc6cdda760b79bafa08df41ecfa224f810dceb6016001600160a81b0319909116179055602180546001600160a01b0319166daaeb6d7670e522a718067333cd4e1790553480156200005a57600080fd5b5062000066336200006c565b620000be565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6148d180620000ce6000396000f3fe608060405234801561001057600080fd5b50600436106104125760003560e01c806391d1485411610220578063c87b56dd11610130578063e9419325116100b8578063f2fde38b11610087578063f2fde38b14610989578063f9c0611c1461099c578063fbd106f9146109b4578063fc83b827146109c9578063fd6a382e146109f057600080fd5b8063e94193251461091f578063e985e9c514610932578063ea9d68241461096e578063ed3251141461097657600080fd5b8063db739448116100ff578063db739448146108ad578063dbd5fd9b146108c0578063e288e733146108e4578063e7713baa146108ed578063e8a3d4851461091757600080fd5b8063c87b56dd14610876578063d255fe0314610889578063d5abeb011461089c578063d5b014c3146108a557600080fd5b8063a22cb465116101b3578063afa88e5511610182578063afa88e551461082d578063b88d4fde1461083f578063bcc0f72514610852578063bff356181461085a578063c1bd8cf91461086d57600080fd5b8063a22cb465146107ec578063a5b3abfb146107ff578063a811a37b14610812578063abb8def31461082557600080fd5b806398f5b238116101ef57806398f5b2381461072f5780639c30ea51146107a45780639d759d5f146107ad5780639e0f0018146107c557600080fd5b806391d14854146106f9578063938e3d7b1461070c57806395d89b411461071f5780639871d6fa1461072757600080fd5b80633f5916561161032657806366d47d84116102ae57806377d4b5041161027d57806377d4b5041461067a5780637f72f0361461069b57806382027b6d146106ae5780638da5cb5b146106c15780638ffc20e2146106d257600080fd5b806366d47d841461062557806369b2b9a71461064c57806370a082311461065f578063715018a61461067257600080fd5b806344d19d2b116102f557806344d19d2b146105ab5780634cf29258146105b45780634f6ccce7146105df57806354fd4d50146105f25780636352211e1461061257600080fd5b80633f5916561461056a57806341f434341461057d57806342842e0e14610590578063432e2006146105a357600080fd5b806312686aae116103a95780631f4bc79d116103785780631f4bc79d1461050957806323b872dd1461051c5780632a85db551461052f5780632f151b76146105425780632f745c591461055757600080fd5b806312686aae146104d9578063160fba56146104e657806317fd1e2f146104ee57806318160ddd1461050157600080fd5b8063081812fc116103e5578063081812fc14610480578063095ea7b3146104ab5780630e89341c146104be57806310d51dd9146104d157600080fd5b806301ffc9a7146104175780630601115c1461043f5780630677ef811461045457806306fdde031461046b575b600080fd5b61042a610425366004613b1d565b6109fd565b60405190151581526020015b60405180910390f35b61045261044d366004613c2e565b610a28565b005b61045d60105481565b604051908152602001610436565b610473610ac5565b6040516104369190613ce9565b61049361048e366004613cfc565b610b57565b6040516001600160a01b039091168152602001610436565b6104526104b9366004613d2a565b610bec565b61045d6104cc366004613cfc565b610c0e565b610473610cd4565b60155461042a9060ff1681565b610473610d62565b6104526104fc366004613d2a565b610d6f565b60095461045d565b61042a610517366004613cfc565b610e0f565b61045261052a366004613d56565b610e53565b61045261053d366004613d97565b610e87565b61054a610ece565b6040516104369190613eb2565b61045d610565366004613d2a565b6113e4565b61045261057836600461402b565b61147a565b602154610493906001600160a01b031681565b61045261059e366004613d56565b6117a4565b61045d6117d8565b61045d60115481565b6104736040518060400160405280600c81526020016b052414e444f4d56325f5353560a41b81525081565b61045d6105ed366004613cfc565b611807565b6105fd6378871cfd81565b60405163ffffffff9091168152602001610436565b610493610620366004613cfc565b61189a565b61045d7f78095cc8201dcba39b170f4873756afcc9c5fe4c54fba1731ca3be8a9544e76b81565b61045261065a36600461404d565b611911565b61045d61066d36600461407d565b611aaa565b610452611b31565b6019546106889061ffff1681565b60405161ffff9091168152602001610436565b6106886106a9366004613cfc565b611b67565b61042a6106bc36600461404d565b611bbb565b600b546001600160a01b0316610493565b61045d7f7d4398cf7d551d8cb071f228c3b0838dfaf546b384e93039ea180fba606dfac381565b61042a61070736600461404d565b611bfa565b61045261071a36600461409a565b611c75565b610473611cf9565b610452611d08565b61077561073d3660046140ce565b601660205260009081526040902080546001820154600283015460038401546004850154600590950154939492939192909160ff1686565b6040805196875260208701959095529385019290925260608401526080830152151560a082015260c001610436565b61045d600d5481565b601b546104939061010090046001600160a01b031681565b61045d7f2f237764fc2d5c1022c2b3369211bf066f9f9b112c1a699afe91573a989d407f81565b6104526107fa366004614110565b611f43565b61045261080d366004613d2a565b611f61565b610452610820366004613d97565b611ff5565b610452612036565b60155461042a90610100900460ff1681565b61045261084d36600461413e565b612074565b6104736120a9565b6104526108683660046141bd565b6120b6565b61045d600f5481565b610473610884366004613cfc565b61213e565b61045261089736600461404d565b6123da565b61045d600e5481565b610452612533565b600c54610493906001600160a01b031681565b6106886108ce366004613cfc565b60176020526000908152604090205461ffff1681565b61045d60125481565b6108f561258c565b6040805182518152602080840151908201529181015190820152606001610436565b6104736125d6565b61045261092d36600461404d565b6125e3565b61042a6109403660046141da565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61045261273c565b610452610984366004614208565b61288b565b61045261099736600461407d565b61293d565b6020546104939061010090046001600160a01b031681565b61045d60008051602061487c83398151915281565b61045d7fdbd612d55a9aa50e9cdaf6dcccb9ec8386fea10c2783e3ba35c8652cd4932d7c81565b60205461042a9060ff1681565b60006001600160e01b0319821663780e9d6360e01b1480610a225750610a22826129d5565b92915050565b60065460ff1615610a8c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a20436f6e747261637420616c726561647920696e697469616c6044820152631a5e995960e21b60648201526084015b60405180910390fd5b8151610a9f9060009060208501906139fa565b508051610ab39060019060208401906139fa565b50506006805460ff1916600117905550565b606060008054610ad49061431d565b80601f0160208091040260200160405190810160405280929190818152602001828054610b009061431d565b8015610b4d5780601f10610b2257610100808354040283529160200191610b4d565b820191906000526020600020905b815481529060010190602001808311610b3057829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610bd05760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a83565b506000908152600460205260409020546001600160a01b031690565b60205460ff1615610c0057610c0082612a25565b610c0a8282612ad3565b5050565b600080610c1a83611b67565b90508061ffff16600003610c2f575090919050565b61ffff81166000908152601660209081526040808320815160c08101835281548152600182015493810193909352600281015491830182905260038101546060840152600481015460808401526005015460ff16151560a0830152909190610c97908661436d565b905081608001518111610cac57949350505050565b8160800151818360600151610cc1919061436d565b610ccb9190614385565b95945050505050565b60148054610ce19061431d565b80601f0160208091040260200160405190810160405280929190818152602001828054610d0d9061431d565b8015610d5a5780601f10610d2f57610100808354040283529160200191610d5a565b820191906000526020600020905b815481529060010190602001808311610d3d57829003601f168201915b505050505081565b60188054610ce19061431d565b600b546001600160a01b03163314610d995760405162461bcd60e51b8152600401610a839061439c565b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af1158015610de6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e0a91906143d1565b505050565b6000601054600f54610e21919061436d565b82118015610e3e5750601154600f54610e3a919061436d565b8211155b15610e4b57506001919050565b506000919050565b60205460ff168015610e6e57506001600160a01b0383163314155b15610e7c57610e7c33612a25565b610e0a838383612be3565b60008051602061487c833981519152610ea08133611bbb565b610ebc5760405162461bcd60e51b8152600401610a83906143ee565b610ec860138484613a7e565b50505050565b610f6260405180610220016040528060608152602001606081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016060815260200160608152602001600015158152602001600015158152602001600081526020016060815260200160006001600160a01b0316815260200160608152602001606081525090565b60195460009061ffff166001600160401b03811115610f8357610f83613b3a565b604051908082528060200260200182016040528015610fef57816020015b610fdc6040518060c0016040528060008152602001600081526020016000815260200160008152602001600081526020016000151581525090565b815260200190600190039081610fa15790505b50905060015b60195461ffff908116908216116110a25761ffff8116600090815260166020908152604091829020825160c081018452815481526001808301549382019390935260028201549381019390935260038101546060840152600481015460808401526005015460ff16151560a08301528390611070908461441b565b61ffff16815181106110845761108461443e565b6020026020010181905250808061109a90614454565b915050610ff5565b5060006110af601e612c14565b90506000816001600160401b038111156110cb576110cb613b3a565b6040519080825280602002602001820160405280156110f4578160200160208202803683370190505b50905060005b828161ffff16101561115557611115601e61ffff8316612c1e565b828261ffff168151811061112b5761112b61443e565b6001600160a01b03909216602092830291909101909101528061114d81614454565b9150506110fa565b506000611162601c612c14565b90506000816001600160401b0381111561117e5761117e613b3a565b6040519080825280602002602001820160405280156111a7578160200160208202803683370190505b50905060005b828161ffff161015611208576111c8601c61ffff8316612c1e565b828261ffff16815181106111de576111de61443e565b6001600160a01b03909216602092830291909101909101528061120081614454565b9150506111ad565b5060405180610220016040528061121d610ac5565b815260200161122a611cf9565b8152602001600d548152602001600e548152602001600f5481526020016010548152602001601154815260200160125481526020016013805461126c9061431d565b80601f01602080910402602001604051908101604052809291908181526020018280546112989061431d565b80156112e55780601f106112ba576101008083540402835291602001916112e5565b820191906000526020600020905b8154815290600101906020018083116112c857829003601f168201915b50505050508152602001601480546112fc9061431d565b80601f01602080910402602001604051908101604052809291908181526020018280546113289061431d565b80156113755780601f1061134a57610100808354040283529160200191611375565b820191906000526020600020905b81548152906001019060200180831161135857829003601f168201915b505050918352505060155460ff8082161515602084015261010090910416151560408201526060016113a660095490565b81526020018681526020016113c3600b546001600160a01b031690565b6001600160a01b031681526020810194909452604090930152509392505050565b60006113ef83611aaa565b82106114515760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610a83565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b600c80546040805180820182529283526b052414e444f4d56325f5353560a41b602084015251631d2e660b60e21b81526001600160a01b03909116916374b9982c916114c99190600401613ce9565b602060405180830381865afa1580156114e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061150a9190614475565b6001600160a01b0316336001600160a01b0316146115765760405162461bcd60e51b8152602060048201526024808201527f546f6b656e3a2070726f63657373282920556e617574686f7269736564206361604482015263363632b960e11b6064820152608401610a83565b60008181526017602090815260408083205461ffff168084526016909252909120600581015460ff16156115ec5760405162461bcd60e51b815260206004820181905260248201527f546f6b656e3a2072657665616c20616c72656164792070726f6365737365642e6044820152606401610a83565b8054839003611750576116006002856144a8565b600182018190556000036116335760038160040154620186a061162391906144bc565b61162d91906144a8565b60018201555b60195460169060009061164c9060019061ffff1661441b565b61ffff1681526020810191909152604001600020600490810154600383018190559082015461167b9190614385565b816001015461168a91906144db565b600282018190556000036116d757600381600101546116a991906144a8565b6001820155600381015460048201546116c29190614385565b81600101546116d191906144db565b60028201555b60058101805460ff191660019081179091558101546002820154600383015460048401546040805161ffff881681526020810195909552840192909252606083015260808201527f959b44b0b513e15fb6ff0120336443b895d08969842e3aed3ac22eb9e933f7b39060a00160405180910390a1610ec8565b60405162461bcd60e51b815260206004820152602360248201527f546f6b656e3a20496e636f7272656374207265717565737449642072656365696044820152621d995960ea1b6064820152608401610a83565b60205460ff1680156117bf57506001600160a01b0383163314155b156117cd576117cd33612a25565b610e0a838383612c2a565b6000601254601154600f546117ed919061436d565b6117f79190614385565b61180290600161436d565b905090565b600061181260095490565b82106118755760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610a83565b600982815481106118885761188861443e565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b031680610a225760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a83565b7f78095cc8201dcba39b170f4873756afcc9c5fe4c54fba1731ca3be8a9544e76b61193c8133611bbb565b6119585760405162461bcd60e51b8152600401610a83906143ee565b601554610100900460ff16156119bc5760405162461bcd60e51b8152602060048201526024808201527f546f6b656e3a2043616e6e6f74206d696e74206166746572206c6173742072656044820152631d99585b60e21b6064820152608401610a83565b601154600e546119cc9190614385565b83600f546119da919061436d565b1115611a475760405162461bcd60e51b815260206004820152603660248201527f546f6b656e3a205468697320776f756c642065786365656420746865206e756d604482015275626572206f6620636172647320617661696c61626c6560501b6064820152608401610a83565b6000600f546001611a58919061436d565b905060005b84811015611a8c57611a7a8483611a73816144ef565b9450612c45565b80611a84816144ef565b915050611a5d565b5083600f6000828254611a9f919061436d565b909155505050505050565b60006001600160a01b038216611b155760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a83565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b03163314611b5b5760405162461bcd60e51b8152600401610a839061439c565b611b656000612d93565b565b600060015b60195461ffff90811690821611611bb25761ffff81166000908152601660205260409020600401548311611ba05792915050565b80611baa81614454565b915050611b6c565b50600092915050565b6000611bcf600b546001600160a01b031690565b6001600160a01b0316826001600160a01b03161480611bf35750611bf38383611bfa565b9392505050565b601b54604051632474521560e21b8152600481018490526001600160a01b038381166024830152600092610100900416906391d1485490604401602060405180830381865afa158015611c51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bf391906143d1565b60008051602061487c833981519152611c8e8133611bbb565b611caa5760405162461bcd60e51b8152600401610a83906143ee565b8151611cbd90601a9060208501906139fa565b507f74c497646a57fa0eeedc14ff6eec2da957c18c9c77881fe1aff368249b52b5c182604051611ced9190613ce9565b60405180910390a15050565b606060018054610ad49061431d565b7f2f237764fc2d5c1022c2b3369211bf066f9f9b112c1a699afe91573a989d407f611d338133611bbb565b611d4f5760405162461bcd60e51b8152600401610a83906143ee565b601554610100900460ff1615611d775760405162461bcd60e51b8152600401610a8390614508565b600e5460195461ffff1660009081526016602052604090206004015410611db05760405162461bcd60e51b8152600401610a839061454c565b6015805461ff001916610100179055601980546000916016918391908290611ddb9061ffff16614454565b91906101000a81548161ffff021916908361ffff160217905561ffff1661ffff1681526020019081526020016000209050601154600f54611e1c919061436d565b600480830191909155600c80546040805180820182529283526b052414e444f4d56325f5353560a41b602084015251631d2e660b60e21b81526001600160a01b03909116926374b9982c92611e7392909101613ce9565b602060405180830381865afa158015611e90573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eb49190614475565b6001600160a01b031663c532bbac6040518163ffffffff1660e01b81526004016020604051808303816000875af1158015611ef3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f179190614590565b90819055601954600091825260176020526040909120805461ffff191661ffff90921691909117905550565b60205460ff1615611f5757611f5782612a25565b610c0a8282612de5565b600b546001600160a01b03163314611f8b5760405162461bcd60e51b8152600401610a839061439c565b6040516323b872dd60e01b8152306004820152336024820152604481018290526001600160a01b038316906323b872dd90606401600060405180830381600087803b158015611fd957600080fd5b505af1158015611fed573d6000803e3d6000fd5b505050505050565b60008051602061487c83398151915261200e8133611bbb565b61202a5760405162461bcd60e51b8152600401610a83906143ee565b610ec860148484613a7e565b600b546001600160a01b031633146120605760405162461bcd60e51b8152600401610a839061439c565b6020805460ff19811660ff90911615179055565b60205460ff16801561208f57506001600160a01b0384163314155b1561209d5761209d33612a25565b610ec884848484612df0565b60138054610ce19061431d565b7f7d4398cf7d551d8cb071f228c3b0838dfaf546b384e93039ea180fba606dfac36120e18133611bbb565b6120fd5760405162461bcd60e51b8152600401610a83906143ee565b6015805460ff19168315159081179091556040519081527fe3f0ec9c4af57e69d5aeff78a5912ca25733e4458710bab2b55d0985e98aeb5e90602001611ced565b6000818152600260205260409020546060906001600160a01b031615158061216a575061216a82610e0f565b6121b65760405162461bcd60e51b815260206004820152601b60248201527f546f6b656e3a20546f6b656e20646f6573206e6f7420657869737400000000006044820152606401610a83565b60006121c183611b67565b90508061ffff1660000361226257601380546121dc9061431d565b80601f01602080910402602001604051908101604052809291908181526020018280546122089061431d565b80156122555780601f1061222a57610100808354040283529160200191612255565b820191906000526020600020905b81548152906001019060200180831161223857829003601f168201915b5050505050915050919050565b61ffff81166000908152601660209081526040808320815160c08101835281548152600182015493810184905260028201549281019290925260038101546060830152600481015460808301526005015460ff16151560a0820152910361235757601380546122d09061431d565b80601f01602080910402602001604051908101604052809291908181526020018280546122fc9061431d565b80156123495780601f1061231e57610100808354040283529160200191612349565b820191906000526020600020905b81548152906001019060200180831161232c57829003601f168201915b505050505092505050919050565b600061236285610c0e565b905060006123796123746064846144db565b612e22565b9050600061238683612e22565b90506000604051806040016040528060018152602001602f60f81b815250905060148382846040516020016123be94939291906145c5565b6040516020818303038152906040529650505050505050919050565b7fdbd612d55a9aa50e9cdaf6dcccb9ec8386fea10c2783e3ba35c8652cd4932d7c6124058133611bbb565b6124215760405162461bcd60e51b8152600401610a83906143ee565b601554610100900460ff166124485760405162461bcd60e51b8152600401610a839061467f565b6012546011546124589190614385565b601054146124b65760405162461bcd60e51b815260206004820152602560248201527f546f6b656e3a204d757374206d696e7420726573657276656420636172647320604482015264199a5c9cdd60da1b6064820152608401610a83565b60006124c06117d8565b90508084101580156124dd57506012546124da908261436d565b84105b6125295760405162461bcd60e51b815260206004820152601b60248201527f546f6b656e3a2043617264206964206e6f7420696e2072616e676500000000006044820152606401610a83565b610ec88385612c45565b600b546001600160a01b0316331461255d5760405162461bcd60e51b8152600401610a839061439c565b60405133904780156108fc02916000818181858888f19350505050158015612589573d6000803e3d6000fd5b50565b6125b060405180606001604052806000815260200160008152602001600081525090565b6040518060600160405280600d548152602001600e548152602001601154815250905090565b601a8054610ce19061431d565b60008051602061487c8339815191526125fc8133611bbb565b6126185760405162461bcd60e51b8152600401610a83906143ee565b601554610100900460ff1661263f5760405162461bcd60e51b8152600401610a839061467f565b60125460115461264f9190614385565b8360105461265d919061436d565b11156126df5760405162461bcd60e51b815260206004820152604560248201527f546f6b656e3a205468697320776f756c642065786365656420746865206e756d60448201527f626572206f6620636172647320726573657276656420636172647320617661696064820152646c61626c6560d81b608482015260a401610a83565b6000601054600f546126f1919061436d565b6126fc90600161436d565b905060005b84811015612729576127178483611a73816144ef565b80612721816144ef565b915050612701565b508360106000828254611a9f919061436d565b7f2f237764fc2d5c1022c2b3369211bf066f9f9b112c1a699afe91573a989d407f6127678133611bbb565b6127835760405162461bcd60e51b8152600401610a83906143ee565b601554610100900460ff16156127ab5760405162461bcd60e51b8152600401610a8390614508565b600f5460195461ffff16600090815260166020526040902060040154106127e45760405162461bcd60e51b8152600401610a839061454c565b6019805460009160169183919082906128009061ffff16614454565b825461ffff9182166101009390930a838102920219161790915581526020808201929092526040908101600020600f54600480830191909155600c8054845180860186529182526b052414e444f4d56325f5353560a41b958201959095529251631d2e660b60e21b81529194506001600160a01b03909316926374b9982c92611e7392909101613ce9565b600b546001600160a01b031633146128b55760405162461bcd60e51b8152600401610a839061439c565b6021546001600160a01b03163b1561293457602154602054604051633e9f1edf60e11b81523060048201526001600160a01b0361010090920482166024820152911690637d3e3dbe90604401600060405180830381600087803b15801561291b57600080fd5b505af115801561292f573d6000803e3d6000fd5b505050505b61258981612f2a565b600b546001600160a01b031633146129675760405162461bcd60e51b8152600401610a839061439c565b6001600160a01b0381166129cc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a83565b61258981612d93565b60006001600160e01b031982166380ac58cd60e01b1480612a0657506001600160e01b03198216635b5e139f60e01b145b80610a2257506301ffc9a760e01b6001600160e01b0319831614610a22565b6021546001600160a01b03163b1561258957602154604051633185c44d60e21b81523060048201526001600160a01b0383811660248301529091169063c617113490604401602060405180830381865afa158015612a87573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612aab91906143d1565b61258957604051633b79c77360e21b81526001600160a01b0382166004820152602401610a83565b6000612ade8261189a565b9050806001600160a01b0316836001600160a01b031603612b4b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a83565b336001600160a01b0382161480612b675750612b678133610940565b612bd95760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a83565b610e0a838361320e565b612bed338261327c565b612c095760405162461bcd60e51b8152600401610a83906146c9565b610e0a838383613372565b6000610a22825490565b6000611bf38383613519565b610e0a83838360405180602001604052806000815250612074565b6001600160a01b038216612c9b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a83565b6000818152600260205260409020546001600160a01b031615612d005760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a83565b612d0c60008383613543565b6001600160a01b0382166000908152600360205260408120805460019290612d3590849061436d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610c0a3383836135b0565b612dfa338361327c565b612e165760405162461bcd60e51b8152600401610a83906146c9565b610ec88484848461367e565b606081600003612e495750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612e735780612e5d816144ef565b9150612e6c9050600a836144a8565b9150612e4d565b6000816001600160401b03811115612e8d57612e8d613b3a565b6040519080825280601f01601f191660200182016040528015612eb7576020820181803683370190505b5090505b8415612f2257612ecc600183614385565b9150612ed9600a866144db565b612ee490603061436d565b60f81b818381518110612ef957612ef961443e565b60200101906001600160f81b031916908160001a905350612f1b600a866144a8565b9450612ebb565b949350505050565b600b546001600160a01b03163314612f545760405162461bcd60e51b8152600401610a839061439c565b601b5460ff1615612fb35760405162461bcd60e51b815260206004820152602360248201527f546f6b656e3a20436f6e747261637420616c726561647920696e697469616c696044820152621e995960ea1b6064820152608401610a83565b612fc581604001518260600151610a28565b466001811480612fd55750806005145b80612fe1575080610539145b80612fed575080617a69145b1561301d57600c80546001600160a01b031916731e8150050a7a4715aad42b905c08df76883f396f17905561305e565b60405162461bcd60e51b8152602060048201526016602482015275151bdad95b8e881a5b9d985b1a590818da185a5b925960521b6044820152606401610a83565b8151600d556080820151805161307c916013916020909101906139fa565b5060a08201518051613096916014916020909101906139fa565b506020820151600e5560c08201516015805491151560ff1990921691909117905560e0820151601155610100820151601255600c54604051631d2e660b60e21b81526000916001600160a01b0316906374b9982c9061311a906004016020808252600e908201526d10d3d353555392551657d31254d560921b604082015260600190565b602060405180830381865afa158015613137573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061315b9190614475565b600d5460405163d0f4a53760e01b815263ffffffff90911660048201529091506000906001600160a01b0383169063d0f4a53790602401600060405180830381865afa1580156131af573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526131d7919081019061471a565b50601b805460ff196001600160a01b0390931661010002929092166001600160a81b03199092169190911760011790555050505050565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906132438261189a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166132f55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a83565b60006133008361189a565b9050806001600160a01b0316846001600160a01b0316148061334757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80612f225750836001600160a01b031661336084610b57565b6001600160a01b031614949350505050565b826001600160a01b03166133858261189a565b6001600160a01b0316146133e95760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610a83565b6001600160a01b03821661344b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a83565b613456838383613543565b61346160008261320e565b6001600160a01b038316600090815260036020526040812080546001929061348a908490614385565b90915550506001600160a01b03821660009081526003602052604081208054600192906134b890849061436d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008260000182815481106135305761353061443e565b9060005260206000200154905092915050565b6001600160a01b038316156135a55760155460ff16156135a55760405162461bcd60e51b815260206004820181905260248201527f546f6b656e3a205472616e736665727320617265206e6f7420656e61626c65646044820152606401610a83565b610e0a8383836136b1565b816001600160a01b0316836001600160a01b0316036136115760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a83565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613689848484613372565b61369584848484613769565b610ec85760405162461bcd60e51b8152600401610a83906147c3565b6001600160a01b03831661370c5761370781600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b61372f565b816001600160a01b0316836001600160a01b03161461372f5761372f838261386a565b6001600160a01b03821661374657610e0a81613907565b826001600160a01b0316826001600160a01b031614610e0a57610e0a82826139b6565b60006001600160a01b0384163b1561385f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906137ad903390899088908890600401614815565b6020604051808303816000875af19250505080156137e8575060408051601f3d908101601f191682019092526137e591810190614848565b60015b613845573d808015613816576040519150601f19603f3d011682016040523d82523d6000602084013e61381b565b606091505b50805160000361383d5760405162461bcd60e51b8152600401610a83906147c3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612f22565b506001949350505050565b6000600161387784611aaa565b6138819190614385565b6000838152600860205260409020549091508082146138d4576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b60095460009061391990600190614385565b6000838152600a6020526040812054600980549394509092849081106139415761394161443e565b9060005260206000200154905080600983815481106139625761396261443e565b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600980548061399a5761399a614865565b6001900381819060005260206000200160009055905550505050565b60006139c183611aaa565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b828054613a069061431d565b90600052602060002090601f016020900481019282613a285760008555613a6e565b82601f10613a4157805160ff1916838001178555613a6e565b82800160010185558215613a6e579182015b82811115613a6e578251825591602001919060010190613a53565b50613a7a929150613af2565b5090565b828054613a8a9061431d565b90600052602060002090601f016020900481019282613aac5760008555613a6e565b82601f10613ac55782800160ff19823516178555613a6e565b82800160010185558215613a6e579182015b82811115613a6e578235825591602001919060010190613ad7565b5b80821115613a7a5760008155600101613af3565b6001600160e01b03198116811461258957600080fd5b600060208284031215613b2f57600080fd5b8135611bf381613b07565b634e487b7160e01b600052604160045260246000fd5b60405161012081016001600160401b0381118282101715613b7357613b73613b3a565b60405290565b604051601f8201601f191681016001600160401b0381118282101715613ba157613ba1613b3a565b604052919050565b60006001600160401b03821115613bc257613bc2613b3a565b50601f01601f191660200190565b6000613be3613bde84613ba9565b613b79565b9050828152838383011115613bf757600080fd5b828260208301376000602084830101529392505050565b600082601f830112613c1f57600080fd5b611bf383833560208501613bd0565b60008060408385031215613c4157600080fd5b82356001600160401b0380821115613c5857600080fd5b613c6486838701613c0e565b93506020850135915080821115613c7a57600080fd5b50613c8785828601613c0e565b9150509250929050565b60005b83811015613cac578181015183820152602001613c94565b83811115610ec85750506000910152565b60008151808452613cd5816020860160208601613c91565b601f01601f19169290920160200192915050565b602081526000611bf36020830184613cbd565b600060208284031215613d0e57600080fd5b5035919050565b6001600160a01b038116811461258957600080fd5b60008060408385031215613d3d57600080fd5b8235613d4881613d15565b946020939093013593505050565b600080600060608486031215613d6b57600080fd5b8335613d7681613d15565b92506020840135613d8681613d15565b929592945050506040919091013590565b60008060208385031215613daa57600080fd5b82356001600160401b0380821115613dc157600080fd5b818501915085601f830112613dd557600080fd5b813581811115613de457600080fd5b866020828501011115613df657600080fd5b60209290920196919550909350505050565b600081518084526020808501945080840160005b83811015613e6e57815180518852838101518489015260408082015190890152606080820151908901526080808201519089015260a09081015115159088015260c09096019590820190600101613e1c565b509495945050505050565b600081518084526020808501945080840160005b83811015613e6e5781516001600160a01b031687529582019590820190600101613e8d565b6020815260008251610220806020850152613ed1610240850183613cbd565b91506020850151601f1980868503016040870152613eef8483613cbd565b93506040870151606087015260608701516080870152608087015160a087015260a087015160c087015260c087015160e087015260e08701519150610100828188015280880151925050610120818786030181880152613f4f8584613cbd565b945080880151925050610140818786030181880152613f6e8584613cbd565b945080880151925050610160613f878188018415159052565b8701519150610180613f9c8782018415159052565b808801519250506101a08281880152808801519250506101c0818786030181880152613fc88584613e08565b9450808801519250506101e0613fe8818801846001600160a01b03169052565b808801519250506102008187860301818801526140058584613e79565b9088015187820390920184880152935090506140218382613e79565b9695505050505050565b6000806040838503121561403e57600080fd5b50508035926020909101359150565b6000806040838503121561406057600080fd5b82359150602083013561407281613d15565b809150509250929050565b60006020828403121561408f57600080fd5b8135611bf381613d15565b6000602082840312156140ac57600080fd5b81356001600160401b038111156140c257600080fd5b612f2284828501613c0e565b6000602082840312156140e057600080fd5b813561ffff81168114611bf357600080fd5b801515811461258957600080fd5b803561410b816140f2565b919050565b6000806040838503121561412357600080fd5b823561412e81613d15565b91506020830135614072816140f2565b6000806000806080858703121561415457600080fd5b843561415f81613d15565b9350602085013561416f81613d15565b92506040850135915060608501356001600160401b0381111561419157600080fd5b8501601f810187136141a257600080fd5b6141b187823560208401613bd0565b91505092959194509250565b6000602082840312156141cf57600080fd5b8135611bf3816140f2565b600080604083850312156141ed57600080fd5b82356141f881613d15565b9150602083013561407281613d15565b60006020828403121561421a57600080fd5b81356001600160401b038082111561423157600080fd5b90830190610120828603121561424657600080fd5b61424e613b50565b823581526020830135602082015260408301358281111561426e57600080fd5b61427a87828601613c0e565b60408301525060608301358281111561429257600080fd5b61429e87828601613c0e565b6060830152506080830135828111156142b657600080fd5b6142c287828601613c0e565b60808301525060a0830135828111156142da57600080fd5b6142e687828601613c0e565b60a0830152506142f860c08401614100565b60c082015260e083810135908201526101009283013592810192909252509392505050565b600181811c9082168061433157607f821691505b60208210810361435157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561438057614380614357565b500190565b60008282101561439757614397614357565b500390565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000602082840312156143e357600080fd5b8151611bf3816140f2565b602080825260139082015272151bdad95b8e88155b985d5d1a1bdc9a5cd959606a1b604082015260600190565b600061ffff8381169083168181101561443657614436614357565b039392505050565b634e487b7160e01b600052603260045260246000fd5b600061ffff80831681810361446b5761446b614357565b6001019392505050565b60006020828403121561448757600080fd5b8151611bf381613d15565b634e487b7160e01b600052601260045260246000fd5b6000826144b7576144b7614492565b500490565b60008160001904831182151516156144d6576144d6614357565b500290565b6000826144ea576144ea614492565b500690565b60006001820161450157614501614357565b5060010190565b60208082526024908201527f546f6b656e3a204c6173742072657665616c20616c72656164792072657175656040820152631cdd195960e21b606082015260800190565b60208082526024908201527f546f6b656e3a2052657665616c207265717565737420616c72656164792065786040820152636973747360e01b606082015260800190565b6000602082840312156145a257600080fd5b5051919050565b600081516145bb818560208601613c91565b9290920192915050565b600080865481600182811c9150808316806145e157607f831692505b6020808410820361460057634e487b7160e01b86526022600452602486fd5b818015614614576001811461462557614652565b60ff19861689528489019650614652565b60008d81526020902060005b8681101561464a5781548b820152908501908301614631565b505084890196505b50505050505061467461466e61466883896145a9565b876145a9565b856145a9565b979650505050505050565b6020808252602a908201527f546f6b656e3a204c6173742072657665616c206d7573742062652072657175656040820152691cdd195908199a5c9cdd60b21b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008060006060848603121561472f57600080fd5b83516001600160401b0381111561474557600080fd5b8401601f8101861361475657600080fd5b8051614764613bde82613ba9565b81815287602083850101111561477957600080fd5b61478a826020830160208601613c91565b809550505050602084015161479e81613d15565b604085015190925063ffffffff811681146147b857600080fd5b809150509250925092565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061402190830184613cbd565b60006020828403121561485a57600080fd5b8151611bf381613b07565b634e487b7160e01b600052603160045260246000fdfe0c7112aae6457f5c6a25de7d80f58f2fb755235d06d4473246b07240659a270fa2646970667358221220b20c4160c5635a7ea569b925b815e405194460e2e653f40a92c26204b5f20ed364736f6c634300080d0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106104125760003560e01c806391d1485411610220578063c87b56dd11610130578063e9419325116100b8578063f2fde38b11610087578063f2fde38b14610989578063f9c0611c1461099c578063fbd106f9146109b4578063fc83b827146109c9578063fd6a382e146109f057600080fd5b8063e94193251461091f578063e985e9c514610932578063ea9d68241461096e578063ed3251141461097657600080fd5b8063db739448116100ff578063db739448146108ad578063dbd5fd9b146108c0578063e288e733146108e4578063e7713baa146108ed578063e8a3d4851461091757600080fd5b8063c87b56dd14610876578063d255fe0314610889578063d5abeb011461089c578063d5b014c3146108a557600080fd5b8063a22cb465116101b3578063afa88e5511610182578063afa88e551461082d578063b88d4fde1461083f578063bcc0f72514610852578063bff356181461085a578063c1bd8cf91461086d57600080fd5b8063a22cb465146107ec578063a5b3abfb146107ff578063a811a37b14610812578063abb8def31461082557600080fd5b806398f5b238116101ef57806398f5b2381461072f5780639c30ea51146107a45780639d759d5f146107ad5780639e0f0018146107c557600080fd5b806391d14854146106f9578063938e3d7b1461070c57806395d89b411461071f5780639871d6fa1461072757600080fd5b80633f5916561161032657806366d47d84116102ae57806377d4b5041161027d57806377d4b5041461067a5780637f72f0361461069b57806382027b6d146106ae5780638da5cb5b146106c15780638ffc20e2146106d257600080fd5b806366d47d841461062557806369b2b9a71461064c57806370a082311461065f578063715018a61461067257600080fd5b806344d19d2b116102f557806344d19d2b146105ab5780634cf29258146105b45780634f6ccce7146105df57806354fd4d50146105f25780636352211e1461061257600080fd5b80633f5916561461056a57806341f434341461057d57806342842e0e14610590578063432e2006146105a357600080fd5b806312686aae116103a95780631f4bc79d116103785780631f4bc79d1461050957806323b872dd1461051c5780632a85db551461052f5780632f151b76146105425780632f745c591461055757600080fd5b806312686aae146104d9578063160fba56146104e657806317fd1e2f146104ee57806318160ddd1461050157600080fd5b8063081812fc116103e5578063081812fc14610480578063095ea7b3146104ab5780630e89341c146104be57806310d51dd9146104d157600080fd5b806301ffc9a7146104175780630601115c1461043f5780630677ef811461045457806306fdde031461046b575b600080fd5b61042a610425366004613b1d565b6109fd565b60405190151581526020015b60405180910390f35b61045261044d366004613c2e565b610a28565b005b61045d60105481565b604051908152602001610436565b610473610ac5565b6040516104369190613ce9565b61049361048e366004613cfc565b610b57565b6040516001600160a01b039091168152602001610436565b6104526104b9366004613d2a565b610bec565b61045d6104cc366004613cfc565b610c0e565b610473610cd4565b60155461042a9060ff1681565b610473610d62565b6104526104fc366004613d2a565b610d6f565b60095461045d565b61042a610517366004613cfc565b610e0f565b61045261052a366004613d56565b610e53565b61045261053d366004613d97565b610e87565b61054a610ece565b6040516104369190613eb2565b61045d610565366004613d2a565b6113e4565b61045261057836600461402b565b61147a565b602154610493906001600160a01b031681565b61045261059e366004613d56565b6117a4565b61045d6117d8565b61045d60115481565b6104736040518060400160405280600c81526020016b052414e444f4d56325f5353560a41b81525081565b61045d6105ed366004613cfc565b611807565b6105fd6378871cfd81565b60405163ffffffff9091168152602001610436565b610493610620366004613cfc565b61189a565b61045d7f78095cc8201dcba39b170f4873756afcc9c5fe4c54fba1731ca3be8a9544e76b81565b61045261065a36600461404d565b611911565b61045d61066d36600461407d565b611aaa565b610452611b31565b6019546106889061ffff1681565b60405161ffff9091168152602001610436565b6106886106a9366004613cfc565b611b67565b61042a6106bc36600461404d565b611bbb565b600b546001600160a01b0316610493565b61045d7f7d4398cf7d551d8cb071f228c3b0838dfaf546b384e93039ea180fba606dfac381565b61042a61070736600461404d565b611bfa565b61045261071a36600461409a565b611c75565b610473611cf9565b610452611d08565b61077561073d3660046140ce565b601660205260009081526040902080546001820154600283015460038401546004850154600590950154939492939192909160ff1686565b6040805196875260208701959095529385019290925260608401526080830152151560a082015260c001610436565b61045d600d5481565b601b546104939061010090046001600160a01b031681565b61045d7f2f237764fc2d5c1022c2b3369211bf066f9f9b112c1a699afe91573a989d407f81565b6104526107fa366004614110565b611f43565b61045261080d366004613d2a565b611f61565b610452610820366004613d97565b611ff5565b610452612036565b60155461042a90610100900460ff1681565b61045261084d36600461413e565b612074565b6104736120a9565b6104526108683660046141bd565b6120b6565b61045d600f5481565b610473610884366004613cfc565b61213e565b61045261089736600461404d565b6123da565b61045d600e5481565b610452612533565b600c54610493906001600160a01b031681565b6106886108ce366004613cfc565b60176020526000908152604090205461ffff1681565b61045d60125481565b6108f561258c565b6040805182518152602080840151908201529181015190820152606001610436565b6104736125d6565b61045261092d36600461404d565b6125e3565b61042a6109403660046141da565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61045261273c565b610452610984366004614208565b61288b565b61045261099736600461407d565b61293d565b6020546104939061010090046001600160a01b031681565b61045d60008051602061487c83398151915281565b61045d7fdbd612d55a9aa50e9cdaf6dcccb9ec8386fea10c2783e3ba35c8652cd4932d7c81565b60205461042a9060ff1681565b60006001600160e01b0319821663780e9d6360e01b1480610a225750610a22826129d5565b92915050565b60065460ff1615610a8c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a20436f6e747261637420616c726561647920696e697469616c6044820152631a5e995960e21b60648201526084015b60405180910390fd5b8151610a9f9060009060208501906139fa565b508051610ab39060019060208401906139fa565b50506006805460ff1916600117905550565b606060008054610ad49061431d565b80601f0160208091040260200160405190810160405280929190818152602001828054610b009061431d565b8015610b4d5780601f10610b2257610100808354040283529160200191610b4d565b820191906000526020600020905b815481529060010190602001808311610b3057829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610bd05760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a83565b506000908152600460205260409020546001600160a01b031690565b60205460ff1615610c0057610c0082612a25565b610c0a8282612ad3565b5050565b600080610c1a83611b67565b90508061ffff16600003610c2f575090919050565b61ffff81166000908152601660209081526040808320815160c08101835281548152600182015493810193909352600281015491830182905260038101546060840152600481015460808401526005015460ff16151560a0830152909190610c97908661436d565b905081608001518111610cac57949350505050565b8160800151818360600151610cc1919061436d565b610ccb9190614385565b95945050505050565b60148054610ce19061431d565b80601f0160208091040260200160405190810160405280929190818152602001828054610d0d9061431d565b8015610d5a5780601f10610d2f57610100808354040283529160200191610d5a565b820191906000526020600020905b815481529060010190602001808311610d3d57829003601f168201915b505050505081565b60188054610ce19061431d565b600b546001600160a01b03163314610d995760405162461bcd60e51b8152600401610a839061439c565b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af1158015610de6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e0a91906143d1565b505050565b6000601054600f54610e21919061436d565b82118015610e3e5750601154600f54610e3a919061436d565b8211155b15610e4b57506001919050565b506000919050565b60205460ff168015610e6e57506001600160a01b0383163314155b15610e7c57610e7c33612a25565b610e0a838383612be3565b60008051602061487c833981519152610ea08133611bbb565b610ebc5760405162461bcd60e51b8152600401610a83906143ee565b610ec860138484613a7e565b50505050565b610f6260405180610220016040528060608152602001606081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016060815260200160608152602001600015158152602001600015158152602001600081526020016060815260200160006001600160a01b0316815260200160608152602001606081525090565b60195460009061ffff166001600160401b03811115610f8357610f83613b3a565b604051908082528060200260200182016040528015610fef57816020015b610fdc6040518060c0016040528060008152602001600081526020016000815260200160008152602001600081526020016000151581525090565b815260200190600190039081610fa15790505b50905060015b60195461ffff908116908216116110a25761ffff8116600090815260166020908152604091829020825160c081018452815481526001808301549382019390935260028201549381019390935260038101546060840152600481015460808401526005015460ff16151560a08301528390611070908461441b565b61ffff16815181106110845761108461443e565b6020026020010181905250808061109a90614454565b915050610ff5565b5060006110af601e612c14565b90506000816001600160401b038111156110cb576110cb613b3a565b6040519080825280602002602001820160405280156110f4578160200160208202803683370190505b50905060005b828161ffff16101561115557611115601e61ffff8316612c1e565b828261ffff168151811061112b5761112b61443e565b6001600160a01b03909216602092830291909101909101528061114d81614454565b9150506110fa565b506000611162601c612c14565b90506000816001600160401b0381111561117e5761117e613b3a565b6040519080825280602002602001820160405280156111a7578160200160208202803683370190505b50905060005b828161ffff161015611208576111c8601c61ffff8316612c1e565b828261ffff16815181106111de576111de61443e565b6001600160a01b03909216602092830291909101909101528061120081614454565b9150506111ad565b5060405180610220016040528061121d610ac5565b815260200161122a611cf9565b8152602001600d548152602001600e548152602001600f5481526020016010548152602001601154815260200160125481526020016013805461126c9061431d565b80601f01602080910402602001604051908101604052809291908181526020018280546112989061431d565b80156112e55780601f106112ba576101008083540402835291602001916112e5565b820191906000526020600020905b8154815290600101906020018083116112c857829003601f168201915b50505050508152602001601480546112fc9061431d565b80601f01602080910402602001604051908101604052809291908181526020018280546113289061431d565b80156113755780601f1061134a57610100808354040283529160200191611375565b820191906000526020600020905b81548152906001019060200180831161135857829003601f168201915b505050918352505060155460ff8082161515602084015261010090910416151560408201526060016113a660095490565b81526020018681526020016113c3600b546001600160a01b031690565b6001600160a01b031681526020810194909452604090930152509392505050565b60006113ef83611aaa565b82106114515760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610a83565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b600c80546040805180820182529283526b052414e444f4d56325f5353560a41b602084015251631d2e660b60e21b81526001600160a01b03909116916374b9982c916114c99190600401613ce9565b602060405180830381865afa1580156114e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061150a9190614475565b6001600160a01b0316336001600160a01b0316146115765760405162461bcd60e51b8152602060048201526024808201527f546f6b656e3a2070726f63657373282920556e617574686f7269736564206361604482015263363632b960e11b6064820152608401610a83565b60008181526017602090815260408083205461ffff168084526016909252909120600581015460ff16156115ec5760405162461bcd60e51b815260206004820181905260248201527f546f6b656e3a2072657665616c20616c72656164792070726f6365737365642e6044820152606401610a83565b8054839003611750576116006002856144a8565b600182018190556000036116335760038160040154620186a061162391906144bc565b61162d91906144a8565b60018201555b60195460169060009061164c9060019061ffff1661441b565b61ffff1681526020810191909152604001600020600490810154600383018190559082015461167b9190614385565b816001015461168a91906144db565b600282018190556000036116d757600381600101546116a991906144a8565b6001820155600381015460048201546116c29190614385565b81600101546116d191906144db565b60028201555b60058101805460ff191660019081179091558101546002820154600383015460048401546040805161ffff881681526020810195909552840192909252606083015260808201527f959b44b0b513e15fb6ff0120336443b895d08969842e3aed3ac22eb9e933f7b39060a00160405180910390a1610ec8565b60405162461bcd60e51b815260206004820152602360248201527f546f6b656e3a20496e636f7272656374207265717565737449642072656365696044820152621d995960ea1b6064820152608401610a83565b60205460ff1680156117bf57506001600160a01b0383163314155b156117cd576117cd33612a25565b610e0a838383612c2a565b6000601254601154600f546117ed919061436d565b6117f79190614385565b61180290600161436d565b905090565b600061181260095490565b82106118755760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610a83565b600982815481106118885761188861443e565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b031680610a225760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a83565b7f78095cc8201dcba39b170f4873756afcc9c5fe4c54fba1731ca3be8a9544e76b61193c8133611bbb565b6119585760405162461bcd60e51b8152600401610a83906143ee565b601554610100900460ff16156119bc5760405162461bcd60e51b8152602060048201526024808201527f546f6b656e3a2043616e6e6f74206d696e74206166746572206c6173742072656044820152631d99585b60e21b6064820152608401610a83565b601154600e546119cc9190614385565b83600f546119da919061436d565b1115611a475760405162461bcd60e51b815260206004820152603660248201527f546f6b656e3a205468697320776f756c642065786365656420746865206e756d604482015275626572206f6620636172647320617661696c61626c6560501b6064820152608401610a83565b6000600f546001611a58919061436d565b905060005b84811015611a8c57611a7a8483611a73816144ef565b9450612c45565b80611a84816144ef565b915050611a5d565b5083600f6000828254611a9f919061436d565b909155505050505050565b60006001600160a01b038216611b155760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a83565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b03163314611b5b5760405162461bcd60e51b8152600401610a839061439c565b611b656000612d93565b565b600060015b60195461ffff90811690821611611bb25761ffff81166000908152601660205260409020600401548311611ba05792915050565b80611baa81614454565b915050611b6c565b50600092915050565b6000611bcf600b546001600160a01b031690565b6001600160a01b0316826001600160a01b03161480611bf35750611bf38383611bfa565b9392505050565b601b54604051632474521560e21b8152600481018490526001600160a01b038381166024830152600092610100900416906391d1485490604401602060405180830381865afa158015611c51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bf391906143d1565b60008051602061487c833981519152611c8e8133611bbb565b611caa5760405162461bcd60e51b8152600401610a83906143ee565b8151611cbd90601a9060208501906139fa565b507f74c497646a57fa0eeedc14ff6eec2da957c18c9c77881fe1aff368249b52b5c182604051611ced9190613ce9565b60405180910390a15050565b606060018054610ad49061431d565b7f2f237764fc2d5c1022c2b3369211bf066f9f9b112c1a699afe91573a989d407f611d338133611bbb565b611d4f5760405162461bcd60e51b8152600401610a83906143ee565b601554610100900460ff1615611d775760405162461bcd60e51b8152600401610a8390614508565b600e5460195461ffff1660009081526016602052604090206004015410611db05760405162461bcd60e51b8152600401610a839061454c565b6015805461ff001916610100179055601980546000916016918391908290611ddb9061ffff16614454565b91906101000a81548161ffff021916908361ffff160217905561ffff1661ffff1681526020019081526020016000209050601154600f54611e1c919061436d565b600480830191909155600c80546040805180820182529283526b052414e444f4d56325f5353560a41b602084015251631d2e660b60e21b81526001600160a01b03909116926374b9982c92611e7392909101613ce9565b602060405180830381865afa158015611e90573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eb49190614475565b6001600160a01b031663c532bbac6040518163ffffffff1660e01b81526004016020604051808303816000875af1158015611ef3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f179190614590565b90819055601954600091825260176020526040909120805461ffff191661ffff90921691909117905550565b60205460ff1615611f5757611f5782612a25565b610c0a8282612de5565b600b546001600160a01b03163314611f8b5760405162461bcd60e51b8152600401610a839061439c565b6040516323b872dd60e01b8152306004820152336024820152604481018290526001600160a01b038316906323b872dd90606401600060405180830381600087803b158015611fd957600080fd5b505af1158015611fed573d6000803e3d6000fd5b505050505050565b60008051602061487c83398151915261200e8133611bbb565b61202a5760405162461bcd60e51b8152600401610a83906143ee565b610ec860148484613a7e565b600b546001600160a01b031633146120605760405162461bcd60e51b8152600401610a839061439c565b6020805460ff19811660ff90911615179055565b60205460ff16801561208f57506001600160a01b0384163314155b1561209d5761209d33612a25565b610ec884848484612df0565b60138054610ce19061431d565b7f7d4398cf7d551d8cb071f228c3b0838dfaf546b384e93039ea180fba606dfac36120e18133611bbb565b6120fd5760405162461bcd60e51b8152600401610a83906143ee565b6015805460ff19168315159081179091556040519081527fe3f0ec9c4af57e69d5aeff78a5912ca25733e4458710bab2b55d0985e98aeb5e90602001611ced565b6000818152600260205260409020546060906001600160a01b031615158061216a575061216a82610e0f565b6121b65760405162461bcd60e51b815260206004820152601b60248201527f546f6b656e3a20546f6b656e20646f6573206e6f7420657869737400000000006044820152606401610a83565b60006121c183611b67565b90508061ffff1660000361226257601380546121dc9061431d565b80601f01602080910402602001604051908101604052809291908181526020018280546122089061431d565b80156122555780601f1061222a57610100808354040283529160200191612255565b820191906000526020600020905b81548152906001019060200180831161223857829003601f168201915b5050505050915050919050565b61ffff81166000908152601660209081526040808320815160c08101835281548152600182015493810184905260028201549281019290925260038101546060830152600481015460808301526005015460ff16151560a0820152910361235757601380546122d09061431d565b80601f01602080910402602001604051908101604052809291908181526020018280546122fc9061431d565b80156123495780601f1061231e57610100808354040283529160200191612349565b820191906000526020600020905b81548152906001019060200180831161232c57829003601f168201915b505050505092505050919050565b600061236285610c0e565b905060006123796123746064846144db565b612e22565b9050600061238683612e22565b90506000604051806040016040528060018152602001602f60f81b815250905060148382846040516020016123be94939291906145c5565b6040516020818303038152906040529650505050505050919050565b7fdbd612d55a9aa50e9cdaf6dcccb9ec8386fea10c2783e3ba35c8652cd4932d7c6124058133611bbb565b6124215760405162461bcd60e51b8152600401610a83906143ee565b601554610100900460ff166124485760405162461bcd60e51b8152600401610a839061467f565b6012546011546124589190614385565b601054146124b65760405162461bcd60e51b815260206004820152602560248201527f546f6b656e3a204d757374206d696e7420726573657276656420636172647320604482015264199a5c9cdd60da1b6064820152608401610a83565b60006124c06117d8565b90508084101580156124dd57506012546124da908261436d565b84105b6125295760405162461bcd60e51b815260206004820152601b60248201527f546f6b656e3a2043617264206964206e6f7420696e2072616e676500000000006044820152606401610a83565b610ec88385612c45565b600b546001600160a01b0316331461255d5760405162461bcd60e51b8152600401610a839061439c565b60405133904780156108fc02916000818181858888f19350505050158015612589573d6000803e3d6000fd5b50565b6125b060405180606001604052806000815260200160008152602001600081525090565b6040518060600160405280600d548152602001600e548152602001601154815250905090565b601a8054610ce19061431d565b60008051602061487c8339815191526125fc8133611bbb565b6126185760405162461bcd60e51b8152600401610a83906143ee565b601554610100900460ff1661263f5760405162461bcd60e51b8152600401610a839061467f565b60125460115461264f9190614385565b8360105461265d919061436d565b11156126df5760405162461bcd60e51b815260206004820152604560248201527f546f6b656e3a205468697320776f756c642065786365656420746865206e756d60448201527f626572206f6620636172647320726573657276656420636172647320617661696064820152646c61626c6560d81b608482015260a401610a83565b6000601054600f546126f1919061436d565b6126fc90600161436d565b905060005b84811015612729576127178483611a73816144ef565b80612721816144ef565b915050612701565b508360106000828254611a9f919061436d565b7f2f237764fc2d5c1022c2b3369211bf066f9f9b112c1a699afe91573a989d407f6127678133611bbb565b6127835760405162461bcd60e51b8152600401610a83906143ee565b601554610100900460ff16156127ab5760405162461bcd60e51b8152600401610a8390614508565b600f5460195461ffff16600090815260166020526040902060040154106127e45760405162461bcd60e51b8152600401610a839061454c565b6019805460009160169183919082906128009061ffff16614454565b825461ffff9182166101009390930a838102920219161790915581526020808201929092526040908101600020600f54600480830191909155600c8054845180860186529182526b052414e444f4d56325f5353560a41b958201959095529251631d2e660b60e21b81529194506001600160a01b03909316926374b9982c92611e7392909101613ce9565b600b546001600160a01b031633146128b55760405162461bcd60e51b8152600401610a839061439c565b6021546001600160a01b03163b1561293457602154602054604051633e9f1edf60e11b81523060048201526001600160a01b0361010090920482166024820152911690637d3e3dbe90604401600060405180830381600087803b15801561291b57600080fd5b505af115801561292f573d6000803e3d6000fd5b505050505b61258981612f2a565b600b546001600160a01b031633146129675760405162461bcd60e51b8152600401610a839061439c565b6001600160a01b0381166129cc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a83565b61258981612d93565b60006001600160e01b031982166380ac58cd60e01b1480612a0657506001600160e01b03198216635b5e139f60e01b145b80610a2257506301ffc9a760e01b6001600160e01b0319831614610a22565b6021546001600160a01b03163b1561258957602154604051633185c44d60e21b81523060048201526001600160a01b0383811660248301529091169063c617113490604401602060405180830381865afa158015612a87573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612aab91906143d1565b61258957604051633b79c77360e21b81526001600160a01b0382166004820152602401610a83565b6000612ade8261189a565b9050806001600160a01b0316836001600160a01b031603612b4b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a83565b336001600160a01b0382161480612b675750612b678133610940565b612bd95760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a83565b610e0a838361320e565b612bed338261327c565b612c095760405162461bcd60e51b8152600401610a83906146c9565b610e0a838383613372565b6000610a22825490565b6000611bf38383613519565b610e0a83838360405180602001604052806000815250612074565b6001600160a01b038216612c9b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a83565b6000818152600260205260409020546001600160a01b031615612d005760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a83565b612d0c60008383613543565b6001600160a01b0382166000908152600360205260408120805460019290612d3590849061436d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610c0a3383836135b0565b612dfa338361327c565b612e165760405162461bcd60e51b8152600401610a83906146c9565b610ec88484848461367e565b606081600003612e495750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612e735780612e5d816144ef565b9150612e6c9050600a836144a8565b9150612e4d565b6000816001600160401b03811115612e8d57612e8d613b3a565b6040519080825280601f01601f191660200182016040528015612eb7576020820181803683370190505b5090505b8415612f2257612ecc600183614385565b9150612ed9600a866144db565b612ee490603061436d565b60f81b818381518110612ef957612ef961443e565b60200101906001600160f81b031916908160001a905350612f1b600a866144a8565b9450612ebb565b949350505050565b600b546001600160a01b03163314612f545760405162461bcd60e51b8152600401610a839061439c565b601b5460ff1615612fb35760405162461bcd60e51b815260206004820152602360248201527f546f6b656e3a20436f6e747261637420616c726561647920696e697469616c696044820152621e995960ea1b6064820152608401610a83565b612fc581604001518260600151610a28565b466001811480612fd55750806005145b80612fe1575080610539145b80612fed575080617a69145b1561301d57600c80546001600160a01b031916731e8150050a7a4715aad42b905c08df76883f396f17905561305e565b60405162461bcd60e51b8152602060048201526016602482015275151bdad95b8e881a5b9d985b1a590818da185a5b925960521b6044820152606401610a83565b8151600d556080820151805161307c916013916020909101906139fa565b5060a08201518051613096916014916020909101906139fa565b506020820151600e5560c08201516015805491151560ff1990921691909117905560e0820151601155610100820151601255600c54604051631d2e660b60e21b81526000916001600160a01b0316906374b9982c9061311a906004016020808252600e908201526d10d3d353555392551657d31254d560921b604082015260600190565b602060405180830381865afa158015613137573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061315b9190614475565b600d5460405163d0f4a53760e01b815263ffffffff90911660048201529091506000906001600160a01b0383169063d0f4a53790602401600060405180830381865afa1580156131af573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526131d7919081019061471a565b50601b805460ff196001600160a01b0390931661010002929092166001600160a81b03199092169190911760011790555050505050565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906132438261189a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166132f55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a83565b60006133008361189a565b9050806001600160a01b0316846001600160a01b0316148061334757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80612f225750836001600160a01b031661336084610b57565b6001600160a01b031614949350505050565b826001600160a01b03166133858261189a565b6001600160a01b0316146133e95760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610a83565b6001600160a01b03821661344b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a83565b613456838383613543565b61346160008261320e565b6001600160a01b038316600090815260036020526040812080546001929061348a908490614385565b90915550506001600160a01b03821660009081526003602052604081208054600192906134b890849061436d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008260000182815481106135305761353061443e565b9060005260206000200154905092915050565b6001600160a01b038316156135a55760155460ff16156135a55760405162461bcd60e51b815260206004820181905260248201527f546f6b656e3a205472616e736665727320617265206e6f7420656e61626c65646044820152606401610a83565b610e0a8383836136b1565b816001600160a01b0316836001600160a01b0316036136115760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a83565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613689848484613372565b61369584848484613769565b610ec85760405162461bcd60e51b8152600401610a83906147c3565b6001600160a01b03831661370c5761370781600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b61372f565b816001600160a01b0316836001600160a01b03161461372f5761372f838261386a565b6001600160a01b03821661374657610e0a81613907565b826001600160a01b0316826001600160a01b031614610e0a57610e0a82826139b6565b60006001600160a01b0384163b1561385f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906137ad903390899088908890600401614815565b6020604051808303816000875af19250505080156137e8575060408051601f3d908101601f191682019092526137e591810190614848565b60015b613845573d808015613816576040519150601f19603f3d011682016040523d82523d6000602084013e61381b565b606091505b50805160000361383d5760405162461bcd60e51b8152600401610a83906147c3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612f22565b506001949350505050565b6000600161387784611aaa565b6138819190614385565b6000838152600860205260409020549091508082146138d4576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b60095460009061391990600190614385565b6000838152600a6020526040812054600980549394509092849081106139415761394161443e565b9060005260206000200154905080600983815481106139625761396261443e565b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600980548061399a5761399a614865565b6001900381819060005260206000200160009055905550505050565b60006139c183611aaa565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b828054613a069061431d565b90600052602060002090601f016020900481019282613a285760008555613a6e565b82601f10613a4157805160ff1916838001178555613a6e565b82800160010185558215613a6e579182015b82811115613a6e578251825591602001919060010190613a53565b50613a7a929150613af2565b5090565b828054613a8a9061431d565b90600052602060002090601f016020900481019282613aac5760008555613a6e565b82601f10613ac55782800160ff19823516178555613a6e565b82800160010185558215613a6e579182015b82811115613a6e578235825591602001919060010190613ad7565b5b80821115613a7a5760008155600101613af3565b6001600160e01b03198116811461258957600080fd5b600060208284031215613b2f57600080fd5b8135611bf381613b07565b634e487b7160e01b600052604160045260246000fd5b60405161012081016001600160401b0381118282101715613b7357613b73613b3a565b60405290565b604051601f8201601f191681016001600160401b0381118282101715613ba157613ba1613b3a565b604052919050565b60006001600160401b03821115613bc257613bc2613b3a565b50601f01601f191660200190565b6000613be3613bde84613ba9565b613b79565b9050828152838383011115613bf757600080fd5b828260208301376000602084830101529392505050565b600082601f830112613c1f57600080fd5b611bf383833560208501613bd0565b60008060408385031215613c4157600080fd5b82356001600160401b0380821115613c5857600080fd5b613c6486838701613c0e565b93506020850135915080821115613c7a57600080fd5b50613c8785828601613c0e565b9150509250929050565b60005b83811015613cac578181015183820152602001613c94565b83811115610ec85750506000910152565b60008151808452613cd5816020860160208601613c91565b601f01601f19169290920160200192915050565b602081526000611bf36020830184613cbd565b600060208284031215613d0e57600080fd5b5035919050565b6001600160a01b038116811461258957600080fd5b60008060408385031215613d3d57600080fd5b8235613d4881613d15565b946020939093013593505050565b600080600060608486031215613d6b57600080fd5b8335613d7681613d15565b92506020840135613d8681613d15565b929592945050506040919091013590565b60008060208385031215613daa57600080fd5b82356001600160401b0380821115613dc157600080fd5b818501915085601f830112613dd557600080fd5b813581811115613de457600080fd5b866020828501011115613df657600080fd5b60209290920196919550909350505050565b600081518084526020808501945080840160005b83811015613e6e57815180518852838101518489015260408082015190890152606080820151908901526080808201519089015260a09081015115159088015260c09096019590820190600101613e1c565b509495945050505050565b600081518084526020808501945080840160005b83811015613e6e5781516001600160a01b031687529582019590820190600101613e8d565b6020815260008251610220806020850152613ed1610240850183613cbd565b91506020850151601f1980868503016040870152613eef8483613cbd565b93506040870151606087015260608701516080870152608087015160a087015260a087015160c087015260c087015160e087015260e08701519150610100828188015280880151925050610120818786030181880152613f4f8584613cbd565b945080880151925050610140818786030181880152613f6e8584613cbd565b945080880151925050610160613f878188018415159052565b8701519150610180613f9c8782018415159052565b808801519250506101a08281880152808801519250506101c0818786030181880152613fc88584613e08565b9450808801519250506101e0613fe8818801846001600160a01b03169052565b808801519250506102008187860301818801526140058584613e79565b9088015187820390920184880152935090506140218382613e79565b9695505050505050565b6000806040838503121561403e57600080fd5b50508035926020909101359150565b6000806040838503121561406057600080fd5b82359150602083013561407281613d15565b809150509250929050565b60006020828403121561408f57600080fd5b8135611bf381613d15565b6000602082840312156140ac57600080fd5b81356001600160401b038111156140c257600080fd5b612f2284828501613c0e565b6000602082840312156140e057600080fd5b813561ffff81168114611bf357600080fd5b801515811461258957600080fd5b803561410b816140f2565b919050565b6000806040838503121561412357600080fd5b823561412e81613d15565b91506020830135614072816140f2565b6000806000806080858703121561415457600080fd5b843561415f81613d15565b9350602085013561416f81613d15565b92506040850135915060608501356001600160401b0381111561419157600080fd5b8501601f810187136141a257600080fd5b6141b187823560208401613bd0565b91505092959194509250565b6000602082840312156141cf57600080fd5b8135611bf3816140f2565b600080604083850312156141ed57600080fd5b82356141f881613d15565b9150602083013561407281613d15565b60006020828403121561421a57600080fd5b81356001600160401b038082111561423157600080fd5b90830190610120828603121561424657600080fd5b61424e613b50565b823581526020830135602082015260408301358281111561426e57600080fd5b61427a87828601613c0e565b60408301525060608301358281111561429257600080fd5b61429e87828601613c0e565b6060830152506080830135828111156142b657600080fd5b6142c287828601613c0e565b60808301525060a0830135828111156142da57600080fd5b6142e687828601613c0e565b60a0830152506142f860c08401614100565b60c082015260e083810135908201526101009283013592810192909252509392505050565b600181811c9082168061433157607f821691505b60208210810361435157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561438057614380614357565b500190565b60008282101561439757614397614357565b500390565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000602082840312156143e357600080fd5b8151611bf3816140f2565b602080825260139082015272151bdad95b8e88155b985d5d1a1bdc9a5cd959606a1b604082015260600190565b600061ffff8381169083168181101561443657614436614357565b039392505050565b634e487b7160e01b600052603260045260246000fd5b600061ffff80831681810361446b5761446b614357565b6001019392505050565b60006020828403121561448757600080fd5b8151611bf381613d15565b634e487b7160e01b600052601260045260246000fd5b6000826144b7576144b7614492565b500490565b60008160001904831182151516156144d6576144d6614357565b500290565b6000826144ea576144ea614492565b500690565b60006001820161450157614501614357565b5060010190565b60208082526024908201527f546f6b656e3a204c6173742072657665616c20616c72656164792072657175656040820152631cdd195960e21b606082015260800190565b60208082526024908201527f546f6b656e3a2052657665616c207265717565737420616c72656164792065786040820152636973747360e01b606082015260800190565b6000602082840312156145a257600080fd5b5051919050565b600081516145bb818560208601613c91565b9290920192915050565b600080865481600182811c9150808316806145e157607f831692505b6020808410820361460057634e487b7160e01b86526022600452602486fd5b818015614614576001811461462557614652565b60ff19861689528489019650614652565b60008d81526020902060005b8681101561464a5781548b820152908501908301614631565b505084890196505b50505050505061467461466e61466883896145a9565b876145a9565b856145a9565b979650505050505050565b6020808252602a908201527f546f6b656e3a204c6173742072657665616c206d7573742062652072657175656040820152691cdd195908199a5c9cdd60b21b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008060006060848603121561472f57600080fd5b83516001600160401b0381111561474557600080fd5b8401601f8101861361475657600080fd5b8051614764613bde82613ba9565b81815287602083850101111561477957600080fd5b61478a826020830160208601613c91565b809550505050602084015161479e81613d15565b604085015190925063ffffffff811681146147b857600080fd5b809150509250925092565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061402190830184613cbd565b60006020828403121561485a57600080fd5b8151611bf381613b07565b634e487b7160e01b600052603160045260246000fdfe0c7112aae6457f5c6a25de7d80f58f2fb755235d06d4473246b07240659a270fa2646970667358221220b20c4160c5635a7ea569b925b815e405194460e2e653f40a92c26204b5f20ed364736f6c634300080d0033

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.