ETH Price: $3,398.32 (-1.45%)
Gas: 2 Gwei

Token

DOTs (DOTS)
 

Overview

Max Total Supply

8,524 DOTS

Holders

2,178

Total Transfers

-

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

DOTs (Designated Observational Travelers) are super-intelligent, super-chaotic space robots originally designed for the enterprising individual looking to explore space. Then, uh, things went wrong.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
DOTS

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion
File 1 of 15 : DOTS.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

import "@chainlink/contracts/src/v0.8/VRFConsumerBaseV2.sol";
import "@chainlink/contracts/src/v0.8/interfaces/VRFCoordinatorV2Interface.sol";

import "erc721a/contracts/extensions/ERC721AQueryable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "operator-filter-registry/src/OperatorFilterer.sol";

/**
 * @title ERC721A token for DOTS
 * 
 * @dev DOTs redeemable through burning MintPassTwo tokens, earlier stage DOTS, or a combination of the two
 * 
 * @author Jack Chuma, NiftyDude
 */
contract DOTS is ERC721AQueryable, AccessControl, VRFConsumerBaseV2, OperatorFilterer {
    
    bytes32 constant ADMIN_ROLE = keccak256("ADMIN_ROLE");
    uint8 constant NUM_BACKGROUND = 14;
    uint8 constant NUM_BACK = 12;
    uint8 constant NUM_PAINTJOB = 40;
    uint8 constant NUM_EYEWEAR = 31;
    uint8 constant NUM_MOUTHGEAR = 30;
    uint8 constant NUM_HEADGEAR = 40;
    uint8 constant NUM_CLOTHING = 40;
    uint8 constant NUM_EARGEAR = 20;
    uint16 constant BIT_MASK = 65535;

    IMintPassTwo immutable mintPassTwoContract;
    VRFCoordinatorV2Interface immutable COORDINATOR;

    string uri;
    bytes32 keyHash;
    uint64 subscriptionId;
    bool addApprovedContractsDisabled;
    uint32 callbackGasLimit = 2500000;
    uint16 requestConfirmations = 3;

    mapping(uint256 => uint256[]) public currentEvoDots; // evo # => tokenIds
    mapping(uint256 => Evo) public evoData; // evo # => evo info
    mapping(uint256 => Metadata) metadata; // tokenId => Metadata
    mapping(uint256 => bool) randomEntropies; // traitset => rolled
    mapping(uint256 => AnomalyRoll) public anomalyRolls;
    mapping(address => bool) public approvedContracts;

    struct AnomalyRoll {
        uint64 evoStage;
        uint64 anomalyAmount;
    }

    struct Evo {
        uint8 numTokensNeeded;
        uint32 startWindow;
        uint32 endWindow;
    }

    struct Metadata {
        uint8 evoNum;
        uint64 genes;
        uint8 anomalyNum;
    }

    error ValueTooHigh();
    error LengthMismatch();
    error MintWindowClosed();
    error NotOwnedBySender();
    error CannotBurnPrimaryToken();
    error MustIncludeAmount();
    error MustUpgradeEvoStage();
    error MustIncludeDotsToUpgrade();
    error BurnedEvoStageHigherThanTargetEvo();
    error TokenDoesNotExist();
    error InsufficientBaseAmount();
    error AddPreapprovedContractDisabled();
    error EvoDoesNotExist();

    event UriUpdated(string uri);
    event KeyHashSet(bytes32 keyhash);
    event CallbackGasLimitSet(uint256 limit);
    event RequestConfirmationsSet(uint256 confirmations);
    event SubscriptionIdSet(uint256 id);
    event ContractApprovalUpdated(address contractToUpdate, bool enabled);
    event AddingPreapprovedContractsDisabled(bool isDisabled);
    event DOTUpgraded(
        uint256 indexed tokenId, 
        uint256 indexed newEvoNum,
        uint256[] tokenIdsBurned,
        uint256 mintPassTwoBurns
    );
    event DotsUpgraded(
        uint256[] tokenIds,
        uint256 indexed newEvoNum,
        uint256 mintPassTwoBurns,
        uint256[] tokenIdsBurned
    );
    event DOTMinted(
        uint256 indexed tokenId, 
        uint256 indexed evoNum, 
        uint256 genes,
        uint256 mintPassTwoBurns
    );
    event EvoDataBatchUpdated(
        uint256[] evoNum, 
        uint256[] numTokensNeeded, 
        uint256[] startWindows, 
        uint256[] endWindows
    );
    event AnomalyRolled(
        uint256 indexed tokenId,
        uint256 indexed anomalyNum
    );

    constructor(
        string memory _name, 
        string memory _symbol,
        string memory _uri,
        address _mintPassTwo,
        Evo[] memory _evoData,
        address adminWallet,
        address _vrfCoordinator,
        bytes32 _keyHash,
        uint64 _subscriptionId,
        address _registrant
    ) 
        ERC721A(_name, _symbol) 
        VRFConsumerBaseV2(_vrfCoordinator) 
        OperatorFilterer(_registrant, true) 
    {

        COORDINATOR = VRFCoordinatorV2Interface(_vrfCoordinator);
        subscriptionId = _subscriptionId;
        keyHash = _keyHash;

        uri = _uri;
        mintPassTwoContract = IMintPassTwo(_mintPassTwo);

        for (uint i=0; i<_evoData.length; ) {
            evoData[i + 1] = _evoData[i];
            unchecked { i++; }
        }

        _setupRole(DEFAULT_ADMIN_ROLE, adminWallet);
        _setupRole(ADMIN_ROLE, address(0xfd64b63D4A54e6b1a0Aa88e6623046c54F960D00));
    }

    function setKeyHash(bytes32 _keyHash) external onlyRole(ADMIN_ROLE) {
        keyHash = _keyHash;
        emit KeyHashSet(_keyHash);
    }

    function setCallbackGasLimit(uint32 _callbackGasLimit) external onlyRole(ADMIN_ROLE) {
        callbackGasLimit = _callbackGasLimit;
        emit CallbackGasLimitSet(_callbackGasLimit);
    }

    function setRequestConfirmations(uint16 _requestConfirmations) external onlyRole(ADMIN_ROLE) {
        requestConfirmations = _requestConfirmations;
        emit RequestConfirmationsSet(_requestConfirmations);
    }

    function setSubscriptionId(uint64 _subscriptionId) external onlyRole(ADMIN_ROLE) {
        subscriptionId = _subscriptionId;
        emit SubscriptionIdSet(_subscriptionId);
    }

    /**
     * @notice Called by contract admin to update stored data for a batch of EVO stages
     * @dev All input arrays must be arrays of same length
     * @param _evoNums Array of EVO stages to update data for
     * @param _numTokensNeeded Array representing new values for each edited EVO stage
     * @param _startWindows Array representing new startWindows for each edited EVO stage
     * @param _endWindows Array representing new endWindows for each edited EVO stage
     */
    function editEvoDataBatch(
        uint256[] calldata _evoNums,
        uint256[] calldata _numTokensNeeded,
        uint256[] calldata _startWindows,
        uint256[] calldata _endWindows
    ) external onlyRole(ADMIN_ROLE) {
        if (
            _evoNums.length != _numTokensNeeded.length || 
            _evoNums.length != _startWindows.length || 
            _evoNums.length != _endWindows.length
        ) revert LengthMismatch();

        for (uint i = 0; i < _evoNums.length; ) {
            evoData[_evoNums[i]] = Evo(uint8(_numTokensNeeded[i]), uint32(_startWindows[i]), uint32(_endWindows[i]));
            unchecked {  ++i; }
        }

        emit EvoDataBatchUpdated(_evoNums, _numTokensNeeded, _startWindows, _endWindows);
    }

    /**
     * @notice Called by contract admin to set a new base URI for DOTS
     */
    function setURI(string memory _uri) external onlyRole(ADMIN_ROLE) {
        uri = _uri;
        emit UriUpdated(_uri);
    }

    /**
     * @notice Called by contract admin to add / remove an approved contract
     * @param _approvedContract Contract address to add / remove
     * @param _enable Boolean value representing if contract should be enabled
     */
    function changeApprovedContract(
        address _approvedContract,
        bool _enable
    ) external onlyRole(ADMIN_ROLE) {
        if(addApprovedContractsDisabled && _enable) revert AddPreapprovedContractDisabled();
        approvedContracts[_approvedContract] = _enable;
        emit ContractApprovalUpdated(_approvedContract, _enable);
    } 

    /**
     * @notice Called by contact admin to disable adding new approved contracts
     */
    function irrevocablyDisableAddingPreapprovedContracts() external onlyRole(ADMIN_ROLE) {
        addApprovedContractsDisabled = true;
        emit AddingPreapprovedContractsDisabled(true);
    }

    /**
     * @notice admin function to initiate VRF transaction for anomaly distribution
     * @param _evoStage min evo stage for token to participate
     * @param _anomalyAmount amount of anomalies to distribute
     */
    function rollAnomalyDots(
        uint64 _evoStage,
        uint64 _anomalyAmount
    ) external onlyRole(ADMIN_ROLE) {
        if(currentEvoDots[_evoStage].length < _anomalyAmount) {
            revert InsufficientBaseAmount();
        }

        uint256 _requestId = COORDINATOR.requestRandomWords(
          keyHash,
          subscriptionId,
          requestConfirmations,
          callbackGasLimit,
          1
        );

        anomalyRolls[_requestId] = AnomalyRoll({
            evoStage: _evoStage,
            anomalyAmount: _anomalyAmount
        });
    }

    /**
     * @notice callback to retrieve random number for anomaly distribution
     * @param _requestId id of the request made by rollAnomalyDots
     * @param _randomWords the actual random number
     */
    function fulfillRandomWords(
        uint256 _requestId,
        uint256[] memory _randomWords
    ) internal override {
        AnomalyRoll memory anomalyRoll = anomalyRolls[_requestId];
        uint256[] memory _currentEvoIds = currentEvoDots[anomalyRoll.evoStage];

        uint256 _nonce;
        uint256 _numAssigned;
        uint256 _tempAnomalyToken;
        uint256 _hashForAnomalyNum;
        uint256 _anomalyNum;

        while (_numAssigned < anomalyRoll.anomalyAmount) {
            _tempAnomalyToken = _currentEvoIds[uint256(keccak256(abi.encodePacked(_randomWords[0], _nonce))) % _currentEvoIds.length];

            if(metadata[_tempAnomalyToken].anomalyNum == 0) {
                _hashForAnomalyNum = uint256(keccak256(abi.encodePacked(_randomWords[0], _tempAnomalyToken))) % 100;

                if (_hashForAnomalyNum < 10) _anomalyNum = 1;
                else if (_hashForAnomalyNum < 55) _anomalyNum = 2;
                else _anomalyNum = 3;

                metadata[_tempAnomalyToken].anomalyNum = uint8(_anomalyNum);

                unchecked { _numAssigned++; }

                emit AnomalyRolled(_tempAnomalyToken, _anomalyNum);
            }

            unchecked { _nonce++; }               
        }
    } 

    /**
     * @notice Function to mint any EVO stage solely from burning correct number of MintPassTwo's
     * @dev Must be during proper mint window
     * @dev User must have enough MintPassTwo's in their wallet for burn
     * @dev Generates traits for dot
     * @param _evoNum EVO # to mint
     * @param _numDots Number of DOTs to mint
     */
    function mint(
        uint256 _evoNum, 
        uint256 _numDots
    ) external {
        _internalMint(_evoNum, _numDots, msg.sender);
    }
    
    /**
     * @notice Admin function to mint dots to a specified address
     */
    function mintTo(
        address _to,
        uint256 _evoNum, 
        uint256 _numDots
    ) external onlyRole(ADMIN_ROLE) {
        _internalMint(_evoNum, _numDots, _to);
    }

    /**
     * @notice For upgrading a DOT to a later EVO stage
     * @dev User must own at least one DOT to call this
     * @dev Any combination of DOTs and MintPassTwo's can be used to sum to value required for target EVO stage
     * @param _primaryTokenId Token ID of DOT to upgrade
     * @param _targetEvoNum EVO stage to upgrade to
     * @param _tokenIds Array of DOT token IDs to burn as part of the upgrade
     */
    function upgrade(
        uint256 _primaryTokenId, 
        uint256 _targetEvoNum, 
        uint256[] calldata _tokenIds
    ) external {
        Evo memory _info = evoData[_targetEvoNum];
        uint256 _oldEvoNum = metadata[_primaryTokenId].evoNum;
        _checkMintWindow(_info.startWindow, _info.endWindow);
        if (ownerOf(_primaryTokenId) != msg.sender) revert NotOwnedBySender();
        if (_targetEvoNum <= _oldEvoNum) revert MustUpgradeEvoStage();

        currentEvoDots[_targetEvoNum].push(_primaryTokenId);

        uint256 _diff;
        uint256 _valueFromDots;
        unchecked { 
            _valueFromDots = evoData[_oldEvoNum].numTokensNeeded 
                + _burnDots(_primaryTokenId, _tokenIds); 
        }

        if (_valueFromDots > _info.numTokensNeeded) revert ValueTooHigh();
        unchecked { _diff = _info.numTokensNeeded - _valueFromDots; }
        if (_diff > 0) mintPassTwoContract.burnFromRedeem(msg.sender, _diff);

        metadata[_primaryTokenId].evoNum = uint8(_targetEvoNum);
        emit DOTUpgraded(_primaryTokenId, _targetEvoNum, _tokenIds, _diff);
    }

    /**
     * @notice For upgrading multiple DOTs in a single transaction
     * @param _primaryTokenIds Array of tokenIds of DOTs being upgraded
     * @param _targetEvoNum EVO stage that `_primaryTokenIds` are being upgraded to
     * @param _tokenIdsToBurn Array of tokenIds of DOTs being burned as part of upgrade
     */
    function upgradeMultiple(
        uint256[] calldata _primaryTokenIds,
        uint256 _targetEvoNum,
        uint256[] calldata _tokenIdsToBurn
    ) external {
        Evo memory _info = evoData[_targetEvoNum];
        _checkMintWindow(_info.startWindow, _info.endWindow);

        uint256 _diff;
        uint256 _valueFromDots;
        uint256 _totalValueNeeded;

        unchecked { 
            _totalValueNeeded = _info.numTokensNeeded * _primaryTokenIds.length;
            _valueFromDots = _validateAndUpgradePrimaryTokenIds(
                _primaryTokenIds,
                _targetEvoNum
            ) + _burnDotsUpgradeMultiple(_primaryTokenIds, _tokenIdsToBurn, _targetEvoNum);
        }

        if (_valueFromDots > _totalValueNeeded) revert ValueTooHigh();
        unchecked { _diff = _totalValueNeeded - _valueFromDots; }
        if (_diff > 0) mintPassTwoContract.burnFromRedeem(msg.sender, _diff);

        emit DotsUpgraded(
            _primaryTokenIds, 
            _targetEvoNum, 
            _diff,
            _tokenIdsToBurn 
        );
    }

    function burn(uint256 _tokenId) public {
        delete metadata[_tokenId];
        _burn(_tokenId, true);
    }

    function burnFromApprovedContract(
        uint256 _tokenId
    ) external {
        if(!approvedContracts[msg.sender]) revert TransferCallerNotOwnerNorApproved();

        delete metadata[_tokenId];
        _burn(_tokenId);
    }  

    function tokenURI(uint256 _id) public view override(ERC721A, IERC721A) returns (string memory) {
        return string(abi.encodePacked(uri, Strings.toString(_id)));
    }

    function getMetadata(uint256 tokenId) external view returns (Metadata memory _data) {
        _data = metadata[tokenId];
        if (_data.evoNum == 0) revert TokenDoesNotExist();
    }

    function supportsInterface(bytes4 interfaceId) public pure override(ERC721A, IERC721A, AccessControl) returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || 
               interfaceId == type(IERC165).interfaceId ||
               interfaceId == type(IERC721AQueryable).interfaceId ||
               interfaceId == type(IERC721A).interfaceId ||
               interfaceId == 0x80ac58cd ||
               interfaceId == 0x5b5e139f;     
    }

    function setApprovalForAll(address operator, bool approved) public override(ERC721A, IERC721A) onlyAllowedOperatorApproval(operator) {
        super.setApprovalForAll(operator, approved);
    }

    function approve(address operator, uint256 tokenId) public override(ERC721A, IERC721A) onlyAllowedOperatorApproval(operator) {
        super.approve(operator, tokenId);
    }

    function transferFrom(address from, address to, uint256 tokenId) public override(ERC721A, IERC721A) onlyAllowedOperator(from) {
        super.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId) public override(ERC721A, IERC721A) onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data)
        public
        override(ERC721A, IERC721A)
        onlyAllowedOperator(from)
    {
        super.safeTransferFrom(from, to, tokenId, data);
    }

    function _startTokenId() internal override view virtual returns (uint256) {
        return 1;
    }

    function _internalMint(
        uint256 _evoNum, 
        uint256 _numDots,
        address _to
    ) private {
        if (_numDots == 0) revert MustIncludeAmount();
        Evo memory _info = evoData[_evoNum];
        _checkMintWindow(_info.startWindow, _info.endWindow);
        mintPassTwoContract.burnFromRedeem(msg.sender, _info.numTokensNeeded * _numDots);
        uint256 _tokenId = _nextTokenId();

        for (uint i=0; i<_numDots; ) {
            if (_evoNum > 1) currentEvoDots[_evoNum].push(_tokenId);
            uint256 _genes = _generateTraits();
            metadata[_tokenId] = Metadata(uint8(_evoNum), uint64(_genes), uint8(0));
            randomEntropies[_genes >> 8] = true;
            emit DOTMinted(_tokenId, _evoNum, _genes, _info.numTokensNeeded);
            unchecked { 
                i++; 
                _tokenId++;
            }
        }
        _mint(_to, _numDots);
    }

    function _normalize(
        uint256 _rand
    ) private pure returns (uint256 _normalized) {
        uint256 _traitNumSelector = _rand & uint256(BIT_MASK);
        uint256[8] memory _traitIds = [
            _getId(_rand, uint256(16), uint256(65534), NUM_BACKGROUND),
            _getId(_rand, uint256(32), uint256(65532), NUM_BACK),
            _getId(_rand, uint256(48), uint256(65520), NUM_PAINTJOB),
            _getId(_rand, uint256(64), uint256(65534), NUM_EYEWEAR),
            _getId(_rand, uint256(80), uint256(65520), NUM_MOUTHGEAR),
            _getId(_rand, uint256(96), uint256(65520), NUM_HEADGEAR),
            _getId(_rand, uint256(112), uint256(65520), NUM_CLOTHING),
            _getId(_rand, uint256(128), uint256(65520), NUM_EARGEAR)
        ];

        if (_traitIds[5] == 35) _traitIds[7] = 0;

        _normalized =
            (_traitIds[0] << 0 |
            _traitIds[1] << 8 |
            _traitIds[2] << 16 |
            _traitIds[3] << 24 |
            _traitIds[4] << 32 |
            _traitIds[5] << 40 |
            _traitIds[6] << 48 |
            _traitIds[7] << 56)
            & _generateMask(_traitNumSelector);
    }

    function _getId(
        uint256 _rand, 
        uint256 _offset,
        uint256 _cutoff,
        uint256 _options
    ) private pure returns (uint256 _id) {
        uint256 _slice = (_rand & (uint256(BIT_MASK) << _offset)) >> _offset;
        while (_slice >= _cutoff) {
            _slice = uint256(uint16(uint256(keccak256(abi.encodePacked(_slice)))));
        }
        unchecked { _id = _slice % _options + 1; }
    }

    function _generateMask(uint256 _selector) private pure returns (uint256 _mask) {
        uint256 _eightBitMask = uint256(255);
        _mask = uint256(4294967295);
        if (_selector > 1637) {
            if (_selector < 24575) {
                if (_selector < 9322) _mask = _mask | _eightBitMask << 48;
                else if (_selector < 16891) _mask = _mask | _eightBitMask << 40;
                else if (_selector < 24460) _mask = _mask | _eightBitMask << 32;
                else _mask = _mask | _eightBitMask << 56;
            } else if (_selector < 57343) {
                if (_selector < 37551) _mask = _mask | _eightBitMask << 40 | _eightBitMask << 48;
                else if (_selector < 53771) _mask = _mask | _eightBitMask << 32 | _eightBitMask << 48;
                else if (_selector < 54066)  _mask = _mask | _eightBitMask << 48 | _eightBitMask << 56;
                else if (_selector < 57277) _mask = _mask | _eightBitMask << 32 | _eightBitMask << 40;
                else if (_selector < 57306) _mask = _mask | _eightBitMask << 40 | _eightBitMask << 56;
                else _mask = _mask | _eightBitMask << 32 | _eightBitMask << 56;
            } else if (_selector < 63897) {
                if (_selector < 62974) _mask = _mask | _eightBitMask << 32 | _eightBitMask << 40 | _eightBitMask << 48;
                else if (_selector < 63257) _mask = _mask | _eightBitMask << 40 | _eightBitMask << 48 | _eightBitMask << 56;
                else if (_selector < 63568) _mask = _mask | _eightBitMask << 32 | _eightBitMask << 48 | _eightBitMask << 56;
                else _mask = _mask | _eightBitMask << 32 | _eightBitMask << 40 | _eightBitMask << 56;
            } else _mask = _mask | _mask << 32;
        }
    }

    function _burnDots(
        uint256 _primaryTokenId, 
        uint256[] calldata _tokenIdsToBurn
    ) private returns (uint256 _value) {
        for (uint i=0; i<_tokenIdsToBurn.length; ) {
            uint256 _tokenId = _tokenIdsToBurn[i];
            if (_tokenId == _primaryTokenId) revert CannotBurnPrimaryToken();
            unchecked { 
                _value += evoData[metadata[_tokenId].evoNum].numTokensNeeded;
                i++;
            }
            burn(_tokenId);
        }
    }

    function _burnDotsUpgradeMultiple(
        uint256[] calldata _primaryTokenIds, 
        uint256[] calldata _tokenIdsToBurn,
        uint256 _targetEvoNum
    ) private returns (uint256 _value) {
        if (_primaryTokenIds.length == 0) revert MustIncludeDotsToUpgrade();
        for (uint i=0; i<_tokenIdsToBurn.length; ) {
            uint256 _tokenId = _tokenIdsToBurn[i];
            uint256 _evoNum = metadata[_tokenId].evoNum;
            if (_valueInArray(_tokenId, _primaryTokenIds)) revert CannotBurnPrimaryToken();
            if (_evoNum >= _targetEvoNum) revert BurnedEvoStageHigherThanTargetEvo();
            burn(_tokenId);
            unchecked { 
                _value += evoData[_evoNum].numTokensNeeded;
                i++; 
            }
        }
    }

    function _valueInArray(
        uint256 _value, 
        uint256[] calldata _arr
    ) private pure returns (bool) {
        for (uint i=0; i<_arr.length; ) {
            if (_arr[i] == _value) return true;
            unchecked { i++; }
        }
        return false;
    }

    function _validateAndUpgradePrimaryTokenIds(
        uint256[] calldata _primaryTokenIds, 
        uint256 _targetEvoNum
    ) private returns (uint256 _value) {
        for (uint i=0; i<_primaryTokenIds.length; ) {
            uint256 _primaryTokenId = _primaryTokenIds[i];
            uint256 _oldEvoNum = metadata[_primaryTokenId].evoNum;
            if (ownerOf(_primaryTokenId) != msg.sender) revert NotOwnedBySender();
            if (_targetEvoNum <= _oldEvoNum) revert MustUpgradeEvoStage();
            currentEvoDots[_targetEvoNum].push(_primaryTokenId);
            metadata[_primaryTokenId].evoNum = uint8(_targetEvoNum);
            unchecked { 
                _value += evoData[_oldEvoNum].numTokensNeeded;
                i++; 
            }
        }
    }

    function _generateTraits() private view returns (uint256 _genes) {
        uint256 _rand;

        unchecked { 
            _rand = uint256(
                keccak256(
                    abi.encode(
                        keccak256(
                            abi.encodePacked(
                                msg.sender, tx.origin, gasleft(), block.timestamp, block.number, blockhash(block.number), blockhash(block.number-100)
                            )
                        )
                    )
                )
            );
        }

        while (true) {
            _genes = _normalize(_rand);
            if (!randomEntropies[_genes >> 8]) break;
            _rand = uint256(keccak256(abi.encodePacked(_rand)));
        }
    }

    function _checkMintWindow(uint256 _start, uint256 _end) private view {
        if (_end == 0) revert EvoDoesNotExist();
        if ((block.timestamp < _start || block.timestamp > _end) && !hasRole(ADMIN_ROLE, msg.sender)) revert MintWindowClosed();
    }
}

interface IMintPassTwo {
    function burnFromRedeem(address _account, uint256 _amount) external;
}

File 2 of 15 : VRFConsumerBaseV2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/** ****************************************************************************
 * @notice Interface for contracts using VRF randomness
 * *****************************************************************************
 * @dev PURPOSE
 *
 * @dev Reggie the Random Oracle (not his real job) wants to provide randomness
 * @dev to Vera the verifier in such a way that Vera can be sure he's not
 * @dev making his output up to suit himself. Reggie provides Vera a public key
 * @dev to which he knows the secret key. Each time Vera provides a seed to
 * @dev Reggie, he gives back a value which is computed completely
 * @dev deterministically from the seed and the secret key.
 *
 * @dev Reggie provides a proof by which Vera can verify that the output was
 * @dev correctly computed once Reggie tells it to her, but without that proof,
 * @dev the output is indistinguishable to her from a uniform random sample
 * @dev from the output space.
 *
 * @dev The purpose of this contract is to make it easy for unrelated contracts
 * @dev to talk to Vera the verifier about the work Reggie is doing, to provide
 * @dev simple access to a verifiable source of randomness. It ensures 2 things:
 * @dev 1. The fulfillment came from the VRFCoordinator
 * @dev 2. The consumer contract implements fulfillRandomWords.
 * *****************************************************************************
 * @dev USAGE
 *
 * @dev Calling contracts must inherit from VRFConsumerBase, and can
 * @dev initialize VRFConsumerBase's attributes in their constructor as
 * @dev shown:
 *
 * @dev   contract VRFConsumer {
 * @dev     constructor(<other arguments>, address _vrfCoordinator, address _link)
 * @dev       VRFConsumerBase(_vrfCoordinator) public {
 * @dev         <initialization with other arguments goes here>
 * @dev       }
 * @dev   }
 *
 * @dev The oracle will have given you an ID for the VRF keypair they have
 * @dev committed to (let's call it keyHash). Create subscription, fund it
 * @dev and your consumer contract as a consumer of it (see VRFCoordinatorInterface
 * @dev subscription management functions).
 * @dev Call requestRandomWords(keyHash, subId, minimumRequestConfirmations,
 * @dev callbackGasLimit, numWords),
 * @dev see (VRFCoordinatorInterface for a description of the arguments).
 *
 * @dev Once the VRFCoordinator has received and validated the oracle's response
 * @dev to your request, it will call your contract's fulfillRandomWords method.
 *
 * @dev The randomness argument to fulfillRandomWords is a set of random words
 * @dev generated from your requestId and the blockHash of the request.
 *
 * @dev If your contract could have concurrent requests open, you can use the
 * @dev requestId returned from requestRandomWords to track which response is associated
 * @dev with which randomness request.
 * @dev See "SECURITY CONSIDERATIONS" for principles to keep in mind,
 * @dev if your contract could have multiple requests in flight simultaneously.
 *
 * @dev Colliding `requestId`s are cryptographically impossible as long as seeds
 * @dev differ.
 *
 * *****************************************************************************
 * @dev SECURITY CONSIDERATIONS
 *
 * @dev A method with the ability to call your fulfillRandomness method directly
 * @dev could spoof a VRF response with any random value, so it's critical that
 * @dev it cannot be directly called by anything other than this base contract
 * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method).
 *
 * @dev For your users to trust that your contract's random behavior is free
 * @dev from malicious interference, it's best if you can write it so that all
 * @dev behaviors implied by a VRF response are executed *during* your
 * @dev fulfillRandomness method. If your contract must store the response (or
 * @dev anything derived from it) and use it later, you must ensure that any
 * @dev user-significant behavior which depends on that stored value cannot be
 * @dev manipulated by a subsequent VRF request.
 *
 * @dev Similarly, both miners and the VRF oracle itself have some influence
 * @dev over the order in which VRF responses appear on the blockchain, so if
 * @dev your contract could have multiple VRF requests in flight simultaneously,
 * @dev you must ensure that the order in which the VRF responses arrive cannot
 * @dev be used to manipulate your contract's user-significant behavior.
 *
 * @dev Since the block hash of the block which contains the requestRandomness
 * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful
 * @dev miner could, in principle, fork the blockchain to evict the block
 * @dev containing the request, forcing the request to be included in a
 * @dev different block with a different hash, and therefore a different input
 * @dev to the VRF. However, such an attack would incur a substantial economic
 * @dev cost. This cost scales with the number of blocks the VRF oracle waits
 * @dev until it calls responds to a request. It is for this reason that
 * @dev that you can signal to an oracle you'd like them to wait longer before
 * @dev responding to the request (however this is not enforced in the contract
 * @dev and so remains effective only in the case of unmodified oracle software).
 */
abstract contract VRFConsumerBaseV2 {
  error OnlyCoordinatorCanFulfill(address have, address want);
  address private immutable vrfCoordinator;

  /**
   * @param _vrfCoordinator address of VRFCoordinator contract
   */
  constructor(address _vrfCoordinator) {
    vrfCoordinator = _vrfCoordinator;
  }

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

  // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF
  // proof. rawFulfillRandomness then calls fulfillRandomness, after validating
  // the origin of the call
  function rawFulfillRandomWords(uint256 requestId, uint256[] memory randomWords) external {
    if (msg.sender != vrfCoordinator) {
      revert OnlyCoordinatorCanFulfill(msg.sender, vrfCoordinator);
    }
    fulfillRandomWords(requestId, randomWords);
  }
}

File 3 of 15 : VRFCoordinatorV2Interface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface VRFCoordinatorV2Interface {
  /**
   * @notice Get configuration relevant for making requests
   * @return minimumRequestConfirmations global min for request confirmations
   * @return maxGasLimit global max for request gas limit
   * @return s_provingKeyHashes list of registered key hashes
   */
  function getRequestConfig()
    external
    view
    returns (
      uint16,
      uint32,
      bytes32[] memory
    );

  /**
   * @notice Request a set of random words.
   * @param keyHash - Corresponds to a particular oracle job which uses
   * that key for generating the VRF proof. Different keyHash's have different gas price
   * ceilings, so you can select a specific one to bound your maximum per request cost.
   * @param subId  - The ID of the VRF subscription. Must be funded
   * with the minimum subscription balance required for the selected keyHash.
   * @param minimumRequestConfirmations - How many blocks you'd like the
   * oracle to wait before responding to the request. See SECURITY CONSIDERATIONS
   * for why you may want to request more. The acceptable range is
   * [minimumRequestBlockConfirmations, 200].
   * @param callbackGasLimit - How much gas you'd like to receive in your
   * fulfillRandomWords callback. Note that gasleft() inside fulfillRandomWords
   * may be slightly less than this amount because of gas used calling the function
   * (argument decoding etc.), so you may need to request slightly more than you expect
   * to have inside fulfillRandomWords. The acceptable range is
   * [0, maxGasLimit]
   * @param numWords - The number of uint256 random values you'd like to receive
   * in your fulfillRandomWords callback. Note these numbers are expanded in a
   * secure way by the VRFCoordinator from a single random value supplied by the oracle.
   * @return requestId - A unique identifier of the request. Can be used to match
   * a request to a response in fulfillRandomWords.
   */
  function requestRandomWords(
    bytes32 keyHash,
    uint64 subId,
    uint16 minimumRequestConfirmations,
    uint32 callbackGasLimit,
    uint32 numWords
  ) external returns (uint256 requestId);

  /**
   * @notice Create a VRF subscription.
   * @return subId - A unique subscription id.
   * @dev You can manage the consumer set dynamically with addConsumer/removeConsumer.
   * @dev Note to fund the subscription, use transferAndCall. For example
   * @dev  LINKTOKEN.transferAndCall(
   * @dev    address(COORDINATOR),
   * @dev    amount,
   * @dev    abi.encode(subId));
   */
  function createSubscription() external returns (uint64 subId);

  /**
   * @notice Get a VRF subscription.
   * @param subId - ID of the subscription
   * @return balance - LINK balance of the subscription in juels.
   * @return reqCount - number of requests for this subscription, determines fee tier.
   * @return owner - owner of the subscription.
   * @return consumers - list of consumer address which are able to use this subscription.
   */
  function getSubscription(uint64 subId)
    external
    view
    returns (
      uint96 balance,
      uint64 reqCount,
      address owner,
      address[] memory consumers
    );

  /**
   * @notice Request subscription owner transfer.
   * @param subId - ID of the subscription
   * @param newOwner - proposed new owner of the subscription
   */
  function requestSubscriptionOwnerTransfer(uint64 subId, address newOwner) external;

  /**
   * @notice Request subscription owner transfer.
   * @param subId - ID of the subscription
   * @dev will revert if original owner of subId has
   * not requested that msg.sender become the new owner.
   */
  function acceptSubscriptionOwnerTransfer(uint64 subId) external;

  /**
   * @notice Add a consumer to a VRF subscription.
   * @param subId - ID of the subscription
   * @param consumer - New consumer which can use the subscription
   */
  function addConsumer(uint64 subId, address consumer) external;

  /**
   * @notice Remove a consumer from a VRF subscription.
   * @param subId - ID of the subscription
   * @param consumer - Consumer to remove from the subscription
   */
  function removeConsumer(uint64 subId, address consumer) external;

  /**
   * @notice Cancel a subscription
   * @param subId - ID of the subscription
   * @param to - Where to send the remaining LINK to
   */
  function cancelSubscription(uint64 subId, address to) external;

  /*
   * @notice Check to see if there exists a request commitment consumers
   * for all consumers and keyhashes for a given sub.
   * @param subId - ID of the subscription
   * @return true if there exists at least one unfulfilled request for the subscription, false
   * otherwise.
   */
  function pendingRequestExists(uint64 subId) external view returns (bool);
}

File 4 of 15 : ERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.2
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721AQueryable.sol';
import '../ERC721A.sol';

/**
 * @title ERC721AQueryable.
 *
 * @dev ERC721A subclass with convenience query functions.
 */
abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable {
    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *
     * - `addr = address(0)`
     * - `startTimestamp = 0`
     * - `burned = false`
     * - `extraData = 0`
     *
     * If the `tokenId` is burned:
     *
     * - `addr = <Address of owner before token was burned>`
     * - `startTimestamp = <Timestamp when token was burned>`
     * - `burned = true`
     * - `extraData = <Extra data when token was burned>`
     *
     * Otherwise:
     *
     * - `addr = <Address of owner>`
     * - `startTimestamp = <Timestamp of start of ownership>`
     * - `burned = false`
     * - `extraData = <Extra data at start of ownership>`
     */
    function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory) {
        TokenOwnership memory ownership;
        if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) {
            return ownership;
        }
        ownership = _ownershipAt(tokenId);
        if (ownership.burned) {
            return ownership;
        }
        return _ownershipOf(tokenId);
    }

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] calldata tokenIds)
        external
        view
        virtual
        override
        returns (TokenOwnership[] memory)
    {
        unchecked {
            uint256 tokenIdsLength = tokenIds.length;
            TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength);
            for (uint256 i; i != tokenIdsLength; ++i) {
                ownerships[i] = explicitOwnershipOf(tokenIds[i]);
            }
            return ownerships;
        }
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start < stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view virtual override returns (uint256[] memory) {
        unchecked {
            if (start >= stop) revert InvalidQueryRange();
            uint256 tokenIdsIdx;
            uint256 stopLimit = _nextTokenId();
            // Set `start = max(start, _startTokenId())`.
            if (start < _startTokenId()) {
                start = _startTokenId();
            }
            // Set `stop = min(stop, stopLimit)`.
            if (stop > stopLimit) {
                stop = stopLimit;
            }
            uint256 tokenIdsMaxLength = balanceOf(owner);
            // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`,
            // to cater for cases where `balanceOf(owner)` is too big.
            if (start < stop) {
                uint256 rangeLength = stop - start;
                if (rangeLength < tokenIdsMaxLength) {
                    tokenIdsMaxLength = rangeLength;
                }
            } else {
                tokenIdsMaxLength = 0;
            }
            uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength);
            if (tokenIdsMaxLength == 0) {
                return tokenIds;
            }
            // We need to call `explicitOwnershipOf(start)`,
            // because the slot at `start` may not be initialized.
            TokenOwnership memory ownership = explicitOwnershipOf(start);
            address currOwnershipAddr;
            // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`.
            // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range.
            if (!ownership.burned) {
                currOwnershipAddr = ownership.addr;
            }
            for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) {
                ownership = _ownershipAt(i);
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            // Downsize the array to fit.
            assembly {
                mstore(tokenIds, tokenIdsIdx)
            }
            return tokenIds;
        }
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(`totalSupply`) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K collections should be fine).
     */
    function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) {
        unchecked {
            uint256 tokenIdsIdx;
            address currOwnershipAddr;
            uint256 tokenIdsLength = balanceOf(owner);
            uint256[] memory tokenIds = new uint256[](tokenIdsLength);
            TokenOwnership memory ownership;
            for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) {
                ownership = _ownershipAt(i);
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            return tokenIds;
        }
    }
}

File 5 of 15 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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.
     *
     * May emit a {RoleGranted} event.
     */
    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.
     *
     * May emit a {RoleRevoked} event.
     */
    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`.
     *
     * May emit a {RoleRevoked} event.
     */
    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.
     *
     * May emit a {RoleGranted} event.
     *
     * [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.
     *
     * May emit a {RoleGranted} event.
     */
    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.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 6 of 15 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 7 of 15 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";

/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 */
abstract contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    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 8 of 15 : IERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.2
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../IERC721A.sol';

/**
 * @dev Interface of ERC721AQueryable.
 */
interface IERC721AQueryable is IERC721A {
    /**
     * Invalid query range (`start` >= `stop`).
     */
    error InvalidQueryRange();

    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *
     * - `addr = address(0)`
     * - `startTimestamp = 0`
     * - `burned = false`
     * - `extraData = 0`
     *
     * If the `tokenId` is burned:
     *
     * - `addr = <Address of owner before token was burned>`
     * - `startTimestamp = <Timestamp when token was burned>`
     * - `burned = true`
     * - `extraData = <Extra data when token was burned>`
     *
     * Otherwise:
     *
     * - `addr = <Address of owner>`
     * - `startTimestamp = <Timestamp of start of ownership>`
     * - `burned = false`
     * - `extraData = <Extra data at start of ownership>`
     */
    function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory);

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start < stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view returns (uint256[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(`totalSupply`) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K collections should be fine).
     */
    function tokensOfOwner(address owner) external view returns (uint256[] memory);
}

File 9 of 15 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.2
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

/**
 * @dev Interface of ERC721 token receiver.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Reference type for token approval.
    struct TokenApprovalRef {
        address value;
    }

    // =============================================================
    //                           CONSTANTS
    // =============================================================

    // Mask of an entry in packed address data.
    uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant _BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant _BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant _BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant _BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant _BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The bit position of `extraData` in packed ownership.
    uint256 private constant _BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with {_mintERC2309}.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

    // The `Transfer` event signature is given by:
    // `keccak256(bytes("Transfer(address,address,uint256)"))`.
    bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    // =============================================================
    //                            STORAGE
    // =============================================================

    // The next token ID to be minted.
    uint256 private _currentIndex;

    // The number of tokens burned.
    uint256 private _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See {_packedOwnershipOf} implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

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

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

    // =============================================================
    //                          CONSTRUCTOR
    // =============================================================

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    // =============================================================
    //                   TOKEN COUNTING OPERATIONS
    // =============================================================

    /**
     * @dev Returns the starting token ID.
     * To change the starting token ID, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view virtual returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * @dev Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view virtual returns (uint256) {
        // Counter underflow is impossible as `_currentIndex` does not decrement,
        // and it is initialized to `_startTokenId()`.
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view virtual returns (uint256) {
        return _burnCounter;
    }

    // =============================================================
    //                    ADDRESS DATA OPERATIONS
    // =============================================================

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return uint64(_packedAddressData[owner] >> _BITPOS_AUX);
    }

    /**
     * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal virtual {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes
        // of the XOR of all function selectors in the interface.
        // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)
        // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

    /**
     * @dev Returns the token collection name.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        string memory baseURI = _baseURI();
        return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : '';
    }

    /**
     * @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, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    // =============================================================
    //                     OWNERSHIPS OPERATIONS
    // =============================================================

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @dev Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around over time.
     */
    function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal virtual {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & _BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an initialized ownership slot
                        // (i.e. `ownership.addr != address(0) && ownership.burned == false`)
                        // before an unintialized ownership slot
                        // (i.e. `ownership.addr == address(0) && ownership.burned == false`)
                        // Hence, `curr` will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed will be zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP);
        ownership.burned = packed & _BITMASK_BURNED != 0;
        ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
    }

    /**
     * @dev Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
            result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags))
        }
    }

    /**
     * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
            result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

    // =============================================================
    //                      APPROVAL OPERATIONS
    // =============================================================

    /**
     * @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) public virtual override {
        address owner = ownerOf(tokenId);

        if (_msgSenderERC721A() != owner)
            if (!isApprovedForAll(owner, _msgSenderERC721A())) {
                revert ApprovalCallerNotOwnerNorApproved();
            }

        _tokenApprovals[tokenId].value = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @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) public virtual override {
        if (operator == _msgSenderERC721A()) revert ApproveToCaller();

        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @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. See {_mint}.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
     */
    function _isSenderApprovedOrOwner(
        address approvedAddress,
        address owner,
        address msgSender
    ) private pure returns (bool result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, _BITMASK_ADDRESS)
            // `msgSender == owner || msgSender == approvedAddress`.
            result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedSlotAndAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`.
        assembly {
            approvedAddressSlot := tokenApproval.slot
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    // =============================================================
    //                      TRANSFER OPERATIONS
    // =============================================================

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) public virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
            if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();

        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @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 memory _data
    ) public virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token IDs
     * are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * 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, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token IDs
     * have been transferred. This includes minting.
     * And also called after one token has been burned.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * `from` - Previous owner of the given token ID.
     * `to` - Target address that will receive the token.
     * `tokenId` - Token ID to be transferred.
     * `_data` - Optional data to send along with the call.
     *
     * Returns whether the call correctly returned the expected magic value.
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    // =============================================================
    //                        MINT OPERATIONS
    // =============================================================

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _mint(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

            // Use assembly to loop and emit the `Transfer` event for gas savings.
            assembly {
                // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
                toMasked := and(to, _BITMASK_ADDRESS)
                // Emit the `Transfer` event.
                log4(
                    0, // Start of data (0, since no data).
                    0, // End of data (0, since no data).
                    _TRANSFER_EVENT_SIGNATURE, // Signature.
                    0, // `address(0)`.
                    toMasked, // `to`.
                    startTokenId // `tokenId`.
                )

                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

            _currentIndex = end;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

            _currentIndex = startTokenId + quantity;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * See {_mint}.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal virtual {
        _mint(to, quantity);

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) revert();
            }
        }
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal virtual {
        _safeMint(to, quantity, '');
    }

    // =============================================================
    //                        BURN OPERATIONS
    // =============================================================

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

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

        address from = address(uint160(prevOwnershipPacked));

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                from,
                (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

    // =============================================================
    //                     EXTRA DATA OPERATIONS
    // =============================================================

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) revert OwnershipNotInitializedForExtraData();
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * 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, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(
        address from,
        address to,
        uint256 prevOwnershipPacked
    ) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
    }

    // =============================================================
    //                       OTHER OPERATIONS
    // =============================================================

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a uint256 to its ASCII string decimal representation.
     */
    function _toString(uint256 value) internal pure virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit),
            // but we allocate 0x80 bytes to keep the free memory pointer 32-byte word aliged.
            // We will need 1 32-byte word to store the length,
            // and 3 32-byte words to store a maximum of 78 digits. Total: 0x20 + 3 * 0x20 = 0x80.
            str := add(mload(0x40), 0x80)
            // Update the free memory pointer to allocate.
            mstore(0x40, str)

            // Cache the end of the memory to calculate the length later.
            let end := str

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

            let length := sub(end, str)
            // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 0x20)
            // Store the length.
            mstore(str, length)
        }
    }
}

File 10 of 15 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.2
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of ERC721A.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * The caller cannot approve to their own address.
     */
    error ApproveToCaller();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the
     * ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

    // =============================================================
    //                            IERC721
    // =============================================================

    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables
     * (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`,
     * checking first that contract recipients are aware of the ERC721 protocol
     * to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move
     * this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` 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);

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

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

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

File 11 of 15 : 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;
}

File 12 of 15 : 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 13 of 15 : 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 14 of 15 : 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 15 of 15 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"address","name":"_mintPassTwo","type":"address"},{"components":[{"internalType":"uint8","name":"numTokensNeeded","type":"uint8"},{"internalType":"uint32","name":"startWindow","type":"uint32"},{"internalType":"uint32","name":"endWindow","type":"uint32"}],"internalType":"struct DOTS.Evo[]","name":"_evoData","type":"tuple[]"},{"internalType":"address","name":"adminWallet","type":"address"},{"internalType":"address","name":"_vrfCoordinator","type":"address"},{"internalType":"bytes32","name":"_keyHash","type":"bytes32"},{"internalType":"uint64","name":"_subscriptionId","type":"uint64"},{"internalType":"address","name":"_registrant","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AddPreapprovedContractDisabled","type":"error"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"BurnedEvoStageHigherThanTargetEvo","type":"error"},{"inputs":[],"name":"CannotBurnPrimaryToken","type":"error"},{"inputs":[],"name":"EvoDoesNotExist","type":"error"},{"inputs":[],"name":"InsufficientBaseAmount","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"LengthMismatch","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintWindowClosed","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MustIncludeAmount","type":"error"},{"inputs":[],"name":"MustIncludeDotsToUpgrade","type":"error"},{"inputs":[],"name":"MustUpgradeEvoStage","type":"error"},{"inputs":[],"name":"NotOwnedBySender","type":"error"},{"inputs":[{"internalType":"address","name":"have","type":"address"},{"internalType":"address","name":"want","type":"address"}],"name":"OnlyCoordinatorCanFulfill","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TokenDoesNotExist","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ValueTooHigh","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isDisabled","type":"bool"}],"name":"AddingPreapprovedContractsDisabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"anomalyNum","type":"uint256"}],"name":"AnomalyRolled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"limit","type":"uint256"}],"name":"CallbackGasLimitSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"contractToUpdate","type":"address"},{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"ContractApprovalUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"evoNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"genes","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"mintPassTwoBurns","type":"uint256"}],"name":"DOTMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"newEvoNum","type":"uint256"},{"indexed":false,"internalType":"uint256[]","name":"tokenIdsBurned","type":"uint256[]"},{"indexed":false,"internalType":"uint256","name":"mintPassTwoBurns","type":"uint256"}],"name":"DOTUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"indexed":true,"internalType":"uint256","name":"newEvoNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"mintPassTwoBurns","type":"uint256"},{"indexed":false,"internalType":"uint256[]","name":"tokenIdsBurned","type":"uint256[]"}],"name":"DotsUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"evoNum","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"numTokensNeeded","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"startWindows","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"endWindows","type":"uint256[]"}],"name":"EvoDataBatchUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"keyhash","type":"bytes32"}],"name":"KeyHashSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"confirmations","type":"uint256"}],"name":"RequestConfirmationsSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"SubscriptionIdSet","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":"string","name":"uri","type":"string"}],"name":"UriUpdated","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"anomalyRolls","outputs":[{"internalType":"uint64","name":"evoStage","type":"uint64"},{"internalType":"uint64","name":"anomalyAmount","type":"uint64"}],"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":"","type":"address"}],"name":"approvedContracts","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"burnFromApprovedContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_approvedContract","type":"address"},{"internalType":"bool","name":"_enable","type":"bool"}],"name":"changeApprovedContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"currentEvoDots","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_evoNums","type":"uint256[]"},{"internalType":"uint256[]","name":"_numTokensNeeded","type":"uint256[]"},{"internalType":"uint256[]","name":"_startWindows","type":"uint256[]"},{"internalType":"uint256[]","name":"_endWindows","type":"uint256[]"}],"name":"editEvoDataBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"evoData","outputs":[{"internalType":"uint8","name":"numTokensNeeded","type":"uint8"},{"internalType":"uint32","name":"startWindow","type":"uint32"},{"internalType":"uint32","name":"endWindow","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getMetadata","outputs":[{"components":[{"internalType":"uint8","name":"evoNum","type":"uint8"},{"internalType":"uint64","name":"genes","type":"uint64"},{"internalType":"uint8","name":"anomalyNum","type":"uint8"}],"internalType":"struct DOTS.Metadata","name":"_data","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"irrevocablyDisableAddingPreapprovedContracts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_evoNum","type":"uint256"},{"internalType":"uint256","name":"_numDots","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_evoNum","type":"uint256"},{"internalType":"uint256","name":"_numDots","type":"uint256"}],"name":"mintTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"requestId","type":"uint256"},{"internalType":"uint256[]","name":"randomWords","type":"uint256[]"}],"name":"rawFulfillRandomWords","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_evoStage","type":"uint64"},{"internalType":"uint64","name":"_anomalyAmount","type":"uint64"}],"name":"rollAnomalyDots","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_callbackGasLimit","type":"uint32"}],"name":"setCallbackGasLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_keyHash","type":"bytes32"}],"name":"setKeyHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_requestConfirmations","type":"uint16"}],"name":"setRequestConfirmations","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_subscriptionId","type":"uint64"}],"name":"setSubscriptionId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_primaryTokenId","type":"uint256"},{"internalType":"uint256","name":"_targetEvoNum","type":"uint256"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"upgrade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_primaryTokenIds","type":"uint256[]"},{"internalType":"uint256","name":"_targetEvoNum","type":"uint256"},{"internalType":"uint256[]","name":"_tokenIdsToBurn","type":"uint256[]"}],"name":"upgradeMultiple","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e0604052600b805465ffffffffffff60481b19166d03002625a00000000000000000001790553480156200003357600080fd5b50604051620059ca380380620059ca83398101604081905262000056916200060e565b806001858c8c60026200006a8382620007bf565b506003620000798282620007bf565b50600160005550506001600160a01b03166080526daaeb6d7670e522a718067333cd4e3b15620001d25780156200012057604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200010157600080fd5b505af115801562000116573d6000803e3d6000fd5b50505050620001d2565b6001600160a01b03821615620001715760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401620000e6565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620001b857600080fd5b505af1158015620001cd573d6000803e3d6000fd5b505050505b50506001600160a01b03841660c052600b80546001600160401b0319166001600160401b038416179055600a83905560096200020f8982620007bf565b506001600160a01b03871660a05260005b8651811015620002c2578681815181106200023f576200023f6200088b565b6020026020010151600d60008360016200025a9190620008a1565b815260208082019290925260409081016000208351815493850151949092015163ffffffff908116650100000000000263ffffffff60281b19919095166101000264ffffffffff1990941660ff90931692909217929092171691909117905560010162000220565b50620002d060008662000320565b620003107fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177573fd64b63d4a54e6b1a0aa88e6623046c54f960d0062000320565b50505050505050505050620008c3565b6200032c828262000330565b5050565b6200033c8282620003ba565b6200032c5760008281526008602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620003763390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526008602090815260408083206001600160a01b038516845290915290205460ff165b92915050565b634e487b7160e01b600052604160045260246000fd5b604051606081016001600160401b0381118282101715620004225762000422620003e7565b60405290565b604051601f8201601f191681016001600160401b0381118282101715620004535762000453620003e7565b604052919050565b600082601f8301126200046d57600080fd5b81516001600160401b03811115620004895762000489620003e7565b60206200049f601f8301601f1916820162000428565b8281528582848701011115620004b457600080fd5b60005b83811015620004d4578581018301518282018401528201620004b7565b506000928101909101919091529392505050565b80516001600160a01b03811681146200050057600080fd5b919050565b805163ffffffff811681146200050057600080fd5b600082601f8301126200052c57600080fd5b815160206001600160401b038211156200054a576200054a620003e7565b6200055a818360051b0162000428565b828152606092830285018201928282019190878511156200057a57600080fd5b8387015b85811015620005e95781818a031215620005985760008081fd5b620005a2620003fd565b815160ff81168114620005b55760008081fd5b8152620005c482870162000505565b868201526040620005d781840162000505565b9082015284529284019281016200057e565b5090979650505050505050565b80516001600160401b03811681146200050057600080fd5b6000806000806000806000806000806101408b8d0312156200062f57600080fd5b8a516001600160401b03808211156200064757600080fd5b620006558e838f016200045b565b9b5060208d01519150808211156200066c57600080fd5b6200067a8e838f016200045b565b9a5060408d01519150808211156200069157600080fd5b6200069f8e838f016200045b565b9950620006af60608e01620004e8565b985060808d0151915080821115620006c657600080fd5b50620006d58d828e016200051a565b965050620006e660a08c01620004e8565b9450620006f660c08c01620004e8565b935060e08b015192506200070e6101008c01620005f6565b91506200071f6101208c01620004e8565b90509295989b9194979a5092959850565b600181811c908216806200074557607f821691505b6020821081036200076657634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620007ba57600081815260208120601f850160051c81016020861015620007955750805b601f850160051c820191505b81811015620007b657828155600101620007a1565b5050505b505050565b81516001600160401b03811115620007db57620007db620003e7565b620007f381620007ec845462000730565b846200076c565b602080601f8311600181146200082b5760008415620008125750858301515b600019600386901b1c1916600185901b178555620007b6565b600085815260208120601f198616915b828110156200085c578886015182559484019460019091019084016200083b565b50858210156200087b5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b80820180821115620003e157634e487b7160e01b600052601160045260246000fd5b60805160a05160c0516150c2620009086000396000611e99015260008181610f5a015281816113b2015261240501526000818161106701526110cf01526150c26000f3fe608060405234801561001057600080fd5b506004361061030a5760003560e01c80636352211e1161019c578063a330dd43116100ee578063c87b56dd11610097578063e5dd195711610071578063e5dd1957146107c9578063e985e9c5146107dc578063ea7b4f771461082557600080fd5b8063c87b56dd14610790578063ca9242a5146107a3578063d547741f146107b657600080fd5b8063b88d4fde116100c8578063b88d4fde1461074a578063c23dc68f1461075d578063c48e6e861461077d57600080fd5b8063a330dd43146106dd578063a4eb718c146106f0578063a574cea41461070357600080fd5b806395d89b4111610150578063a140b65f1161012a578063a140b65f146106ba578063a217fddf146106c2578063a22cb465146106ca57600080fd5b806395d89b411461068c578063985447101461069457806399a2557a146106a757600080fd5b80638462151c116101815780638462151c146106135780638824f5a71461063357806391d148541461064657600080fd5b80636352211e146105ed57806370a082311461060057600080fd5b8063248a9ca31161026057806341f43434116102095780634913d4c7116101e35780634913d4c71461055f578063591c1e06146105ba5780635bbb2177146105cd57600080fd5b806341f434341461052457806342842e0e1461053957806342966c681461054c57600080fd5b80632f2ff15d1161023a5780632f2ff15d1461049c57806336568abe146104af5780633b704891146104c257600080fd5b8063248a9ca31461044357806326749ad7146104665780632baf2acb1461048957600080fd5b8063095ea7b3116102c25780631cb556ef1161029c5780631cb556ef1461040a5780631fe543e31461041d57806323b872dd1461043057600080fd5b8063095ea7b3146103ac57806318160ddd146103bf5780631b2ef1ca146103f757600080fd5b806302fe5305116102f357806302fe53051461034c57806306fdde031461035f578063081812fc1461037457600080fd5b806301ffc9a71461030f57806302ac686314610337575b600080fd5b61032261031d366004614225565b610838565b60405190151581526020015b60405180910390f35b61034a61034536600461428e565b610a01565b005b61034a61035a366004614446565b610c02565b610367610c74565b60405161032e91906144fd565b610387610382366004614510565b610d06565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161032e565b61034a6103ba36600461454d565b610d70565b600154600054037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff015b60405190815260200161032e565b61034a610405366004614577565b610d89565b61034a610418366004614599565b610d98565b61034a61042b3660046145ec565b61104f565b61034a61043e36600461469e565b61110b565b6103e9610451366004614510565b60009081526008602052604090206001015490565b6103226104743660046146da565b60116020526000908152604090205460ff1681565b61034a6104973660046146f5565b611143565b61034a6104aa366004614728565b611178565b61034a6104bd366004614728565b61119d565b6104fe6104d0366004614510565b600d6020526000908152604090205460ff81169063ffffffff61010082048116916501000000000090041683565b6040805160ff909416845263ffffffff928316602085015291169082015260600161032e565b6103876daaeb6d7670e522a718067333cd4e81565b61034a61054736600461469e565b61124c565b61034a61055a366004614510565b61127e565b61059961056d366004614510565b60106020526000908152604090205467ffffffffffffffff808216916801000000000000000090041682565b6040805167ffffffffffffffff93841681529290911660208301520161032e565b61034a6105c8366004614754565b6112c0565b6105e06105db3660046147ce565b61146f565b60405161032e9190614810565b6103876105fb366004614510565b611559565b6103e961060e3660046146da565b611564565b6106266106213660046146da565b6115e6565b60405161032e919061489a565b61034a6106413660046148d2565b611711565b610322610654366004614728565b600091825260086020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b6103676117af565b61034a6106a2366004614510565b6117be565b6106266106b53660046146f5565b61181d565b61034a6119e5565b6103e9600081565b61034a6106d8366004614904565b611a79565b61034a6106eb366004614904565b611a8d565b61034a6106fe36600461493b565b611b98565b610716610711366004614510565b611c34565b60408051825160ff908116825260208085015167ffffffffffffffff1690830152928201519092169082015260600161032e565b61034a610758366004614961565b611cd5565b61077061076b366004614510565b611d0f565b60405161032e91906149dd565b61034a61078b366004614a47565b611d97565b61036761079e366004614510565b611f90565b61034a6107b1366004614510565b611fc4565b61034a6107c4366004614728565b61204a565b6103e96107d7366004614577565b61206f565b6103226107ea366004614a71565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260076020908152604080832093909416825291909152205460ff1690565b61034a610833366004614a9b565b6120a0565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806108cb57507fffffffff0000000000000000000000000000000000000000000000000000000082167f01ffc9a700000000000000000000000000000000000000000000000000000000145b8061091757507fffffffff0000000000000000000000000000000000000000000000000000000082167f8446a79e00000000000000000000000000000000000000000000000000000000145b8061096357507fffffffff0000000000000000000000000000000000000000000000000000000082167fc21b8f2800000000000000000000000000000000000000000000000000000000145b806109af57507f80ac58cd000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b806109fb57507f5b5e139f000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610a2b81612131565b8786141580610a3a5750878414155b80610a455750878214155b15610a7c576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b88811015610bb1576040518060600160405280898984818110610aa457610aa4614ab6565b9050602002013560ff168152602001878784818110610ac557610ac5614ab6565b9050602002013563ffffffff168152602001858584818110610ae957610ae9614ab6565b9050602002013563ffffffff16815250600d60008c8c85818110610b0f57610b0f614ab6565b602090810292909201358352508181019290925260409081016000208351815493850151949092015163ffffffff90811665010000000000027fffffffffffffffffffffffffffffffffffffffffffffff00000000ffffffffff91909516610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000090941660ff909316929092179290921716919091179055600101610a7f565b507fdf6748303d90a705a28808e660159cfd3348e7f229bbdb909fbae32f1cf5f41b8989898989898989604051610bef989796959493929190614b30565b60405180910390a1505050505050505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610c2c81612131565b6009610c388382614c23565b507f4405f9f72187d24d444b6d55ef67bfb2ef76aacbc07d6d642a5763dd5fd77cbf82604051610c6891906144fd565b60405180910390a15050565b606060028054610c8390614b90565b80601f0160208091040260200160405190810160405280929190818152602001828054610caf90614b90565b8015610cfc5780601f10610cd157610100808354040283529160200191610cfc565b820191906000526020600020905b815481529060010190602001808311610cdf57829003601f168201915b5050505050905090565b6000610d118261213b565b610d47576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5060009081526006602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b81610d7a81612189565b610d84838361228e565b505050565b610d94828233612379565b5050565b6000838152600d602090815260408083208151606081018352905460ff808216835263ffffffff610100830481168487019081526501000000000090930481168486019081528b8852600e90965293909520549051935191941692610e0192908116911661266b565b33610e0b87611559565b73ffffffffffffffffffffffffffffffffffffffff1614610e58576040517fd6fb553000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808511610e91576040517f7b7a171a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000858152600c60209081526040822080546001810182559083529082200187905580610ebf888787612724565b6000848152600d6020526040902054855160ff91821692909201925016811115610f15576040517f18dc18b300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b835160ff1681810392508114610fcc576040517f88cf581c000000000000000000000000000000000000000000000000000000008152336004820152602481018390527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906388cf581c90604401600060405180830381600087803b158015610fb357600080fd5b505af1158015610fc7573d6000803e3d6000fd5b505050505b6000888152600e60205260409081902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660ff8a1617905551879089907f2bda87a34e7dc9452548fb58fd94a8fb584d40af87a5b6a5daadf59d99521d749061103d908a908a908890614d3d565b60405180910390a35050505050505050565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614611101576040517f1cf993f400000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001660248201526044015b60405180910390fd5b610d9482826127cc565b8273ffffffffffffffffffffffffffffffffffffffff811633146111325761113233612189565b61113d848484612a2c565b50505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177561116d81612131565b61113d838386612379565b60008281526008602052604090206001015461119381612131565b610d848383612cc6565b73ffffffffffffffffffffffffffffffffffffffff81163314611242576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016110f8565b610d948282612dba565b8273ffffffffffffffffffffffffffffffffffffffff811633146112735761127333612189565b61113d848484612e75565b6000818152600e6020526040902080547fffffffffffffffffffffffffffffffffffffffffffff000000000000000000001690556112bd816001612e90565b50565b6000838152600d60209081526040918290208251606081018452905460ff8116825263ffffffff61010082048116938301849052650100000000009091041692810183905291611310919061266b565b8051600090819060ff168702611329898988888b61303f565b6113348a8a8a613168565b01915080821115611371576040517f18dc18b300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181039250808214611424576040517f88cf581c000000000000000000000000000000000000000000000000000000008152336004820152602481018490527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906388cf581c90604401600060405180830381600087803b15801561140b57600080fd5b505af115801561141f573d6000803e3d6000fd5b505050505b867f7a50aafe106d092cabc6c80fa36733e2216d5e2a7181c1bb493add5cd26a15828a8a868a8a60405161145c959493929190614d61565b60405180910390a2505050505050505050565b60608160008167ffffffffffffffff81111561148d5761148d614352565b6040519080825280602002602001820160405280156114fd57816020015b6040805160808101825260008082526020808301829052928201819052606082015282527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9092019101816114ab5790505b50905060005b8281146115505761152b86868381811061151f5761151f614ab6565b90506020020135611d0f565b82828151811061153d5761153d614ab6565b6020908102919091010152600101611503565b50949350505050565b60006109fb826132ae565b600073ffffffffffffffffffffffffffffffffffffffff82166115b3576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5073ffffffffffffffffffffffffffffffffffffffff1660009081526005602052604090205467ffffffffffffffff1690565b606060008060006115f685611564565b905060008167ffffffffffffffff81111561161357611613614352565b60405190808252806020026020018201604052801561163c578160200160208202803683370190505b5060408051608081018252600080825260208201819052918101829052606081019190915290915060015b838614611705576116778161336d565b915081604001516116fd57815173ffffffffffffffffffffffffffffffffffffffff16156116a457815194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036116fd57808387806001019850815181106116f0576116f0614ab6565b6020026020010181815250505b600101611667565b50909695505050505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177561173b81612131565b600b80547fffffffffffffffffffffffffffffffffff0000ffffffffffffffffffffffffff166d010000000000000000000000000061ffff8516908102919091179091556040519081527febea88b49693a9cfde696c6e76a77212f44f15bf4f73f0cbc30cd8773759a47390602001610c68565b606060038054610c8390614b90565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217756117e881612131565b600a8290556040518281527fd013f86c8346660ebf421351882cd1b3c2f91883092df1800264c656b0db0cc690602001610c68565b6060818310611858576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061186460005490565b9050600185101561187457600194505b80841115611880578093505b600061188b87611564565b9050848610156118aa57858503818110156118a4578091505b506118ae565b5060005b60008167ffffffffffffffff8111156118c9576118c9614352565b6040519080825280602002602001820160405280156118f2578160200160208202803683370190505b509050816000036119085793506119de92505050565b600061191388611d0f565b905060008160400151611924575080515b885b8881141580156119365750848714155b156119d2576119448161336d565b925082604001516119ca57825173ffffffffffffffffffffffffffffffffffffffff161561197157825191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036119ca57808488806001019950815181106119bd576119bd614ab6565b6020026020010181815250505b600101611926565b50505092835250909150505b9392505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775611a0f81612131565b600b80547fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff1668010000000000000000179055604051600181527fe8e61f2487fe3c3d1f98599aad9f4657155fa93ce7d629df6fc3c07dc077c6639060200160405180910390a150565b81611a8381612189565b610d848383613412565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775611ab781612131565b600b5468010000000000000000900460ff168015611ad25750815b15611b09576040517f7b20030900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff831660008181526011602090815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168615159081179091558251938452908301527fe7faf35453f298b6a9532f9ec4839fe826111c39a635574f6aa40d6f20a83b01910160405180910390a1505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775611bc281612131565b600b80547fffffffffffffffffffffffffffffffffffffff00000000ffffffffffffffffff16690100000000000000000063ffffffff8516908102919091179091556040519081527fea0306c7b92bfad18ad155350fb250f350724d4e5c843eeb51997be9f937c35090602001610c68565b604080516060808201835260008083526020808401829052928401819052848152600e8352838120845192830185525460ff808216808552610100830467ffffffffffffffff1695850195909552690100000000000000000090910416938201939093529103611cd0576040517fceea21b600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b8373ffffffffffffffffffffffffffffffffffffffff81163314611cfc57611cfc33612189565b611d08858585856134f8565b5050505050565b6040805160808101825260008082526020820181905291810182905260608101919091526040805160808101825260008082526020820181905291810182905260608101919091526001831080611d6857506000548310155b15611d735792915050565b611d7c8361336d565b9050806040015115611d8e5792915050565b6119de83613562565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775611dc181612131565b67ffffffffffffffff8381166000908152600c60205260409020549083161115611e17576040517fd908d5a400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a54600b546040517f5d3b1d30000000000000000000000000000000000000000000000000000000008152600481019290925267ffffffffffffffff811660248301526d0100000000000000000000000000810461ffff1660448301526901000000000000000000900463ffffffff166064820152600160848201526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1690635d3b1d309060a4016020604051808303816000875af1158015611ef7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f1b9190614d9a565b60408051808201825267ffffffffffffffff968716815294861660208087019182526000938452601090529120935184549151861668010000000000000000027fffffffffffffffffffffffffffffffff00000000000000000000000000000000909216951694909417939093179091555050565b60606009611f9d83613600565b604051602001611fae929190614db3565b6040516020818303038152906040529050919050565b3360009081526011602052604090205460ff1661200d576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000818152600e6020526040902080547fffffffffffffffffffffffffffffffffffffffffffff000000000000000000001690556112bd8161373d565b60008281526008602052604090206001015461206581612131565b610d848383612dba565b600c602052816000526040600020818154811061208b57600080fd5b90600052602060002001600091509150505481565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217756120ca81612131565b600b80547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff84169081179091556040519081527f8a2377055cb80a6969c9e8a0cc11ee02c18ba436643aa673bf887b12f354423190602001610c68565b6112bd8133613748565b60008160011115801561214f575060005482105b80156109fb5750506000908152600460205260409020547c0100000000000000000000000000000000000000000000000000000000161590565b6daaeb6d7670e522a718067333cd4e3b156112bd576040517fc617113400000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561221c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122409190614e58565b6112bd576040517fede71dcc00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff821660048201526024016110f8565b600061229982611559565b90503373ffffffffffffffffffffffffffffffffffffffff8216146122f8576122c281336107ea565b6122f8576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b816000036123b3576040517f0bfe804f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000838152600d60209081526040918290208251606081018452905460ff8116825263ffffffff61010082048116938301849052650100000000009091041692810183905291612403919061266b565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166388cf581c3385846000015160ff166124539190614ea4565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401600060405180830381600087803b1580156124be57600080fd5b505af11580156124d2573d6000803e3d6000fd5b5050505060006124e160005490565b905060005b84811015612660576001861115612519576000868152600c60209081526040822080546001810182559083529120018290555b600061252361381a565b6040805160608101825260ff808b16825267ffffffffffffffff808516602080850191825260008587018181528b8252600e8352878220965187549451915187166901000000000000000000027fffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffffff92909616610100027fffffffffffffffffffffffffffffffffffffffffffffff000000000000000000909516961695909517929092179390931691909117909255600884901c8252600f905281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905585519051919250889185917f767010d8d36f967099ed5684f986f8ec01c5584b217e77ec834c8aef9dd96b5c9161264b9186825260ff16602082015260400190565b60405180910390a350600191820191016124e6565b50611d08838561394a565b806000036126a5576040517f3d32a6e000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b814210806126b257508042115b80156126ed57503360009081527f17d1276acf776df712513cd7e943076446ad62eef46fc257e0602ed40109c3c6602052604090205460ff16155b15610d94576040517fc61f198500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000805b828110156127c457600084848381811061274457612744614ab6565b905060200201359050858103612786576040517f16b1865e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000818152600e602090815260408083205460ff9081168452600d90925290912054169290920191600191909101906127be8161127e565b50612728565b509392505050565b600082815260106020908152604080832081518083018352905467ffffffffffffffff8082168084526801000000000000000090920416828501528452600c8352818420805483518186028101860190945280845291949390919083018282801561285657602002820191906000526020600020905b815481526020019060010190808311612842575b5050505050905060008060008060005b866020015167ffffffffffffffff16841015612a21578586518960008151811061289257612892614ab6565b6020026020010151876040516020016128b5929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c6128d89190614eea565b815181106128e8576128e8614ab6565b6020908102919091018101516000818152600e90925260408220549094506901000000000000000000900460ff169003612a165760648860008151811061293157612931614ab6565b602002602001015184604051602001612954929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c6129779190614eea565b9150600a82101561298a5750600161299f565b603782101561299b5750600261299f565b5060035b6000838152600e602052604080822080547fffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffffff16690100000000000000000060ff8616021790555160019590950194829185917f2a0a5cb4d1c48e36e47beeee7666534ab9504f8d3bb5e387e82356049b37f15c9190a35b600190940193612866565b505050505050505050565b6000612a37826132ae565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612a9e576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604090208054612ad78187335b73ffffffffffffffffffffffffffffffffffffffff9081169116811491141790565b612b1b57612ae586336107ea565b612b1b576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8516612b68576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8015612b7357600082555b73ffffffffffffffffffffffffffffffffffffffff86811660009081526005602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff019055918716808252919020805460010190554260a01b177c0200000000000000000000000000000000000000000000000000000000176000858152600460205260408120919091557c020000000000000000000000000000000000000000000000000000000084169003612c6257600184016000818152600460205260408120549003612c60576000548114612c605760008181526004602052604090208490555b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b600082815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610d9457600082815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055612d5c3390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600082815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1615610d9457600082815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b610d8483838360405180602001604052806000815250611cd5565b6000612e9b836132ae565b905080600080612eb986600090815260066020526040902080549091565b915091508415612f1257612ece818433612ab5565b612f1257612edc83336107ea565b612f12576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8015612f1d57600082555b73ffffffffffffffffffffffffffffffffffffffff8316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b177c0300000000000000000000000000000000000000000000000000000000176000878152600460205260408120919091557c020000000000000000000000000000000000000000000000000000000085169003612fea57600186016000818152600460205260408120549003612fe8576000548114612fe85760008181526004602052604090208590555b505b604051869060009073ffffffffffffffffffffffffffffffffffffffff8616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050600180548101905550505050565b600084810361307a576040517f5a5722e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8381101561315e57600085858381811061309957613099614ab6565b602090810292909201356000818152600e9093526040909220549192505060ff166130c5828a8a613a88565b156130fc576040517f16b1865e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b848110613135576040517fcec92a9300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61313e8261127e565b6000908152600d602052604090205460ff1692909201915060010161307d565b5095945050505050565b6000805b838110156127c457600085858381811061318857613188614ab6565b602090810292909201356000818152600e9093526040909220549192505060ff16336131b383611559565b73ffffffffffffffffffffffffffffffffffffffff1614613200576040517fd6fb553000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808511613239576040517f7b7a171a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000858152600c6020908152604080832080546001808201835591855283852001869055948352600e825280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660ff808b1691909117909155938352600d9091529020541692909201910161316c565b6000818060011161333b5760005481101561333b57600081815260046020526040812054907c010000000000000000000000000000000000000000000000000000000082169003613339575b806000036119de57507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff016000818152600460205260409020546132fa565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805160808101825260008082526020820181905291810182905260608101919091526000828152600460205260409020546109fb906040805160808101825273ffffffffffffffffffffffffffffffffffffffff8316815260a083901c67ffffffffffffffff1660208201527c0100000000000000000000000000000000000000000000000000000000831615159181019190915260e89190911c606082015290565b3373ffffffffffffffffffffffffffffffffffffffff831603613461576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b33600081815260076020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61350384848461110b565b73ffffffffffffffffffffffffffffffffffffffff83163b1561113d5761352c84848484613ad0565b61113d576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805160808101825260008082526020820181905291810182905260608101919091526109fb613592836132ae565b6040805160808101825273ffffffffffffffffffffffffffffffffffffffff8316815260a083901c67ffffffffffffffff1660208201527c0100000000000000000000000000000000000000000000000000000000831615159181019190915260e89190911c606082015290565b60608160000361364357505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561366d578061365781614efe565b91506136669050600a83614f36565b9150613647565b60008167ffffffffffffffff81111561368857613688614352565b6040519080825280601f01601f1916602001820160405280156136b2576020820181803683370190505b5090505b8415613735576136c7600183614f4a565b91506136d4600a86614eea565b6136df906030614f5d565b60f81b8183815181106136f4576136f4614ab6565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061372e600a86614f36565b94506136b6565b949350505050565b6112bd816000612e90565b600082815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610d94576137a08173ffffffffffffffffffffffffffffffffffffffff166014613c49565b6137ab836020613c49565b6040516020016137bc929190614f70565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a00000000000000000000000000000000000000000000000000000000082526110f8916004016144fd565b60008033325a6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606094851b811660208301529290931b909116603483015260488201524260688201524360888201819052804060a88301527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9c014060c882015260e801604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152828252805160209182012090830152016040516020818303038152906040528051906020012060001c90505b61390181613e8c565b600881901c6000908152600f602052604090205490925060ff1615613946576040805160208082019390935281518082038401815290820190915280519101206138f8565b5090565b6000805490829003613988576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114613a4457808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101613a0c565b5081600003613a7f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005550505050565b6000805b82811015613ac55784848483818110613aa757613aa7614ab6565b9050602002013503613abd5760019150506119de565b600101613a8c565b506000949350505050565b6040517f150b7a0200000000000000000000000000000000000000000000000000000000815260009073ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290613b2b903390899088908890600401614ff1565b6020604051808303816000875af1925050508015613b84575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252613b819181019061503a565b60015b613bfb573d808015613bb2576040519150601f19603f3d011682016040523d82523d6000602084013e613bb7565b606091505b508051600003613bf3576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050949350505050565b60606000613c58836002614ea4565b613c63906002614f5d565b67ffffffffffffffff811115613c7b57613c7b614352565b6040519080825280601f01601f191660200182016040528015613ca5576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110613cdc57613cdc614ab6565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613d3f57613d3f614ab6565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000613d7b846002614ea4565b613d86906001614f5d565b90505b6001811115613e23577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110613dc757613dc7614ab6565b1a60f81b828281518110613ddd57613ddd614ab6565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93613e1c81615057565b9050613d89565b5083156119de576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016110f8565b60408051610100810190915260009061ffff831690829080613eb486601061fffe600e613fd7565b8152602001613ecc86602061fffc600c60ff16613fd7565b8152602001613ee186603061fff06028613fd7565b8152602001613ef686604061fffe601f613fd7565b8152602001613f0b86605061fff0601e613fd7565b8152602001613f2086606061fff06028613fd7565b8152602001613f3586607061fff06028613fd7565b8152602001613f4a86608061fff06014613fd7565b905260a0810151909150602303613f6357600060e08201525b613f6c82614032565b60e082015160c083015160a084015160389290921b9160309190911b9060281b60208560046020020151901b60188660036020020151901b60108760026020020151901b60088860016020020151901b600089816020020151901b1717171717171716949350505050565b600061ffff841b8516841c5b8381106140145760408051602080820193909352815180820384018152908201909152805191012061ffff16613fe3565b82818161402357614023614ebb565b06600101915050949350505050565b63ffffffff60ff6106658311156141f157615fff8310156140a35761246a83101561406557603081901b821791506141f1565b6141fb83101561407d57602881901b821791506141f1565b615f8c83101561409557602081901b821791506141f1565b603881901b821791506141f1565b61dfff831015614157576192af8310156140cb57603081901b602882901b83171791506141f1565b61d20b8310156140e957603081901b602082901b83171791506141f1565b61d33283101561410757603881901b603082901b83171791506141f1565b61dfbd83101561412557602881901b602082901b83171791506141f1565b61dfda83101561414357603881901b602882901b83171791506141f1565b603881901b602082901b83171791506141f1565b61f9998310156141e75761f5fe83101561418557603081901b602882901b602083901b8417171791506141f1565b61f7198310156141a957603881901b603082901b602883901b8417171791506141f1565b61f8508310156141cd57603881901b603082901b602083901b8417171791506141f1565b603881901b602882901b602083901b8417171791506141f1565b602082901b821791505b50919050565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146112bd57600080fd5b60006020828403121561423757600080fd5b81356119de816141f7565b60008083601f84011261425457600080fd5b50813567ffffffffffffffff81111561426c57600080fd5b6020830191508360208260051b850101111561428757600080fd5b9250929050565b6000806000806000806000806080898b0312156142aa57600080fd5b883567ffffffffffffffff808211156142c257600080fd5b6142ce8c838d01614242565b909a50985060208b01359150808211156142e757600080fd5b6142f38c838d01614242565b909850965060408b013591508082111561430c57600080fd5b6143188c838d01614242565b909650945060608b013591508082111561433157600080fd5b5061433e8b828c01614242565b999c989b5096995094979396929594505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156143c8576143c8614352565b604052919050565b600067ffffffffffffffff8311156143ea576143ea614352565b61441b60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011601614381565b905082815283838301111561442f57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561445857600080fd5b813567ffffffffffffffff81111561446f57600080fd5b8201601f8101841361448057600080fd5b613735848235602084016143d0565b60005b838110156144aa578181015183820152602001614492565b50506000910152565b600081518084526144cb81602086016020860161448f565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006119de60208301846144b3565b60006020828403121561452257600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff81168114611cd057600080fd5b6000806040838503121561456057600080fd5b61456983614529565b946020939093013593505050565b6000806040838503121561458a57600080fd5b50508035926020909101359150565b600080600080606085870312156145af57600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156145d457600080fd5b6145e087828801614242565b95989497509550505050565b600080604083850312156145ff57600080fd5b8235915060208084013567ffffffffffffffff8082111561461f57600080fd5b818601915086601f83011261463357600080fd5b81358181111561464557614645614352565b8060051b9150614656848301614381565b818152918301840191848101908984111561467057600080fd5b938501935b8385101561468e57843582529385019390850190614675565b8096505050505050509250929050565b6000806000606084860312156146b357600080fd5b6146bc84614529565b92506146ca60208501614529565b9150604084013590509250925092565b6000602082840312156146ec57600080fd5b6119de82614529565b60008060006060848603121561470a57600080fd5b61471384614529565b95602085013595506040909401359392505050565b6000806040838503121561473b57600080fd5b8235915061474b60208401614529565b90509250929050565b60008060008060006060868803121561476c57600080fd5b853567ffffffffffffffff8082111561478457600080fd5b61479089838a01614242565b90975095506020880135945060408801359150808211156147b057600080fd5b506147bd88828901614242565b969995985093965092949392505050565b600080602083850312156147e157600080fd5b823567ffffffffffffffff8111156147f857600080fd5b61480485828601614242565b90969095509350505050565b6020808252825182820181905260009190848201906040850190845b818110156117055761488783855173ffffffffffffffffffffffffffffffffffffffff815116825267ffffffffffffffff602082015116602083015260408101511515604083015262ffffff60608201511660608301525050565b928401926080929092019160010161482c565b6020808252825182820181905260009190848201906040850190845b81811015611705578351835292840192918401916001016148b6565b6000602082840312156148e457600080fd5b813561ffff811681146119de57600080fd5b80151581146112bd57600080fd5b6000806040838503121561491757600080fd5b61492083614529565b91506020830135614930816148f6565b809150509250929050565b60006020828403121561494d57600080fd5b813563ffffffff811681146119de57600080fd5b6000806000806080858703121561497757600080fd5b61498085614529565b935061498e60208601614529565b925060408501359150606085013567ffffffffffffffff8111156149b157600080fd5b8501601f810187136149c257600080fd5b6149d1878235602084016143d0565b91505092959194509250565b815173ffffffffffffffffffffffffffffffffffffffff16815260208083015167ffffffffffffffff169082015260408083015115159082015260608083015162ffffff1690820152608081016109fb565b803567ffffffffffffffff81168114611cd057600080fd5b60008060408385031215614a5a57600080fd5b614a6383614a2f565b915061474b60208401614a2f565b60008060408385031215614a8457600080fd5b614a8d83614529565b915061474b60208401614529565b600060208284031215614aad57600080fd5b6119de82614a2f565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b81835260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115614b1757600080fd5b8260051b80836020870137939093016020019392505050565b608081526000614b44608083018a8c614ae5565b8281036020840152614b5781898b614ae5565b90508281036040840152614b6c818789614ae5565b90508281036060840152614b81818587614ae5565b9b9a5050505050505050505050565b600181811c90821680614ba457607f821691505b6020821081036141f1577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b601f821115610d8457600081815260208120601f850160051c81016020861015614c045750805b601f850160051c820191505b81811015612cbe57828155600101614c10565b815167ffffffffffffffff811115614c3d57614c3d614352565b614c5181614c4b8454614b90565b84614bdd565b602080601f831160018114614ca45760008415614c6e5750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b178555612cbe565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b82811015614cf157888601518255948401946001909101908401614cd2565b5085821015614d2d57878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b604081526000614d51604083018587614ae5565b9050826020830152949350505050565b606081526000614d75606083018789614ae5565b8560208401528281036040840152614d8e818587614ae5565b98975050505050505050565b600060208284031215614dac57600080fd5b5051919050565b6000808454614dc181614b90565b60018281168015614dd95760018114614e0c57614e3b565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0084168752821515830287019450614e3b565b8860005260208060002060005b85811015614e325781548a820152908401908201614e19565b50505082870194505b505050508351614e4f81836020880161448f565b01949350505050565b600060208284031215614e6a57600080fd5b81516119de816148f6565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820281158282048414176109fb576109fb614e75565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082614ef957614ef9614ebb565b500690565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614f2f57614f2f614e75565b5060010190565b600082614f4557614f45614ebb565b500490565b818103818111156109fb576109fb614e75565b808201808211156109fb576109fb614e75565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351614fa881601785016020880161448f565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351614fe581602884016020880161448f565b01602801949350505050565b600073ffffffffffffffffffffffffffffffffffffffff80871683528086166020840152508360408301526080606083015261503060808301846144b3565b9695505050505050565b60006020828403121561504c57600080fd5b81516119de816141f7565b60008161506657615066614e75565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff019056fea2646970667358221220713f63bb9d2b3dfdb12d0942434afa967fb40e56e262e2fef884ccb8edb64c1f64736f6c634300081100330000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000033cfae13a9486c29cd3b11391cc7eca53822e8c7000000000000000000000000000000000000000000000000000000000000022000000000000000000000000079a20cf7331f37432e078d923074e42512e3585a000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e699098af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef0000000000000000000000000000000000000000000000000000000000000179000000000000000000000000d042aba7d9fa48bf57271151c4a6f3cc74adc5500000000000000000000000000000000000000000000000000000000000000004444f5473000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004444f545300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002c68747470733a2f2f6170692e646f74732e656e7465727468657661756c742e6170702f6d657461646174612f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000006393c4f800000000000000000000000000000000000000000000000000000000db5d404b0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000006393c4f800000000000000000000000000000000000000000000000000000000db5d404b

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061030a5760003560e01c80636352211e1161019c578063a330dd43116100ee578063c87b56dd11610097578063e5dd195711610071578063e5dd1957146107c9578063e985e9c5146107dc578063ea7b4f771461082557600080fd5b8063c87b56dd14610790578063ca9242a5146107a3578063d547741f146107b657600080fd5b8063b88d4fde116100c8578063b88d4fde1461074a578063c23dc68f1461075d578063c48e6e861461077d57600080fd5b8063a330dd43146106dd578063a4eb718c146106f0578063a574cea41461070357600080fd5b806395d89b4111610150578063a140b65f1161012a578063a140b65f146106ba578063a217fddf146106c2578063a22cb465146106ca57600080fd5b806395d89b411461068c578063985447101461069457806399a2557a146106a757600080fd5b80638462151c116101815780638462151c146106135780638824f5a71461063357806391d148541461064657600080fd5b80636352211e146105ed57806370a082311461060057600080fd5b8063248a9ca31161026057806341f43434116102095780634913d4c7116101e35780634913d4c71461055f578063591c1e06146105ba5780635bbb2177146105cd57600080fd5b806341f434341461052457806342842e0e1461053957806342966c681461054c57600080fd5b80632f2ff15d1161023a5780632f2ff15d1461049c57806336568abe146104af5780633b704891146104c257600080fd5b8063248a9ca31461044357806326749ad7146104665780632baf2acb1461048957600080fd5b8063095ea7b3116102c25780631cb556ef1161029c5780631cb556ef1461040a5780631fe543e31461041d57806323b872dd1461043057600080fd5b8063095ea7b3146103ac57806318160ddd146103bf5780631b2ef1ca146103f757600080fd5b806302fe5305116102f357806302fe53051461034c57806306fdde031461035f578063081812fc1461037457600080fd5b806301ffc9a71461030f57806302ac686314610337575b600080fd5b61032261031d366004614225565b610838565b60405190151581526020015b60405180910390f35b61034a61034536600461428e565b610a01565b005b61034a61035a366004614446565b610c02565b610367610c74565b60405161032e91906144fd565b610387610382366004614510565b610d06565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161032e565b61034a6103ba36600461454d565b610d70565b600154600054037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff015b60405190815260200161032e565b61034a610405366004614577565b610d89565b61034a610418366004614599565b610d98565b61034a61042b3660046145ec565b61104f565b61034a61043e36600461469e565b61110b565b6103e9610451366004614510565b60009081526008602052604090206001015490565b6103226104743660046146da565b60116020526000908152604090205460ff1681565b61034a6104973660046146f5565b611143565b61034a6104aa366004614728565b611178565b61034a6104bd366004614728565b61119d565b6104fe6104d0366004614510565b600d6020526000908152604090205460ff81169063ffffffff61010082048116916501000000000090041683565b6040805160ff909416845263ffffffff928316602085015291169082015260600161032e565b6103876daaeb6d7670e522a718067333cd4e81565b61034a61054736600461469e565b61124c565b61034a61055a366004614510565b61127e565b61059961056d366004614510565b60106020526000908152604090205467ffffffffffffffff808216916801000000000000000090041682565b6040805167ffffffffffffffff93841681529290911660208301520161032e565b61034a6105c8366004614754565b6112c0565b6105e06105db3660046147ce565b61146f565b60405161032e9190614810565b6103876105fb366004614510565b611559565b6103e961060e3660046146da565b611564565b6106266106213660046146da565b6115e6565b60405161032e919061489a565b61034a6106413660046148d2565b611711565b610322610654366004614728565b600091825260086020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b6103676117af565b61034a6106a2366004614510565b6117be565b6106266106b53660046146f5565b61181d565b61034a6119e5565b6103e9600081565b61034a6106d8366004614904565b611a79565b61034a6106eb366004614904565b611a8d565b61034a6106fe36600461493b565b611b98565b610716610711366004614510565b611c34565b60408051825160ff908116825260208085015167ffffffffffffffff1690830152928201519092169082015260600161032e565b61034a610758366004614961565b611cd5565b61077061076b366004614510565b611d0f565b60405161032e91906149dd565b61034a61078b366004614a47565b611d97565b61036761079e366004614510565b611f90565b61034a6107b1366004614510565b611fc4565b61034a6107c4366004614728565b61204a565b6103e96107d7366004614577565b61206f565b6103226107ea366004614a71565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260076020908152604080832093909416825291909152205460ff1690565b61034a610833366004614a9b565b6120a0565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806108cb57507fffffffff0000000000000000000000000000000000000000000000000000000082167f01ffc9a700000000000000000000000000000000000000000000000000000000145b8061091757507fffffffff0000000000000000000000000000000000000000000000000000000082167f8446a79e00000000000000000000000000000000000000000000000000000000145b8061096357507fffffffff0000000000000000000000000000000000000000000000000000000082167fc21b8f2800000000000000000000000000000000000000000000000000000000145b806109af57507f80ac58cd000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b806109fb57507f5b5e139f000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610a2b81612131565b8786141580610a3a5750878414155b80610a455750878214155b15610a7c576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b88811015610bb1576040518060600160405280898984818110610aa457610aa4614ab6565b9050602002013560ff168152602001878784818110610ac557610ac5614ab6565b9050602002013563ffffffff168152602001858584818110610ae957610ae9614ab6565b9050602002013563ffffffff16815250600d60008c8c85818110610b0f57610b0f614ab6565b602090810292909201358352508181019290925260409081016000208351815493850151949092015163ffffffff90811665010000000000027fffffffffffffffffffffffffffffffffffffffffffffff00000000ffffffffff91909516610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000090941660ff909316929092179290921716919091179055600101610a7f565b507fdf6748303d90a705a28808e660159cfd3348e7f229bbdb909fbae32f1cf5f41b8989898989898989604051610bef989796959493929190614b30565b60405180910390a1505050505050505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610c2c81612131565b6009610c388382614c23565b507f4405f9f72187d24d444b6d55ef67bfb2ef76aacbc07d6d642a5763dd5fd77cbf82604051610c6891906144fd565b60405180910390a15050565b606060028054610c8390614b90565b80601f0160208091040260200160405190810160405280929190818152602001828054610caf90614b90565b8015610cfc5780601f10610cd157610100808354040283529160200191610cfc565b820191906000526020600020905b815481529060010190602001808311610cdf57829003601f168201915b5050505050905090565b6000610d118261213b565b610d47576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5060009081526006602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b81610d7a81612189565b610d84838361228e565b505050565b610d94828233612379565b5050565b6000838152600d602090815260408083208151606081018352905460ff808216835263ffffffff610100830481168487019081526501000000000090930481168486019081528b8852600e90965293909520549051935191941692610e0192908116911661266b565b33610e0b87611559565b73ffffffffffffffffffffffffffffffffffffffff1614610e58576040517fd6fb553000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808511610e91576040517f7b7a171a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000858152600c60209081526040822080546001810182559083529082200187905580610ebf888787612724565b6000848152600d6020526040902054855160ff91821692909201925016811115610f15576040517f18dc18b300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b835160ff1681810392508114610fcc576040517f88cf581c000000000000000000000000000000000000000000000000000000008152336004820152602481018390527f00000000000000000000000033cfae13a9486c29cd3b11391cc7eca53822e8c773ffffffffffffffffffffffffffffffffffffffff16906388cf581c90604401600060405180830381600087803b158015610fb357600080fd5b505af1158015610fc7573d6000803e3d6000fd5b505050505b6000888152600e60205260409081902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660ff8a1617905551879089907f2bda87a34e7dc9452548fb58fd94a8fb584d40af87a5b6a5daadf59d99521d749061103d908a908a908890614d3d565b60405180910390a35050505050505050565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e699091614611101576040517f1cf993f400000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e699091660248201526044015b60405180910390fd5b610d9482826127cc565b8273ffffffffffffffffffffffffffffffffffffffff811633146111325761113233612189565b61113d848484612a2c565b50505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177561116d81612131565b61113d838386612379565b60008281526008602052604090206001015461119381612131565b610d848383612cc6565b73ffffffffffffffffffffffffffffffffffffffff81163314611242576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016110f8565b610d948282612dba565b8273ffffffffffffffffffffffffffffffffffffffff811633146112735761127333612189565b61113d848484612e75565b6000818152600e6020526040902080547fffffffffffffffffffffffffffffffffffffffffffff000000000000000000001690556112bd816001612e90565b50565b6000838152600d60209081526040918290208251606081018452905460ff8116825263ffffffff61010082048116938301849052650100000000009091041692810183905291611310919061266b565b8051600090819060ff168702611329898988888b61303f565b6113348a8a8a613168565b01915080821115611371576040517f18dc18b300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181039250808214611424576040517f88cf581c000000000000000000000000000000000000000000000000000000008152336004820152602481018490527f00000000000000000000000033cfae13a9486c29cd3b11391cc7eca53822e8c773ffffffffffffffffffffffffffffffffffffffff16906388cf581c90604401600060405180830381600087803b15801561140b57600080fd5b505af115801561141f573d6000803e3d6000fd5b505050505b867f7a50aafe106d092cabc6c80fa36733e2216d5e2a7181c1bb493add5cd26a15828a8a868a8a60405161145c959493929190614d61565b60405180910390a2505050505050505050565b60608160008167ffffffffffffffff81111561148d5761148d614352565b6040519080825280602002602001820160405280156114fd57816020015b6040805160808101825260008082526020808301829052928201819052606082015282527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9092019101816114ab5790505b50905060005b8281146115505761152b86868381811061151f5761151f614ab6565b90506020020135611d0f565b82828151811061153d5761153d614ab6565b6020908102919091010152600101611503565b50949350505050565b60006109fb826132ae565b600073ffffffffffffffffffffffffffffffffffffffff82166115b3576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5073ffffffffffffffffffffffffffffffffffffffff1660009081526005602052604090205467ffffffffffffffff1690565b606060008060006115f685611564565b905060008167ffffffffffffffff81111561161357611613614352565b60405190808252806020026020018201604052801561163c578160200160208202803683370190505b5060408051608081018252600080825260208201819052918101829052606081019190915290915060015b838614611705576116778161336d565b915081604001516116fd57815173ffffffffffffffffffffffffffffffffffffffff16156116a457815194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036116fd57808387806001019850815181106116f0576116f0614ab6565b6020026020010181815250505b600101611667565b50909695505050505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177561173b81612131565b600b80547fffffffffffffffffffffffffffffffffff0000ffffffffffffffffffffffffff166d010000000000000000000000000061ffff8516908102919091179091556040519081527febea88b49693a9cfde696c6e76a77212f44f15bf4f73f0cbc30cd8773759a47390602001610c68565b606060038054610c8390614b90565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217756117e881612131565b600a8290556040518281527fd013f86c8346660ebf421351882cd1b3c2f91883092df1800264c656b0db0cc690602001610c68565b6060818310611858576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061186460005490565b9050600185101561187457600194505b80841115611880578093505b600061188b87611564565b9050848610156118aa57858503818110156118a4578091505b506118ae565b5060005b60008167ffffffffffffffff8111156118c9576118c9614352565b6040519080825280602002602001820160405280156118f2578160200160208202803683370190505b509050816000036119085793506119de92505050565b600061191388611d0f565b905060008160400151611924575080515b885b8881141580156119365750848714155b156119d2576119448161336d565b925082604001516119ca57825173ffffffffffffffffffffffffffffffffffffffff161561197157825191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036119ca57808488806001019950815181106119bd576119bd614ab6565b6020026020010181815250505b600101611926565b50505092835250909150505b9392505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775611a0f81612131565b600b80547fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff1668010000000000000000179055604051600181527fe8e61f2487fe3c3d1f98599aad9f4657155fa93ce7d629df6fc3c07dc077c6639060200160405180910390a150565b81611a8381612189565b610d848383613412565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775611ab781612131565b600b5468010000000000000000900460ff168015611ad25750815b15611b09576040517f7b20030900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff831660008181526011602090815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168615159081179091558251938452908301527fe7faf35453f298b6a9532f9ec4839fe826111c39a635574f6aa40d6f20a83b01910160405180910390a1505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775611bc281612131565b600b80547fffffffffffffffffffffffffffffffffffffff00000000ffffffffffffffffff16690100000000000000000063ffffffff8516908102919091179091556040519081527fea0306c7b92bfad18ad155350fb250f350724d4e5c843eeb51997be9f937c35090602001610c68565b604080516060808201835260008083526020808401829052928401819052848152600e8352838120845192830185525460ff808216808552610100830467ffffffffffffffff1695850195909552690100000000000000000090910416938201939093529103611cd0576040517fceea21b600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b8373ffffffffffffffffffffffffffffffffffffffff81163314611cfc57611cfc33612189565b611d08858585856134f8565b5050505050565b6040805160808101825260008082526020820181905291810182905260608101919091526040805160808101825260008082526020820181905291810182905260608101919091526001831080611d6857506000548310155b15611d735792915050565b611d7c8361336d565b9050806040015115611d8e5792915050565b6119de83613562565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775611dc181612131565b67ffffffffffffffff8381166000908152600c60205260409020549083161115611e17576040517fd908d5a400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a54600b546040517f5d3b1d30000000000000000000000000000000000000000000000000000000008152600481019290925267ffffffffffffffff811660248301526d0100000000000000000000000000810461ffff1660448301526901000000000000000000900463ffffffff166064820152600160848201526000907f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e6990973ffffffffffffffffffffffffffffffffffffffff1690635d3b1d309060a4016020604051808303816000875af1158015611ef7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f1b9190614d9a565b60408051808201825267ffffffffffffffff968716815294861660208087019182526000938452601090529120935184549151861668010000000000000000027fffffffffffffffffffffffffffffffff00000000000000000000000000000000909216951694909417939093179091555050565b60606009611f9d83613600565b604051602001611fae929190614db3565b6040516020818303038152906040529050919050565b3360009081526011602052604090205460ff1661200d576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000818152600e6020526040902080547fffffffffffffffffffffffffffffffffffffffffffff000000000000000000001690556112bd8161373d565b60008281526008602052604090206001015461206581612131565b610d848383612dba565b600c602052816000526040600020818154811061208b57600080fd5b90600052602060002001600091509150505481565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217756120ca81612131565b600b80547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff84169081179091556040519081527f8a2377055cb80a6969c9e8a0cc11ee02c18ba436643aa673bf887b12f354423190602001610c68565b6112bd8133613748565b60008160011115801561214f575060005482105b80156109fb5750506000908152600460205260409020547c0100000000000000000000000000000000000000000000000000000000161590565b6daaeb6d7670e522a718067333cd4e3b156112bd576040517fc617113400000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561221c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122409190614e58565b6112bd576040517fede71dcc00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff821660048201526024016110f8565b600061229982611559565b90503373ffffffffffffffffffffffffffffffffffffffff8216146122f8576122c281336107ea565b6122f8576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b816000036123b3576040517f0bfe804f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000838152600d60209081526040918290208251606081018452905460ff8116825263ffffffff61010082048116938301849052650100000000009091041692810183905291612403919061266b565b7f00000000000000000000000033cfae13a9486c29cd3b11391cc7eca53822e8c773ffffffffffffffffffffffffffffffffffffffff166388cf581c3385846000015160ff166124539190614ea4565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401600060405180830381600087803b1580156124be57600080fd5b505af11580156124d2573d6000803e3d6000fd5b5050505060006124e160005490565b905060005b84811015612660576001861115612519576000868152600c60209081526040822080546001810182559083529120018290555b600061252361381a565b6040805160608101825260ff808b16825267ffffffffffffffff808516602080850191825260008587018181528b8252600e8352878220965187549451915187166901000000000000000000027fffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffffff92909616610100027fffffffffffffffffffffffffffffffffffffffffffffff000000000000000000909516961695909517929092179390931691909117909255600884901c8252600f905281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905585519051919250889185917f767010d8d36f967099ed5684f986f8ec01c5584b217e77ec834c8aef9dd96b5c9161264b9186825260ff16602082015260400190565b60405180910390a350600191820191016124e6565b50611d08838561394a565b806000036126a5576040517f3d32a6e000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b814210806126b257508042115b80156126ed57503360009081527f17d1276acf776df712513cd7e943076446ad62eef46fc257e0602ed40109c3c6602052604090205460ff16155b15610d94576040517fc61f198500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000805b828110156127c457600084848381811061274457612744614ab6565b905060200201359050858103612786576040517f16b1865e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000818152600e602090815260408083205460ff9081168452600d90925290912054169290920191600191909101906127be8161127e565b50612728565b509392505050565b600082815260106020908152604080832081518083018352905467ffffffffffffffff8082168084526801000000000000000090920416828501528452600c8352818420805483518186028101860190945280845291949390919083018282801561285657602002820191906000526020600020905b815481526020019060010190808311612842575b5050505050905060008060008060005b866020015167ffffffffffffffff16841015612a21578586518960008151811061289257612892614ab6565b6020026020010151876040516020016128b5929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c6128d89190614eea565b815181106128e8576128e8614ab6565b6020908102919091018101516000818152600e90925260408220549094506901000000000000000000900460ff169003612a165760648860008151811061293157612931614ab6565b602002602001015184604051602001612954929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c6129779190614eea565b9150600a82101561298a5750600161299f565b603782101561299b5750600261299f565b5060035b6000838152600e602052604080822080547fffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffffff16690100000000000000000060ff8616021790555160019590950194829185917f2a0a5cb4d1c48e36e47beeee7666534ab9504f8d3bb5e387e82356049b37f15c9190a35b600190940193612866565b505050505050505050565b6000612a37826132ae565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612a9e576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604090208054612ad78187335b73ffffffffffffffffffffffffffffffffffffffff9081169116811491141790565b612b1b57612ae586336107ea565b612b1b576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8516612b68576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8015612b7357600082555b73ffffffffffffffffffffffffffffffffffffffff86811660009081526005602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff019055918716808252919020805460010190554260a01b177c0200000000000000000000000000000000000000000000000000000000176000858152600460205260408120919091557c020000000000000000000000000000000000000000000000000000000084169003612c6257600184016000818152600460205260408120549003612c60576000548114612c605760008181526004602052604090208490555b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b600082815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610d9457600082815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055612d5c3390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600082815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1615610d9457600082815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b610d8483838360405180602001604052806000815250611cd5565b6000612e9b836132ae565b905080600080612eb986600090815260066020526040902080549091565b915091508415612f1257612ece818433612ab5565b612f1257612edc83336107ea565b612f12576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8015612f1d57600082555b73ffffffffffffffffffffffffffffffffffffffff8316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b177c0300000000000000000000000000000000000000000000000000000000176000878152600460205260408120919091557c020000000000000000000000000000000000000000000000000000000085169003612fea57600186016000818152600460205260408120549003612fe8576000548114612fe85760008181526004602052604090208590555b505b604051869060009073ffffffffffffffffffffffffffffffffffffffff8616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050600180548101905550505050565b600084810361307a576040517f5a5722e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8381101561315e57600085858381811061309957613099614ab6565b602090810292909201356000818152600e9093526040909220549192505060ff166130c5828a8a613a88565b156130fc576040517f16b1865e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b848110613135576040517fcec92a9300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61313e8261127e565b6000908152600d602052604090205460ff1692909201915060010161307d565b5095945050505050565b6000805b838110156127c457600085858381811061318857613188614ab6565b602090810292909201356000818152600e9093526040909220549192505060ff16336131b383611559565b73ffffffffffffffffffffffffffffffffffffffff1614613200576040517fd6fb553000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808511613239576040517f7b7a171a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000858152600c6020908152604080832080546001808201835591855283852001869055948352600e825280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660ff808b1691909117909155938352600d9091529020541692909201910161316c565b6000818060011161333b5760005481101561333b57600081815260046020526040812054907c010000000000000000000000000000000000000000000000000000000082169003613339575b806000036119de57507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff016000818152600460205260409020546132fa565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805160808101825260008082526020820181905291810182905260608101919091526000828152600460205260409020546109fb906040805160808101825273ffffffffffffffffffffffffffffffffffffffff8316815260a083901c67ffffffffffffffff1660208201527c0100000000000000000000000000000000000000000000000000000000831615159181019190915260e89190911c606082015290565b3373ffffffffffffffffffffffffffffffffffffffff831603613461576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b33600081815260076020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61350384848461110b565b73ffffffffffffffffffffffffffffffffffffffff83163b1561113d5761352c84848484613ad0565b61113d576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805160808101825260008082526020820181905291810182905260608101919091526109fb613592836132ae565b6040805160808101825273ffffffffffffffffffffffffffffffffffffffff8316815260a083901c67ffffffffffffffff1660208201527c0100000000000000000000000000000000000000000000000000000000831615159181019190915260e89190911c606082015290565b60608160000361364357505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561366d578061365781614efe565b91506136669050600a83614f36565b9150613647565b60008167ffffffffffffffff81111561368857613688614352565b6040519080825280601f01601f1916602001820160405280156136b2576020820181803683370190505b5090505b8415613735576136c7600183614f4a565b91506136d4600a86614eea565b6136df906030614f5d565b60f81b8183815181106136f4576136f4614ab6565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061372e600a86614f36565b94506136b6565b949350505050565b6112bd816000612e90565b600082815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610d94576137a08173ffffffffffffffffffffffffffffffffffffffff166014613c49565b6137ab836020613c49565b6040516020016137bc929190614f70565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a00000000000000000000000000000000000000000000000000000000082526110f8916004016144fd565b60008033325a6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606094851b811660208301529290931b909116603483015260488201524260688201524360888201819052804060a88301527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9c014060c882015260e801604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152828252805160209182012090830152016040516020818303038152906040528051906020012060001c90505b61390181613e8c565b600881901c6000908152600f602052604090205490925060ff1615613946576040805160208082019390935281518082038401815290820190915280519101206138f8565b5090565b6000805490829003613988576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114613a4457808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101613a0c565b5081600003613a7f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005550505050565b6000805b82811015613ac55784848483818110613aa757613aa7614ab6565b9050602002013503613abd5760019150506119de565b600101613a8c565b506000949350505050565b6040517f150b7a0200000000000000000000000000000000000000000000000000000000815260009073ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290613b2b903390899088908890600401614ff1565b6020604051808303816000875af1925050508015613b84575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252613b819181019061503a565b60015b613bfb573d808015613bb2576040519150601f19603f3d011682016040523d82523d6000602084013e613bb7565b606091505b508051600003613bf3576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050949350505050565b60606000613c58836002614ea4565b613c63906002614f5d565b67ffffffffffffffff811115613c7b57613c7b614352565b6040519080825280601f01601f191660200182016040528015613ca5576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110613cdc57613cdc614ab6565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613d3f57613d3f614ab6565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000613d7b846002614ea4565b613d86906001614f5d565b90505b6001811115613e23577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110613dc757613dc7614ab6565b1a60f81b828281518110613ddd57613ddd614ab6565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93613e1c81615057565b9050613d89565b5083156119de576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016110f8565b60408051610100810190915260009061ffff831690829080613eb486601061fffe600e613fd7565b8152602001613ecc86602061fffc600c60ff16613fd7565b8152602001613ee186603061fff06028613fd7565b8152602001613ef686604061fffe601f613fd7565b8152602001613f0b86605061fff0601e613fd7565b8152602001613f2086606061fff06028613fd7565b8152602001613f3586607061fff06028613fd7565b8152602001613f4a86608061fff06014613fd7565b905260a0810151909150602303613f6357600060e08201525b613f6c82614032565b60e082015160c083015160a084015160389290921b9160309190911b9060281b60208560046020020151901b60188660036020020151901b60108760026020020151901b60088860016020020151901b600089816020020151901b1717171717171716949350505050565b600061ffff841b8516841c5b8381106140145760408051602080820193909352815180820384018152908201909152805191012061ffff16613fe3565b82818161402357614023614ebb565b06600101915050949350505050565b63ffffffff60ff6106658311156141f157615fff8310156140a35761246a83101561406557603081901b821791506141f1565b6141fb83101561407d57602881901b821791506141f1565b615f8c83101561409557602081901b821791506141f1565b603881901b821791506141f1565b61dfff831015614157576192af8310156140cb57603081901b602882901b83171791506141f1565b61d20b8310156140e957603081901b602082901b83171791506141f1565b61d33283101561410757603881901b603082901b83171791506141f1565b61dfbd83101561412557602881901b602082901b83171791506141f1565b61dfda83101561414357603881901b602882901b83171791506141f1565b603881901b602082901b83171791506141f1565b61f9998310156141e75761f5fe83101561418557603081901b602882901b602083901b8417171791506141f1565b61f7198310156141a957603881901b603082901b602883901b8417171791506141f1565b61f8508310156141cd57603881901b603082901b602083901b8417171791506141f1565b603881901b602882901b602083901b8417171791506141f1565b602082901b821791505b50919050565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146112bd57600080fd5b60006020828403121561423757600080fd5b81356119de816141f7565b60008083601f84011261425457600080fd5b50813567ffffffffffffffff81111561426c57600080fd5b6020830191508360208260051b850101111561428757600080fd5b9250929050565b6000806000806000806000806080898b0312156142aa57600080fd5b883567ffffffffffffffff808211156142c257600080fd5b6142ce8c838d01614242565b909a50985060208b01359150808211156142e757600080fd5b6142f38c838d01614242565b909850965060408b013591508082111561430c57600080fd5b6143188c838d01614242565b909650945060608b013591508082111561433157600080fd5b5061433e8b828c01614242565b999c989b5096995094979396929594505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156143c8576143c8614352565b604052919050565b600067ffffffffffffffff8311156143ea576143ea614352565b61441b60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011601614381565b905082815283838301111561442f57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561445857600080fd5b813567ffffffffffffffff81111561446f57600080fd5b8201601f8101841361448057600080fd5b613735848235602084016143d0565b60005b838110156144aa578181015183820152602001614492565b50506000910152565b600081518084526144cb81602086016020860161448f565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006119de60208301846144b3565b60006020828403121561452257600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff81168114611cd057600080fd5b6000806040838503121561456057600080fd5b61456983614529565b946020939093013593505050565b6000806040838503121561458a57600080fd5b50508035926020909101359150565b600080600080606085870312156145af57600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156145d457600080fd5b6145e087828801614242565b95989497509550505050565b600080604083850312156145ff57600080fd5b8235915060208084013567ffffffffffffffff8082111561461f57600080fd5b818601915086601f83011261463357600080fd5b81358181111561464557614645614352565b8060051b9150614656848301614381565b818152918301840191848101908984111561467057600080fd5b938501935b8385101561468e57843582529385019390850190614675565b8096505050505050509250929050565b6000806000606084860312156146b357600080fd5b6146bc84614529565b92506146ca60208501614529565b9150604084013590509250925092565b6000602082840312156146ec57600080fd5b6119de82614529565b60008060006060848603121561470a57600080fd5b61471384614529565b95602085013595506040909401359392505050565b6000806040838503121561473b57600080fd5b8235915061474b60208401614529565b90509250929050565b60008060008060006060868803121561476c57600080fd5b853567ffffffffffffffff8082111561478457600080fd5b61479089838a01614242565b90975095506020880135945060408801359150808211156147b057600080fd5b506147bd88828901614242565b969995985093965092949392505050565b600080602083850312156147e157600080fd5b823567ffffffffffffffff8111156147f857600080fd5b61480485828601614242565b90969095509350505050565b6020808252825182820181905260009190848201906040850190845b818110156117055761488783855173ffffffffffffffffffffffffffffffffffffffff815116825267ffffffffffffffff602082015116602083015260408101511515604083015262ffffff60608201511660608301525050565b928401926080929092019160010161482c565b6020808252825182820181905260009190848201906040850190845b81811015611705578351835292840192918401916001016148b6565b6000602082840312156148e457600080fd5b813561ffff811681146119de57600080fd5b80151581146112bd57600080fd5b6000806040838503121561491757600080fd5b61492083614529565b91506020830135614930816148f6565b809150509250929050565b60006020828403121561494d57600080fd5b813563ffffffff811681146119de57600080fd5b6000806000806080858703121561497757600080fd5b61498085614529565b935061498e60208601614529565b925060408501359150606085013567ffffffffffffffff8111156149b157600080fd5b8501601f810187136149c257600080fd5b6149d1878235602084016143d0565b91505092959194509250565b815173ffffffffffffffffffffffffffffffffffffffff16815260208083015167ffffffffffffffff169082015260408083015115159082015260608083015162ffffff1690820152608081016109fb565b803567ffffffffffffffff81168114611cd057600080fd5b60008060408385031215614a5a57600080fd5b614a6383614a2f565b915061474b60208401614a2f565b60008060408385031215614a8457600080fd5b614a8d83614529565b915061474b60208401614529565b600060208284031215614aad57600080fd5b6119de82614a2f565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b81835260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115614b1757600080fd5b8260051b80836020870137939093016020019392505050565b608081526000614b44608083018a8c614ae5565b8281036020840152614b5781898b614ae5565b90508281036040840152614b6c818789614ae5565b90508281036060840152614b81818587614ae5565b9b9a5050505050505050505050565b600181811c90821680614ba457607f821691505b6020821081036141f1577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b601f821115610d8457600081815260208120601f850160051c81016020861015614c045750805b601f850160051c820191505b81811015612cbe57828155600101614c10565b815167ffffffffffffffff811115614c3d57614c3d614352565b614c5181614c4b8454614b90565b84614bdd565b602080601f831160018114614ca45760008415614c6e5750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b178555612cbe565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b82811015614cf157888601518255948401946001909101908401614cd2565b5085821015614d2d57878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b604081526000614d51604083018587614ae5565b9050826020830152949350505050565b606081526000614d75606083018789614ae5565b8560208401528281036040840152614d8e818587614ae5565b98975050505050505050565b600060208284031215614dac57600080fd5b5051919050565b6000808454614dc181614b90565b60018281168015614dd95760018114614e0c57614e3b565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0084168752821515830287019450614e3b565b8860005260208060002060005b85811015614e325781548a820152908401908201614e19565b50505082870194505b505050508351614e4f81836020880161448f565b01949350505050565b600060208284031215614e6a57600080fd5b81516119de816148f6565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820281158282048414176109fb576109fb614e75565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082614ef957614ef9614ebb565b500690565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614f2f57614f2f614e75565b5060010190565b600082614f4557614f45614ebb565b500490565b818103818111156109fb576109fb614e75565b808201808211156109fb576109fb614e75565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351614fa881601785016020880161448f565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351614fe581602884016020880161448f565b01602801949350505050565b600073ffffffffffffffffffffffffffffffffffffffff80871683528086166020840152508360408301526080606083015261503060808301846144b3565b9695505050505050565b60006020828403121561504c57600080fd5b81516119de816141f7565b60008161506657615066614e75565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff019056fea2646970667358221220713f63bb9d2b3dfdb12d0942434afa967fb40e56e262e2fef884ccb8edb64c1f64736f6c63430008110033

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

0000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000033cfae13a9486c29cd3b11391cc7eca53822e8c7000000000000000000000000000000000000000000000000000000000000022000000000000000000000000079a20cf7331f37432e078d923074e42512e3585a000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e699098af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef0000000000000000000000000000000000000000000000000000000000000179000000000000000000000000d042aba7d9fa48bf57271151c4a6f3cc74adc5500000000000000000000000000000000000000000000000000000000000000004444f5473000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004444f545300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002c68747470733a2f2f6170692e646f74732e656e7465727468657661756c742e6170702f6d657461646174612f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000006393c4f800000000000000000000000000000000000000000000000000000000db5d404b0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000006393c4f800000000000000000000000000000000000000000000000000000000db5d404b

-----Decoded View---------------
Arg [0] : _name (string): DOTs
Arg [1] : _symbol (string): DOTS
Arg [2] : _uri (string): https://api.dots.enterthevault.app/metadata/
Arg [3] : _mintPassTwo (address): 0x33CfAe13A9486C29Cd3B11391cC7ECa53822e8c7
Arg [4] : _evoData (tuple[]): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
Arg [5] : adminWallet (address): 0x79A20cf7331F37432e078D923074e42512e3585a
Arg [6] : _vrfCoordinator (address): 0x271682DEB8C4E0901D1a1550aD2e64D568E69909
Arg [7] : _keyHash (bytes32): 0x8af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef
Arg [8] : _subscriptionId (uint64): 377
Arg [9] : _registrant (address): 0xD042AbA7D9Fa48bF57271151C4A6F3cC74aDC550

-----Encoded View---------------
24 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [3] : 00000000000000000000000033cfae13a9486c29cd3b11391cc7eca53822e8c7
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000220
Arg [5] : 00000000000000000000000079a20cf7331f37432e078d923074e42512e3585a
Arg [6] : 000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909
Arg [7] : 8af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000179
Arg [9] : 000000000000000000000000d042aba7d9fa48bf57271151c4a6f3cc74adc550
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [11] : 444f547300000000000000000000000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [13] : 444f545300000000000000000000000000000000000000000000000000000000
Arg [14] : 000000000000000000000000000000000000000000000000000000000000002c
Arg [15] : 68747470733a2f2f6170692e646f74732e656e7465727468657661756c742e61
Arg [16] : 70702f6d657461646174612f0000000000000000000000000000000000000000
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [19] : 000000000000000000000000000000000000000000000000000000006393c4f8
Arg [20] : 00000000000000000000000000000000000000000000000000000000db5d404b
Arg [21] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [22] : 000000000000000000000000000000000000000000000000000000006393c4f8
Arg [23] : 00000000000000000000000000000000000000000000000000000000db5d404b


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.