ETH Price: $3,667.10 (-1.72%)

Token

ERC-20: Dead Will Rise (DWR)
 

Overview

Max Total Supply

5,000 DWR

Holders

4,524

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 DWR
0x16c0334e343baf8a526c12eceef0f768e634f2d2
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
DeadWillRise

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 10 : DeadWillRise.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.17;

import "./ERC721A.sol";
import "../delegatecash/IDelegationRegistry.sol";
import "../weth/IWETH.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165Checker.sol";


/** Dead Will Rise presented by Gutter Punks
  * Contract by 0xth0mas (0xjustadev)
  * Gas optimization credit 0xDelco
*/

contract DeadWillRise is ERC721A, Ownable {

    event IndividualDailyActivity(uint256 tokenId, uint256 currentDay, uint256 riskChoice, uint256 activityOutcome);
    event IndividualCured(uint256 tokenId);
    event GroupDailyActivity(uint256 groupNum, uint256 currentDay, uint256 riskChoice, uint256 activityOutcome);
    event InfectionSpreading(uint256 currentProgress, uint256 infectionRate);
    event GroupRegistered(uint256 groupNum, address collectionAddress, address groupManager);
    event GroupTransferred(uint256 groupNum, address collectionAddress, address groupManager);

    struct IndividualData {
        uint32 lastBlock;
        uint32 lastScore;
        uint32 individualSeed;
        uint32 groupNumber;
        bool bitten; // potential outcome from an activity, when bitten individual score rate decreases substantially
    }

    struct GroupData {
        uint32 lastBlock;
        uint32 lastScore;
        uint32 groupSeed;
        uint32 totalMembers;
    }

    struct InfectionData {
        uint32 lastBlock;
        uint32 lastProgress;
        uint32 infectionRate; // rate that the infection progress will increase per block
    }

    struct ActivityRecord {
        uint32 riskChoice; // 1 = low risk, 2 = medium risk, 3 = high risk
        uint32 activityOutcome; // 1 = small reward, 2 = medium reward, 3 = large reward, 4 = devastation
    }

    uint256 public constant INDIVIDUAL_DAILY_ACTIVITY_COST = 0.001 ether;
    uint256 public constant GROUP_DAILY_ACTIVITY_COST = 0.01 ether;
    uint256 public constant GROUP_REGISTRATION_COST = 0.1 ether;
    uint256 public constant FINAL_CURE_COST = 10 ether;
    uint32 constant CURE_PROGRESS_INCREMENT = 72000;

    uint8 constant RISK_LEVEL_LOW = 1;
    uint8 constant RISK_LEVEL_MEDIUM = 2;
    uint8 constant RISK_LEVEL_HIGH = 3;
    uint8 constant ACTIVITY_OUTCOME_SMALL = 1;
    uint8 constant ACTIVITY_OUTCOME_MEDIUM = 2;
    uint8 constant ACTIVITY_OUTCOME_LARGE = 3;
    uint8 constant ACTIVITY_OUTCOME_DEVASTATED = 4;
    uint8 constant ACTIVITY_OUTCOME_CURED = 5;
    uint8 constant ACTIVITY_OUTCOME_STILL_A_ZOMBIE = 6;

    uint8 public constant MAX_DAY = 19;

    // Individuals will have a rate between 100-150 if unbitten, 25-37 if bitten
    uint32 constant INDIVIDUAL_BASE_RATE = 100;
    uint32 constant INDIVIDUAL_VARIABLE_RATE = 50;
    uint32 constant INDIVIDUAL_MAXIMUM_LUCK = 1000; // luck used to determine outcome of activities
    uint32 constant TOTAL_MAXIMUM_LUCK = 10000; // luck used to determine outcome of activities
    uint32 constant RISK_LOW_OUTCOME_LARGE = 9900;
    uint32 constant RISK_LOW_OUTCOME_MEDIUM = 9500;
    uint32 constant RISK_LOW_OUTCOME_SMALL = 100;
    uint32 constant RISK_MEDIUM_OUTCOME_LARGE = 9000;
    uint32 constant RISK_MEDIUM_OUTCOME_MEDIUM = 7500;
    uint32 constant RISK_MEDIUM_OUTCOME_SMALL = 1000;
    uint32 constant RISK_HIGH_OUTCOME_LARGE = 7500;
    uint32 constant RISK_HIGH_OUTCOME_MEDIUM = 5000;
    uint32 constant RISK_HIGH_OUTCOME_SMALL = 3300;
    uint32 constant RANDOM_CURE_CHANCE = 9500;
    uint32 constant INDIVIDUAL_REWARD_OUTCOME_LARGE = 360000;
    uint32 constant INDIVIDUAL_REWARD_OUTCOME_MEDIUM = 180000;
    uint32 constant INDIVIDUAL_REWARD_OUTCOME_SMALL = 72000;
    uint32 constant GROUP_REWARD_OUTCOME_LARGE = 36000;
    uint32 constant GROUP_REWARD_OUTCOME_MEDIUM = 18000;
    uint32 constant GROUP_REWARD_OUTCOME_SMALL = 3600;

    // Group scoring rate will increase by 1 for every 10th member that joins, 1 member = 1, 9 members = 1, 10 members = 2, 95 members = 10
    uint32 constant GROUP_BASE_RATE = 1;
    uint32 constant GROUP_VARIABLE_RATE = 10;
    uint32 constant GROUP_RATE_MULTIPLIER = 1;

    uint256 public constant MAX_SUPPLY = 5000;

    bool public eventOver;
    uint64 public eventStartTime;
    uint32 public eventStartBlock;

    uint32 public collectionSeed; // random seed set at start of game, collection seed == 0 means event not started
    uint32 public groupsRegistered; // current count of groups registered for Dead Will Rise

    bool public groupRegistrationOpen;
    bool public publicMintOpen;

    uint32 public maxPerWalletPerGroup = 1;
    uint32 public maxPerGroup = 500;
    uint32 public cureSupply = 500;

    uint32 public lastSurvivorTokenID; // declared at end of game
    uint32 public winningGroupNumber; // declared at end of game
    uint32 constant BLOCKS_PER_DAY = 7200;
    uint32 constant WITHDRAWAL_DELAY = 3600; // blocks to wait after winners declared for withdrawal
    uint32 constant LATE_JOINER_PROGRESS = 21600;

    InfectionData public infectionProgress; // current infection data - currentProgress = lastProgress + (block.number - lastBlock) * infectionRate
    mapping(address => uint256) public groupNumbers; // key = ERC-721 collection address, value = group number
    mapping(uint256 => address) public groupNumberToCollection; // key = group number, value = ERC-721 collection address
    mapping(uint256 => GroupData) public groupRecord; // key = group number, value = group data
    mapping(uint256 => address) public groupManager; // key = group number, value = current manager of group, will receive payout if group wins
    mapping(uint256 => ActivityRecord) public groupActivity; // key = groupNumber<<32 + day, value = activity results
    mapping(uint256 => IndividualData) public individualRecord; // key = tokenId, value = individual data
    mapping(uint256 => ActivityRecord) public individualActivity; // key = tokenId<<32 + day, value = activity results

    mapping(uint256 => uint256) public mintCount; // key = account<<32 + groupNumber, value = # minted

    IWETH weth = IWETH(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2);
    IDelegationRegistry delegateCash = IDelegationRegistry(0x00000000000076A84feF008CDAbe6409d2FE638B);

    string internal _baseTokenURI;
    string internal _placeholderURI;
    string internal _contractURI;

    string public constant TOKEN_URI_SEPARATOR = "/";
    bool public includeStatsInURI = true;

    modifier eventInProgress() {
        require(collectionSeed > 0 && !eventOver);
        _;
    }

    modifier eventEnded() {
        require(eventOver);
        _;
    }

    modifier canWithdraw() {
        require(uint32(block.number) > (infectionProgress.lastBlock + WITHDRAWAL_DELAY));
        _;
    }

    constructor(string memory mContractURI, string memory mPlaceholderURI) ERC721A("Dead Will Rise", "DWR") {
        _contractURI = mContractURI;
        _placeholderURI = mPlaceholderURI;
    }

    // to receive royalties and/or donations
    receive() external payable { }
    fallback() external payable { }
    //unwrap WETH from any royalties paid in WETH
    function unwrapWETH() external onlyOwner {
        uint256 wethBalance = weth.balanceOf(address(this));
        weth.withdraw(wethBalance);
    }

    /** GAME MANAGEMENT FUNCTIONS
    */ 
    function startEvent(uint32 _infectionRate) external onlyOwner {
        require(collectionSeed == 0);
        eventStartTime = uint64(block.timestamp);
        collectionSeed = uint32(uint256(keccak256(abi.encodePacked(block.timestamp, block.difficulty))));
        infectionProgress.lastBlock = uint32(block.number);
        infectionProgress.infectionRate = _infectionRate;
        emit InfectionSpreading(infectionProgress.lastProgress, infectionProgress.infectionRate);
        eventStartBlock = uint32(block.number);
    }

    function endEvent() external onlyOwner eventInProgress {
        require(!eventOver);
        infectionProgress.lastProgress = this.currentInfectionProgress();
        infectionProgress.lastBlock = uint32(block.number);
        infectionProgress.infectionRate = 0;
        emit InfectionSpreading(infectionProgress.lastProgress, infectionProgress.infectionRate);
        eventOver = true;
    }

    function resumeEvent(uint32 _infectionRate) external onlyOwner eventEnded {
        require(eventOver);
        infectionProgress.lastProgress = this.currentInfectionProgress();
        infectionProgress.lastBlock = uint32(block.number);
        infectionProgress.infectionRate = _infectionRate;
        emit InfectionSpreading(infectionProgress.lastProgress, infectionProgress.infectionRate);
        eventOver = false;
    }

    function setInfectionRate(uint32 _infectionRate, uint32 _progressAdder) external onlyOwner eventInProgress {
        infectionProgress.lastProgress = this.currentInfectionProgress() + _progressAdder;
        infectionProgress.lastBlock = uint32(block.number);
        infectionProgress.infectionRate = _infectionRate;
        emit InfectionSpreading(infectionProgress.lastProgress, infectionProgress.infectionRate);
    }

    function setInfectionProgress(uint32 _infectionProgress) external onlyOwner {
        infectionProgress.lastProgress = _infectionProgress;
        emit InfectionSpreading(infectionProgress.lastProgress, infectionProgress.infectionRate);
    }

    /** Save gas vs iterating collection for winner by declaring winner and allow anyone to challenge that another token has a higher score
        Winner can be declared after event has ended but withdrawals are delayed until 12 hours after event ends to allow for challenges
        In the event of a tie, first to declare wins... because this is an apocalypse and you have to be ready.
    */
    function declareLastSurvivor(uint256 tokenId) external eventEnded {
        uint256 _currentTokenID = lastSurvivorTokenID;
        if(_currentTokenID == 0 || this.getIndividualScore(tokenId) > this.getIndividualScore(_currentTokenID)) {
            lastSurvivorTokenID = uint32(tokenId);
        } else {
            revert();
        }
    }

    /** Save gas vs iterating groups for winner by declaring winner and allow anyone to challenge that another group has a higher score
        Winner can be declared after event has ended but withdrawals are delayed until 12 hours after event ends to allow for challenges
        In the event of a tie, first to declare wins... because this is an apocalypse and you have to be ready.
    */ 
    function declareWinningGroup(uint32 groupNumber) external eventEnded {
        uint32 _currentGroupNumber = winningGroupNumber;
        if(_currentGroupNumber == 0 || this.getGroupScore(groupNumber) > this.getGroupScore(_currentGroupNumber)) {
            winningGroupNumber = groupNumber;
        } else {
            revert();
        }
    }

    uint256 public totalWithdrawn;
    uint256 public totalSwept;
    uint256 public hostBalance;
    uint256 public groupBalance;
    uint256 public survivorBalance;

    /** Sweep rewards into a balance mapping first to avoid survivor/group owner set to contract with revert
    */
    function sweepRewards() external onlyOwner canWithdraw {
        uint256 currentPool = totalWithdrawn + address(this).balance - totalSwept;
        totalSwept = totalSwept + currentPool;

        uint256 survivorShare = currentPool * 30 / 100;
        uint256 groupShare = currentPool * 20 / 100;
        uint256 hostShare = (currentPool - survivorShare - groupShare);

        hostBalance += hostShare;
        groupBalance += groupShare;
        survivorBalance += survivorShare;
    }

    function withdraw(uint256 share) external onlyOwner {
        address recipient;
        uint256 recipientBalance;
        if(share == 1) {
            recipient = owner();
            recipientBalance = hostBalance;
            hostBalance = 0;
        } else if(share == 2) {
            recipient = groupManager[winningGroupNumber];
            recipientBalance = groupBalance;
            groupBalance = 0;
        } else if(share == 3) {
            recipient = ownerOf(lastSurvivorTokenID);
            recipientBalance = survivorBalance;
            survivorBalance = 0;
        }
        require(recipientBalance > 0);
        (bool sent, ) = payable(recipient).call{value: recipientBalance}("");
        require(sent);
        totalWithdrawn = totalWithdrawn + recipientBalance;
    }

    /** SCORE FUNCTIONS 
    */

    function currentInfectionProgress() external view returns (uint32) {
        if(eventOver) return infectionProgress.lastProgress;
        return (infectionProgress.lastProgress + (uint32(block.number) - infectionProgress.lastBlock) * infectionProgress.infectionRate);
    }

    function getIndividualScore(uint256 tokenId) external view returns (uint32) {
        require(_exists(tokenId));
        if(eventStartTime == 0) return 0;
        uint32 _endBlock = uint32(block.number);
        if(eventOver) _endBlock = infectionProgress.lastBlock;
        IndividualData memory individual = individualRecord[tokenId];
        uint32 _lastBlock = individual.lastBlock;
        if(_lastBlock == 0) _lastBlock = eventStartBlock;
        return (individual.lastScore + (_endBlock - _lastBlock) * this.getIndividualRate(tokenId,false) + this.getGroupScore(individual.groupNumber));
    }

    function getIndividualOnlyScore(uint256 tokenId) external view returns (uint32) {
        require(_exists(tokenId));
        if(eventStartTime == 0) return 0;
        uint32 _endBlock = uint32(block.number);
        if(eventOver) _endBlock = infectionProgress.lastBlock;
        IndividualData memory individual = individualRecord[tokenId];
        uint32 _lastBlock = individual.lastBlock;
        if(_lastBlock == 0) _lastBlock = eventStartBlock;
        return (individual.lastScore + (_endBlock - _lastBlock) * this.getIndividualRate(tokenId,false));
    }

    function getIndividualRate(uint256 tokenId, bool ignoreBite) external view returns (uint32) {
        if(eventStartTime == 0) return 0;
        IndividualData memory individual = individualRecord[tokenId];
        uint32 _individualRate = uint32(uint256(keccak256(abi.encodePacked(individual.individualSeed, collectionSeed)))) % INDIVIDUAL_VARIABLE_RATE + INDIVIDUAL_BASE_RATE;
        if(individual.bitten && !ignoreBite) { _individualRate = _individualRate / 4; }
        return _individualRate;
    }

    function getIndividualLuck(uint256 tokenId) external view returns (uint32) {
        if(eventStartTime == 0) return 0;
        IndividualData memory individual = individualRecord[tokenId];
        uint32 _individualLuck = uint32(uint256(keccak256(abi.encodePacked(collectionSeed, individual.individualSeed)))) % INDIVIDUAL_MAXIMUM_LUCK;
        return _individualLuck;
    }

    function getGroupScoreByAddress(address _collectionAddress) external view returns(uint32) {
        return this.getGroupScore(uint32(groupNumbers[_collectionAddress]));
    }

    function getGroupScore(uint32 _groupNumber) external view returns (uint32) {
        if(_groupNumber == 0) return 0;
        if(eventStartTime == 0) return 0;
        uint32 _endBlock = uint32(block.number);
        if(eventOver) _endBlock = infectionProgress.lastBlock;
        GroupData memory group = groupRecord[uint256(_groupNumber)];
        uint32 _lastBlock = group.lastBlock;
        if(_lastBlock == 0) _lastBlock = eventStartBlock;
        return (group.lastScore + (_endBlock - _lastBlock) * this.getGroupRate(_groupNumber));
    }

    function getGroupRate(uint32 _groupNumber) external view returns (uint32) {
        if(eventStartTime == 0) return 0;
        if(_groupNumber == 0 || _groupNumber > groupsRegistered) return 0;
        uint32 _totalMembers = groupRecord[uint256(_groupNumber)].totalMembers;
        return (_totalMembers / GROUP_VARIABLE_RATE + GROUP_BASE_RATE) * GROUP_RATE_MULTIPLIER;
    }

    /** DAILY ACTIVITY FUNCTIONS 
    */
    function currentDay() external view returns (uint32) {
        if(eventStartTime == 0) return 0;
        uint32 _currentDay = uint32((block.timestamp - uint256(eventStartTime)) / 1 days + 1);
        if(_currentDay > MAX_DAY) { _currentDay = MAX_DAY; }
        return _currentDay;
    }

    function getIndividualDailyActivityRecords(uint256 tokenId) external view returns(ActivityRecord[] memory) {
        uint256 numRecords = this.currentDay();
        ActivityRecord[] memory records = new ActivityRecord[](numRecords);
        for(uint256 i = 1;i <= numRecords;i++) {
            records[i-1] = individualActivity[((tokenId << 32) + i)];
        }
        return records;
    }

    function getGroupDailyActivityRecords(uint32 _groupNumber) external view returns(ActivityRecord[] memory) {
        uint256 numRecords = this.currentDay();
        ActivityRecord[] memory records = new ActivityRecord[](numRecords);
        for(uint256 i = 1;i <= numRecords;i++) {
            records[i-1] = groupActivity[((uint256(_groupNumber) << 32) + i)];
        }
        return records;
    }

    function getGroupDailyActivityRecordsByAddress(address _collectionAddress) external view returns(ActivityRecord[] memory) {
        return this.getGroupDailyActivityRecords(uint32(groupNumbers[_collectionAddress]));
    }
    
    function cureIndividual(uint256 tokenId) external payable eventInProgress {
        require(ownerOf(tokenId) == msg.sender);
        require(cureSupply > 0);

        IndividualData memory individual = individualRecord[tokenId];
        if(individual.lastBlock == 0) { individual.lastBlock = eventStartBlock; }
        individual.lastScore = (individual.lastScore + (uint32(block.number) - individual.lastBlock) * this.getIndividualRate(tokenId,false));
        individual.lastBlock = uint32(block.number);
        uint32 _groupScore = this.getGroupScore(individual.groupNumber);
        uint32 _totalScore = (individual.lastScore + _groupScore);
        uint32 _currentInfectionProgress = this.currentInfectionProgress();
        uint256 cureCost = FINAL_CURE_COST / cureSupply;
        
        if(_totalScore >= _currentInfectionProgress && individual.bitten) { // half cost if bitten but not fully zombie yet
            cureCost = cureCost / 2;
        } else if(_totalScore < _currentInfectionProgress) {
            individual.lastScore = (_currentInfectionProgress + CURE_PROGRESS_INCREMENT) - _groupScore; // bump score over infection level
        } else {
            cureCost = cureCost * 5; // greedy people that don't need a cure pay 5x
        }
        individual.bitten = false;

        cureSupply = cureSupply - 1;
        individualRecord[tokenId] = individual;
        require(msg.value >= cureCost);
        emit IndividualCured(tokenId);
    }

    function dailyActivityIndividual(uint256 tokenId, uint32 _riskChoice) external payable eventInProgress {
        require(_riskChoice >= RISK_LEVEL_LOW && _riskChoice <= RISK_LEVEL_HIGH);
        require(msg.value >= INDIVIDUAL_DAILY_ACTIVITY_COST);
        require(ownerOf(tokenId) == msg.sender);

        uint256 _currentDay = uint256(this.currentDay());
        uint256 individualDayKey = (tokenId << 32) + _currentDay;
        ActivityRecord memory activity = individualActivity[individualDayKey];
        require(activity.riskChoice == 0);
        uint32 _activityOutcome = 0;
        
        IndividualData memory individual = individualRecord[tokenId];
        if(individual.lastBlock == 0) { individual.lastBlock = eventStartBlock; }
        individual.lastScore = (individual.lastScore + (uint32(block.number) - individual.lastBlock) * this.getIndividualRate(tokenId,false));
        individual.lastBlock = uint32(block.number);
        uint32 _groupScore = this.getGroupScore(individual.groupNumber);
        uint32 _currentInfectionProgress = this.currentInfectionProgress();
        uint32 _individualLuck = this.getIndividualLuck(tokenId);

        uint32 _seed = (uint32(uint256(keccak256(abi.encodePacked(block.timestamp,block.difficulty,tokenId)))) % TOTAL_MAXIMUM_LUCK) + _individualLuck;

        if((individual.lastScore + _groupScore) >= _currentInfectionProgress) {
            if(_riskChoice == RISK_LEVEL_LOW) {
                if(_seed > RISK_LOW_OUTCOME_LARGE) {
                    _activityOutcome = ACTIVITY_OUTCOME_LARGE;
                    individual.lastScore += INDIVIDUAL_REWARD_OUTCOME_LARGE;
                } else if(_seed > RISK_LOW_OUTCOME_MEDIUM) {
                    _activityOutcome = ACTIVITY_OUTCOME_MEDIUM;
                    individual.lastScore += INDIVIDUAL_REWARD_OUTCOME_MEDIUM;
                } else if(_seed > RISK_LOW_OUTCOME_SMALL) {
                    _activityOutcome = ACTIVITY_OUTCOME_SMALL;
                    individual.lastScore += INDIVIDUAL_REWARD_OUTCOME_SMALL;
                } else {
                    _activityOutcome = ACTIVITY_OUTCOME_DEVASTATED;
                    individual.bitten = true;
                }
            } else if(_riskChoice == RISK_LEVEL_MEDIUM) {
                if(_seed > RISK_MEDIUM_OUTCOME_LARGE) {
                    _activityOutcome = ACTIVITY_OUTCOME_LARGE;
                    individual.lastScore += INDIVIDUAL_REWARD_OUTCOME_LARGE;
                } else if(_seed > RISK_MEDIUM_OUTCOME_MEDIUM) {
                    _activityOutcome = ACTIVITY_OUTCOME_MEDIUM;
                    individual.lastScore += INDIVIDUAL_REWARD_OUTCOME_MEDIUM;
                } else if(_seed > RISK_MEDIUM_OUTCOME_SMALL) {
                    _activityOutcome = ACTIVITY_OUTCOME_SMALL;
                    individual.lastScore += INDIVIDUAL_REWARD_OUTCOME_SMALL;
                } else {
                    _activityOutcome = ACTIVITY_OUTCOME_DEVASTATED;
                    individual.bitten = true;
                }
            } else if(_riskChoice == RISK_LEVEL_HIGH) {
                if(_seed > RISK_HIGH_OUTCOME_LARGE) {
                    _activityOutcome = ACTIVITY_OUTCOME_LARGE;
                    individual.lastScore += INDIVIDUAL_REWARD_OUTCOME_LARGE;
                } else if(_seed > RISK_HIGH_OUTCOME_MEDIUM) {
                    _activityOutcome = ACTIVITY_OUTCOME_MEDIUM;
                    individual.lastScore += INDIVIDUAL_REWARD_OUTCOME_MEDIUM;
                } else if(_seed > RISK_HIGH_OUTCOME_SMALL) {
                    _activityOutcome = ACTIVITY_OUTCOME_SMALL;
                    individual.lastScore += INDIVIDUAL_REWARD_OUTCOME_SMALL;
                } else {
                    _activityOutcome = ACTIVITY_OUTCOME_DEVASTATED;
                    individual.bitten = true;
                }
            }
        } else { // already a zombie, chance to recover
            if(_seed > RANDOM_CURE_CHANCE) {
                _riskChoice = 1;
                individual.lastScore = (_currentInfectionProgress + LATE_JOINER_PROGRESS) - _groupScore;
                _activityOutcome = ACTIVITY_OUTCOME_CURED;
                individual.bitten = false;
            } else {
                _riskChoice = 1;
                _activityOutcome = ACTIVITY_OUTCOME_STILL_A_ZOMBIE;
            }
        }

        activity.riskChoice = _riskChoice;
        activity.activityOutcome = _activityOutcome;

        individualActivity[individualDayKey] = activity;
        individualRecord[tokenId] = individual;

        emit IndividualDailyActivity(tokenId, _currentDay, _riskChoice, _activityOutcome);
    }

    function dailyActivityGroup(uint32 _groupNumber, uint32 _riskChoice) external payable eventInProgress {
        require(_riskChoice >= RISK_LEVEL_LOW && _riskChoice <= RISK_LEVEL_HIGH);
        require(msg.value >= GROUP_DAILY_ACTIVITY_COST);
        require(groupManager[_groupNumber] == msg.sender);

        uint256 _currentDay = uint256(this.currentDay());
        uint256 groupDayKey = (uint256(_groupNumber) << 32) + _currentDay;
        ActivityRecord memory activity = groupActivity[groupDayKey];
        require(activity.riskChoice == 0);
        uint32 _activityOutcome = 0;
        
        GroupData memory group = groupRecord[uint256(_groupNumber)];
        if(group.lastBlock == 0) { group.lastBlock = eventStartBlock; }
        group.lastScore = (group.lastScore + (uint32(block.number) - group.lastBlock) * this.getGroupRate(_groupNumber));
        group.lastBlock = uint32(block.number);

        uint32 _seed = (uint32(uint256(keccak256(abi.encodePacked(block.timestamp,block.difficulty,_groupNumber)))) % TOTAL_MAXIMUM_LUCK);

        if(_riskChoice == RISK_LEVEL_LOW) {
            if(_seed > RISK_LOW_OUTCOME_LARGE) {
                _activityOutcome = ACTIVITY_OUTCOME_LARGE;
                group.lastScore += GROUP_REWARD_OUTCOME_LARGE;
            } else if(_seed > RISK_LOW_OUTCOME_MEDIUM) {
                _activityOutcome = ACTIVITY_OUTCOME_MEDIUM;
                group.lastScore += GROUP_REWARD_OUTCOME_MEDIUM;
            } else if(_seed > RISK_LOW_OUTCOME_SMALL) {
                _activityOutcome = ACTIVITY_OUTCOME_SMALL;
                group.lastScore += GROUP_REWARD_OUTCOME_SMALL;
            } else {
                _activityOutcome = ACTIVITY_OUTCOME_DEVASTATED;
                group.lastScore /= 2;
            }
        } else if(_riskChoice == RISK_LEVEL_MEDIUM) {
            if(_seed > RISK_MEDIUM_OUTCOME_LARGE) {
                _activityOutcome = ACTIVITY_OUTCOME_LARGE;
                group.lastScore += GROUP_REWARD_OUTCOME_LARGE;
            } else if(_seed > RISK_MEDIUM_OUTCOME_MEDIUM) {
                _activityOutcome = ACTIVITY_OUTCOME_MEDIUM;
                group.lastScore += GROUP_REWARD_OUTCOME_MEDIUM;
            } else if(_seed > RISK_MEDIUM_OUTCOME_SMALL) {
                _activityOutcome = ACTIVITY_OUTCOME_SMALL;
                group.lastScore += GROUP_REWARD_OUTCOME_SMALL;
            } else {
                _activityOutcome = ACTIVITY_OUTCOME_DEVASTATED;
                group.lastScore /= 2;
            }
        } else if(_riskChoice == RISK_LEVEL_HIGH) {
            if(_seed > RISK_HIGH_OUTCOME_LARGE) {
                _activityOutcome = ACTIVITY_OUTCOME_LARGE;
                group.lastScore += GROUP_REWARD_OUTCOME_LARGE;
            } else if(_seed > RISK_HIGH_OUTCOME_MEDIUM) {
                _activityOutcome = ACTIVITY_OUTCOME_MEDIUM;
                group.lastScore += GROUP_REWARD_OUTCOME_MEDIUM;
            } else if(_seed > RISK_HIGH_OUTCOME_SMALL) {
                _activityOutcome = ACTIVITY_OUTCOME_SMALL;
                group.lastScore += GROUP_REWARD_OUTCOME_SMALL;
            } else {
                _activityOutcome = ACTIVITY_OUTCOME_DEVASTATED;
                group.lastScore /= 2;
            }
        }

        activity.riskChoice = _riskChoice;
        activity.activityOutcome = _activityOutcome;

        groupActivity[groupDayKey] = activity;
        groupRecord[uint256(_groupNumber)] = group;

        emit GroupDailyActivity(_groupNumber, _currentDay, _riskChoice, _activityOutcome);
    }

    /** GROUP MANAGEMENT FUNCTIONS
    */

    /**  Register a group to Dead Will Rise, claims ownership
    */
    function registerGroup(address _collectionAddress) external payable {
        require(groupRegistrationOpen);
        require(msg.value >= GROUP_REGISTRATION_COST);
        require(groupNumbers[_collectionAddress] == 0);
        require(IERC721(_collectionAddress).supportsInterface(type(IERC721).interfaceId));
        groupsRegistered = groupsRegistered + 1;
        uint256 newGroupNumber = groupsRegistered;
        GroupData memory newGroup;
        newGroup.groupSeed = uint32(uint256(keccak256(abi.encodePacked(block.timestamp, block.difficulty, _collectionAddress))));
        if(eventStartBlock > 0) {
            newGroup.lastBlock = uint32(block.number);
        }

        groupNumberToCollection[newGroupNumber] = _collectionAddress;
        groupNumbers[_collectionAddress] = newGroupNumber;
        groupRecord[newGroupNumber] = newGroup;
        groupManager[newGroupNumber] = msg.sender;
        emit GroupRegistered(newGroupNumber, _collectionAddress, msg.sender);
    }

    /** Transfer management of a group to a new user
    *   Current group manager can transfer ownership anytime
    */
    function transferGroupManagement(address _collectionAddress, address _newManager) external {
        uint256 _groupNumber = groupNumbers[_collectionAddress];
        require(groupManager[_groupNumber] == msg.sender);
        groupManager[_groupNumber] = _newManager;
        emit GroupTransferred(_groupNumber, _collectionAddress, _newManager);
    }

    /** MINTING FUNCTIONS
    */
    function setMintingVariables(bool _groupOpen, bool _publicOpen, uint32 _maxPerWalletPerGroup, uint32 _maxPerGroup) external onlyOwner {
        groupRegistrationOpen = _groupOpen;
        publicMintOpen = _publicOpen;
        maxPerWalletPerGroup = _maxPerWalletPerGroup;
        maxPerGroup = _maxPerGroup;
    }

    function getCurrentRegistrationCost() external view returns (uint256) {
        if(eventStartBlock > 0) {
            uint256 _currentDay = this.currentDay();
            if(_currentDay == MAX_DAY) {
                return 5000 ether;
            } else {
                return address(this).balance * 50 / 100 / (MAX_DAY - _currentDay);
            }
        } else {
            return 0;
        }
    }

    function mintInner(address _to, address _collectionAddress, address _onBehalfOf) internal {
        uint256 tokenId = totalSupply() + 1;
        require(tokenId <= MAX_SUPPLY);

        uint32 _groupNumber = uint32(groupNumbers[_collectionAddress]);
        require((groupRegistrationOpen && _groupNumber > 0) || publicMintOpen);

        uint256 mintKey = (uint256(uint160(_onBehalfOf)) << 32) + _groupNumber;
        uint256 currentCount = mintCount[mintKey];
        require(currentCount + 1 <= maxPerWalletPerGroup);

        uint256 _eventStartBlock = eventStartBlock;
        IndividualData memory individual;
        individual.individualSeed = uint32(uint256(keccak256(abi.encodePacked(block.timestamp, block.difficulty, mintKey))));
        if(_eventStartBlock > 0) {
            individual.lastBlock = uint32(block.number);
            individual.lastScore = this.currentInfectionProgress() * 110 / 100;
            require(msg.value >= this.getCurrentRegistrationCost());
        }
        if(_groupNumber > 0) {
            require(IERC721(_collectionAddress).balanceOf(_onBehalfOf) > 0);
            GroupData memory group = groupRecord[_groupNumber];
            group.totalMembers = group.totalMembers + 1;
            require(group.totalMembers <= maxPerGroup);
            if(_eventStartBlock > 0) {
                group.lastScore = this.getGroupScore(_groupNumber);
                group.lastBlock = uint32(block.number);
            }
            individual.groupNumber = _groupNumber;
            groupRecord[_groupNumber] = group;
        }

        _safeMint(_to, 1);
        mintCount[mintKey] = currentCount + 1;
        individualRecord[tokenId] = individual;
    }

    function delegateMint(address _collectionAddress, address _onBehalfOf) external payable {
        require(delegateCash.checkDelegateForAll(msg.sender, _onBehalfOf) || delegateCash.checkDelegateForContract(msg.sender, _onBehalfOf, _collectionAddress));
        mintInner(msg.sender, _collectionAddress, _onBehalfOf);
    }

    function mintIndividual() external payable {
        mintInner(msg.sender, address(0x0), msg.sender);
    }

    function mintToGroup(address _collectionAddress) external payable {
        mintInner(msg.sender, _collectionAddress, msg.sender);
    }

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

    function setBaseURI(string calldata baseURI) external onlyOwner {
        _baseTokenURI = baseURI;
    }

    function setPlaceholderURI(string calldata placeholderURI) external onlyOwner {
        _placeholderURI = placeholderURI;
    }

    function setContractURI(string calldata newContractURI) external onlyOwner {
        _contractURI = newContractURI;
    }

    function setIncludeStatsInURI(bool _stats) external onlyOwner {
        includeStatsInURI = _stats;
    }

    function contractURI() external view returns (string memory) {
        return _contractURI;
    }

    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        require(_exists(tokenId));

        if (eventStartTime == 0) {
            return _placeholderURI;
        }

        string memory baseURI = _baseTokenURI;
        string memory infectionStatus = 'H';
        if(this.getIndividualScore(tokenId) < this.currentInfectionProgress()) { infectionStatus = 'Z'; }
        if(includeStatsInURI) {
            uint32 individualLuck = this.getIndividualLuck(tokenId);
            uint32 individualRate = this.getIndividualRate(tokenId,true);
            return bytes(baseURI).length > 0
                ? string(abi.encodePacked(baseURI, infectionStatus, _toString(tokenId), TOKEN_URI_SEPARATOR, _toString(individualRate), TOKEN_URI_SEPARATOR, _toString(individualLuck)))
                : "";
        } else {
            return bytes(baseURI).length > 0
                ? string(abi.encodePacked(baseURI, infectionStatus, _toString(tokenId)))
                : "";
        }
    }

    function tokensOfOwner(address owner) external view returns (uint256[] memory) {
        unchecked {
            uint256 tokenIdsIdx;
            uint256 tokenIdsLength = balanceOf(owner);
            uint256[] memory tokenIds = new uint256[](tokenIdsLength);
            for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) {
                if (ownerOf(i) == owner) {
                    uint256 _individualScore = this.getIndividualScore(i);
                    tokenIds[tokenIdsIdx++] = (i<<32)+_individualScore;
                }
            }
            return tokenIds;
        }
    }
}

File 2 of 10 : ERC165Checker.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.2) (utils/introspection/ERC165Checker.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Library used to query support of an interface declared via {IERC165}.
 *
 * Note that these functions return the actual result of the query: they do not
 * `revert` if an interface is not supported. It is up to the caller to decide
 * what to do in these cases.
 */
library ERC165Checker {
    // As per the EIP-165 spec, no interface should ever match 0xffffffff
    bytes4 private constant _INTERFACE_ID_INVALID = 0xffffffff;

    /**
     * @dev Returns true if `account` supports the {IERC165} interface,
     */
    function supportsERC165(address account) internal view returns (bool) {
        // Any contract that implements ERC165 must explicitly indicate support of
        // InterfaceId_ERC165 and explicitly indicate non-support of InterfaceId_Invalid
        return
            _supportsERC165Interface(account, type(IERC165).interfaceId) &&
            !_supportsERC165Interface(account, _INTERFACE_ID_INVALID);
    }

    /**
     * @dev Returns true if `account` supports the interface defined by
     * `interfaceId`. Support for {IERC165} itself is queried automatically.
     *
     * See {IERC165-supportsInterface}.
     */
    function supportsInterface(address account, bytes4 interfaceId) internal view returns (bool) {
        // query support of both ERC165 as per the spec and support of _interfaceId
        return supportsERC165(account) && _supportsERC165Interface(account, interfaceId);
    }

    /**
     * @dev Returns a boolean array where each value corresponds to the
     * interfaces passed in and whether they're supported or not. This allows
     * you to batch check interfaces for a contract where your expectation
     * is that some interfaces may not be supported.
     *
     * See {IERC165-supportsInterface}.
     *
     * _Available since v3.4._
     */
    function getSupportedInterfaces(address account, bytes4[] memory interfaceIds)
        internal
        view
        returns (bool[] memory)
    {
        // an array of booleans corresponding to interfaceIds and whether they're supported or not
        bool[] memory interfaceIdsSupported = new bool[](interfaceIds.length);

        // query support of ERC165 itself
        if (supportsERC165(account)) {
            // query support of each interface in interfaceIds
            for (uint256 i = 0; i < interfaceIds.length; i++) {
                interfaceIdsSupported[i] = _supportsERC165Interface(account, interfaceIds[i]);
            }
        }

        return interfaceIdsSupported;
    }

    /**
     * @dev Returns true if `account` supports all the interfaces defined in
     * `interfaceIds`. Support for {IERC165} itself is queried automatically.
     *
     * Batch-querying can lead to gas savings by skipping repeated checks for
     * {IERC165} support.
     *
     * See {IERC165-supportsInterface}.
     */
    function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool) {
        // query support of ERC165 itself
        if (!supportsERC165(account)) {
            return false;
        }

        // query support of each interface in _interfaceIds
        for (uint256 i = 0; i < interfaceIds.length; i++) {
            if (!_supportsERC165Interface(account, interfaceIds[i])) {
                return false;
            }
        }

        // all interfaces supported
        return true;
    }

    /**
     * @notice Query if a contract implements an interface, does not check ERC165 support
     * @param account The address of the contract to query for support of an interface
     * @param interfaceId The interface identifier, as specified in ERC-165
     * @return true if the contract at account indicates support of the interface with
     * identifier interfaceId, false otherwise
     * @dev Assumes that account contains a contract that supports ERC165, otherwise
     * the behavior of this method is undefined. This precondition can be checked
     * with {supportsERC165}.
     * Interface identification is specified in ERC-165.
     */
    function _supportsERC165Interface(address account, bytes4 interfaceId) private view returns (bool) {
        // prepare call
        bytes memory encodedParams = abi.encodeWithSelector(IERC165.supportsInterface.selector, interfaceId);

        // perform static call
        bool success;
        uint256 returnSize;
        uint256 returnValue;
        assembly {
            success := staticcall(30000, account, add(encodedParams, 0x20), mload(encodedParams), 0x00, 0x20)
            returnSize := returndatasize()
            returnValue := mload(0x00)
        }

        return success && returnSize >= 0x20 && returnValue > 0;
    }
}

File 3 of 10 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

File 4 of 10 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

File 5 of 10 : IWETH.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.17;

interface IWETH {
    function balanceOf(address src) external view returns (uint);
    function allowance(address src, address guy) external view returns (uint);
    function deposit() external payable;
    function withdraw(uint wad) external;
    function totalSupply() external view returns (uint);
    function approve(address guy, uint wad) external returns (bool);
    function transfer(address dst, uint wad) external returns (bool);
    function transferFrom(address src, address dst, uint wad) external returns (bool);
}

File 6 of 10 : IDelegationRegistry.sol
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.17;

/**
 * @title An immutable registry contract to be deployed as a standalone primitive
 * @dev See EIP-5639, new project launches can read previous cold wallet -> hot wallet delegations
 * from here and integrate those permissions into their flow
 */
interface IDelegationRegistry {
    /// @notice Delegation type
    enum DelegationType {
        NONE,
        ALL,
        CONTRACT,
        TOKEN
    }

    /// @notice Info about a single delegation, used for onchain enumeration
    struct DelegationInfo {
        DelegationType type_;
        address vault;
        address delegate;
        address contract_;
        uint256 tokenId;
    }

    /// @notice Info about a single contract-level delegation
    struct ContractDelegation {
        address contract_;
        address delegate;
    }

    /// @notice Info about a single token-level delegation
    struct TokenDelegation {
        address contract_;
        uint256 tokenId;
        address delegate;
    }

    /// @notice Emitted when a user delegates their entire wallet
    event DelegateForAll(address vault, address delegate, bool value);

    /// @notice Emitted when a user delegates a specific contract
    event DelegateForContract(address vault, address delegate, address contract_, bool value);

    /// @notice Emitted when a user delegates a specific token
    event DelegateForToken(address vault, address delegate, address contract_, uint256 tokenId, bool value);

    /// @notice Emitted when a user revokes all delegations
    event RevokeAllDelegates(address vault);

    /// @notice Emitted when a user revoes all delegations for a given delegate
    event RevokeDelegate(address vault, address delegate);

    /**
     * -----------  WRITE -----------
     */

    /**
     * @notice Allow the delegate to act on your behalf for all contracts
     * @param delegate The hotwallet to act on your behalf
     * @param value Whether to enable or disable delegation for this address, true for setting and false for revoking
     */
    function delegateForAll(address delegate, bool value) external;

    /**
     * @notice Allow the delegate to act on your behalf for a specific contract
     * @param delegate The hotwallet to act on your behalf
     * @param contract_ The address for the contract you're delegating
     * @param value Whether to enable or disable delegation for this address, true for setting and false for revoking
     */
    function delegateForContract(address delegate, address contract_, bool value) external;

    /**
     * @notice Allow the delegate to act on your behalf for a specific token
     * @param delegate The hotwallet to act on your behalf
     * @param contract_ The address for the contract you're delegating
     * @param tokenId The token id for the token you're delegating
     * @param value Whether to enable or disable delegation for this address, true for setting and false for revoking
     */
    function delegateForToken(address delegate, address contract_, uint256 tokenId, bool value) external;

    /**
     * @notice Revoke all delegates
     */
    function revokeAllDelegates() external;

    /**
     * @notice Revoke a specific delegate for all their permissions
     * @param delegate The hotwallet to revoke
     */
    function revokeDelegate(address delegate) external;

    /**
     * @notice Remove yourself as a delegate for a specific vault
     * @param vault The vault which delegated to the msg.sender, and should be removed
     */
    function revokeSelf(address vault) external;

    /**
     * -----------  READ -----------
     */

    /**
     * @notice Returns all active delegations a given delegate is able to claim on behalf of
     * @param delegate The delegate that you would like to retrieve delegations for
     * @return info Array of DelegationInfo structs
     */
    function getDelegationsByDelegate(address delegate) external view returns (DelegationInfo[] memory);

    /**
     * @notice Returns an array of wallet-level delegates for a given vault
     * @param vault The cold wallet who issued the delegation
     * @return addresses Array of wallet-level delegates for a given vault
     */
    function getDelegatesForAll(address vault) external view returns (address[] memory);

    /**
     * @notice Returns an array of contract-level delegates for a given vault and contract
     * @param vault The cold wallet who issued the delegation
     * @param contract_ The address for the contract you're delegating
     * @return addresses Array of contract-level delegates for a given vault and contract
     */
    function getDelegatesForContract(address vault, address contract_) external view returns (address[] memory);

    /**
     * @notice Returns an array of contract-level delegates for a given vault's token
     * @param vault The cold wallet who issued the delegation
     * @param contract_ The address for the contract holding the token
     * @param tokenId The token id for the token you're delegating
     * @return addresses Array of contract-level delegates for a given vault's token
     */
    function getDelegatesForToken(address vault, address contract_, uint256 tokenId)
        external
        view
        returns (address[] memory);

    /**
     * @notice Returns all contract-level delegations for a given vault
     * @param vault The cold wallet who issued the delegations
     * @return delegations Array of ContractDelegation structs
     */
    function getContractLevelDelegations(address vault)
        external
        view
        returns (ContractDelegation[] memory delegations);

    /**
     * @notice Returns all token-level delegations for a given vault
     * @param vault The cold wallet who issued the delegations
     * @return delegations Array of TokenDelegation structs
     */
    function getTokenLevelDelegations(address vault) external view returns (TokenDelegation[] memory delegations);

    /**
     * @notice Returns true if the address is delegated to act on the entire vault
     * @param delegate The hotwallet to act on your behalf
     * @param vault The cold wallet who issued the delegation
     */
    function checkDelegateForAll(address delegate, address vault) external view returns (bool);

    /**
     * @notice Returns true if the address is delegated to act on your behalf for a token contract or an entire vault
     * @param delegate The hotwallet to act on your behalf
     * @param contract_ The address for the contract you're delegating
     * @param vault The cold wallet who issued the delegation
     */
    function checkDelegateForContract(address delegate, address vault, address contract_)
        external
        view
        returns (bool);

    /**
     * @notice Returns true if the address is delegated to act on your behalf for a specific token, the token's contract or an entire vault
     * @param delegate The hotwallet to act on your behalf
     * @param contract_ The address for the contract you're delegating
     * @param tokenId The token id for the token you're delegating
     * @param vault The cold wallet who issued the delegation
     */
    function checkDelegateForToken(address delegate, address vault, address contract_, uint256 tokenId)
        external
        view
        returns (bool);
}

File 7 of 10 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// 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 {
    // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
    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 payable 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 {
        _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].value`.
        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 payable 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 payable 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 payable 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.
            // The duplicated `log4` removes an extra check and reduces stack juggling.
            // The assembly, together with the surrounding Solidity code, have been
            // delicately arranged to nudge the compiler into producing optimized opcodes.
            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`.
                )

                // The `iszero(eq(,))` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
                // The compiler will optimize the `iszero` away for performance.
                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 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

            // 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 8 of 10 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// 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();

    /**
     * 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 payable;

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

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

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

    /**
     * @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 9 of 10 : 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 10 of 10 : 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;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"mContractURI","type":"string"},{"internalType":"string","name":"mPlaceholderURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"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":"uint256","name":"groupNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"currentDay","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"riskChoice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"activityOutcome","type":"uint256"}],"name":"GroupDailyActivity","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"groupNum","type":"uint256"},{"indexed":false,"internalType":"address","name":"collectionAddress","type":"address"},{"indexed":false,"internalType":"address","name":"groupManager","type":"address"}],"name":"GroupRegistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"groupNum","type":"uint256"},{"indexed":false,"internalType":"address","name":"collectionAddress","type":"address"},{"indexed":false,"internalType":"address","name":"groupManager","type":"address"}],"name":"GroupTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"IndividualCured","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"currentDay","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"riskChoice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"activityOutcome","type":"uint256"}],"name":"IndividualDailyActivity","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"currentProgress","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"infectionRate","type":"uint256"}],"name":"InfectionSpreading","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"FINAL_CURE_COST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GROUP_DAILY_ACTIVITY_COST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GROUP_REGISTRATION_COST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INDIVIDUAL_DAILY_ACTIVITY_COST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_DAY","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_URI_SEPARATOR","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectionSeed","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"cureIndividual","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"cureSupply","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentDay","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentInfectionProgress","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_groupNumber","type":"uint32"},{"internalType":"uint32","name":"_riskChoice","type":"uint32"}],"name":"dailyActivityGroup","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint32","name":"_riskChoice","type":"uint32"}],"name":"dailyActivityIndividual","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"declareLastSurvivor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"groupNumber","type":"uint32"}],"name":"declareWinningGroup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_collectionAddress","type":"address"},{"internalType":"address","name":"_onBehalfOf","type":"address"}],"name":"delegateMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"endEvent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"eventOver","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"eventStartBlock","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"eventStartTime","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentRegistrationCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_groupNumber","type":"uint32"}],"name":"getGroupDailyActivityRecords","outputs":[{"components":[{"internalType":"uint32","name":"riskChoice","type":"uint32"},{"internalType":"uint32","name":"activityOutcome","type":"uint32"}],"internalType":"struct DeadWillRise.ActivityRecord[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_collectionAddress","type":"address"}],"name":"getGroupDailyActivityRecordsByAddress","outputs":[{"components":[{"internalType":"uint32","name":"riskChoice","type":"uint32"},{"internalType":"uint32","name":"activityOutcome","type":"uint32"}],"internalType":"struct DeadWillRise.ActivityRecord[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_groupNumber","type":"uint32"}],"name":"getGroupRate","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_groupNumber","type":"uint32"}],"name":"getGroupScore","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_collectionAddress","type":"address"}],"name":"getGroupScoreByAddress","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getIndividualDailyActivityRecords","outputs":[{"components":[{"internalType":"uint32","name":"riskChoice","type":"uint32"},{"internalType":"uint32","name":"activityOutcome","type":"uint32"}],"internalType":"struct DeadWillRise.ActivityRecord[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getIndividualLuck","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getIndividualOnlyScore","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bool","name":"ignoreBite","type":"bool"}],"name":"getIndividualRate","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getIndividualScore","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"groupActivity","outputs":[{"internalType":"uint32","name":"riskChoice","type":"uint32"},{"internalType":"uint32","name":"activityOutcome","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"groupBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"groupManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"groupNumberToCollection","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"groupNumbers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"groupRecord","outputs":[{"internalType":"uint32","name":"lastBlock","type":"uint32"},{"internalType":"uint32","name":"lastScore","type":"uint32"},{"internalType":"uint32","name":"groupSeed","type":"uint32"},{"internalType":"uint32","name":"totalMembers","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"groupRegistrationOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"groupsRegistered","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hostBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"includeStatsInURI","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"individualActivity","outputs":[{"internalType":"uint32","name":"riskChoice","type":"uint32"},{"internalType":"uint32","name":"activityOutcome","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"individualRecord","outputs":[{"internalType":"uint32","name":"lastBlock","type":"uint32"},{"internalType":"uint32","name":"lastScore","type":"uint32"},{"internalType":"uint32","name":"individualSeed","type":"uint32"},{"internalType":"uint32","name":"groupNumber","type":"uint32"},{"internalType":"bool","name":"bitten","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"infectionProgress","outputs":[{"internalType":"uint32","name":"lastBlock","type":"uint32"},{"internalType":"uint32","name":"lastProgress","type":"uint32"},{"internalType":"uint32","name":"infectionRate","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastSurvivorTokenID","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerGroup","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWalletPerGroup","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintIndividual","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_collectionAddress","type":"address"}],"name":"mintToGroup","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_collectionAddress","type":"address"}],"name":"registerGroup","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_infectionRate","type":"uint32"}],"name":"resumeEvent","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":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newContractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_stats","type":"bool"}],"name":"setIncludeStatsInURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_infectionProgress","type":"uint32"}],"name":"setInfectionProgress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_infectionRate","type":"uint32"},{"internalType":"uint32","name":"_progressAdder","type":"uint32"}],"name":"setInfectionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_groupOpen","type":"bool"},{"internalType":"bool","name":"_publicOpen","type":"bool"},{"internalType":"uint32","name":"_maxPerWalletPerGroup","type":"uint32"},{"internalType":"uint32","name":"_maxPerGroup","type":"uint32"}],"name":"setMintingVariables","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"placeholderURI","type":"string"}],"name":"setPlaceholderURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_infectionRate","type":"uint32"}],"name":"startEvent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"survivorBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sweepRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSwept","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalWithdrawn","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_collectionAddress","type":"address"},{"internalType":"address","name":"_newManager","type":"address"}],"name":"transferGroupManagement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unwrapWETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"winningGroupNumber","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"share","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052600980547701f4000001f4000000010000000000000000000000000000600160701b600160d01b0319909116179055601480546001600160a01b031990811673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc217909155601580549091166d76a84fef008cdabe6409d2fe638b1790556019805460ff191660011790553480156200008f57600080fd5b50604051620060e6380380620060e6833981016040819052620000b29162000265565b6040518060400160405280600e81526020016d446561642057696c6c205269736560901b81525060405180604001604052806003815260200162222ba960e91b81525081600290816200010691906200035e565b5060036200011582826200035e565b505060016000555062000128336200014e565b60186200013683826200035e565b5060176200014582826200035e565b5050506200042a565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620001c857600080fd5b81516001600160401b0380821115620001e557620001e5620001a0565b604051601f8301601f19908116603f01168101908282118183101715620002105762000210620001a0565b816040528381526020925086838588010111156200022d57600080fd5b600091505b8382101562000251578582018301518183018401529082019062000232565b600093810190920192909252949350505050565b600080604083850312156200027957600080fd5b82516001600160401b03808211156200029157600080fd5b6200029f86838701620001b6565b93506020850151915080821115620002b657600080fd5b50620002c585828601620001b6565b9150509250929050565b600181811c90821680620002e457607f821691505b6020821081036200030557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200035957600081815260208120601f850160051c81016020861015620003345750805b601f850160051c820191505b81811015620003555782815560010162000340565b5050505b505050565b81516001600160401b038111156200037a576200037a620001a0565b62000392816200038b8454620002cf565b846200030b565b602080601f831160018114620003ca5760008415620003b15750858301515b600019600386901b1c1916600185901b17855562000355565b600085815260208120601f198616915b82811015620003fb57888601518255948401946001909101908401620003da565b50858210156200041a5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b615cac806200043a6000396000f3fe6080604052600436106104aa5760003560e01c8063740ea9a611610269578063c87b56dd1161014e578063e0298a29116100c6578063ed99947c11610082578063ed99947c14611007578063ee00c8ad14611027578063f054d32b14611065578063f2fde38b14611085578063fa1100f4146110a5578063ffd5a085146110d257005b8063e0298a2914610f29578063e40811e714610f3c578063e8a3d48514610f72578063e8b6a0d814610f87578063e985e9c514610fa3578063ea6a09fe14610fec57005b8063d30b8f9311610115578063d30b8f9314610e5d578063d3cf629814610e81578063d68e813f14610ea1578063dbe447c814610ec5578063dc9d8c6314610ee5578063dcb73c9514610f0557005b8063c87b56dd14610d8c578063c9e87b0214610dac578063cceeea9314610dc2578063d059b4ef14610de2578063d19c25dc14610e0357005b806395d89b41116101e1578063bcc9ca5b116101a8578063bcc9ca5b14610cf9578063be478af514610d1a578063bedad19e14610d2d578063c1e4d03414610d35578063c5f7e37814610d4a578063c68f859d14610d7757005b806395d89b4114610c8b5780639adb6c6a14610ca0578063a22cb46514610cb3578063ac596dac14610cd3578063b88d4fde14610ce657005b80637fe93faf116102305780637fe93faf14610bca5780638462151c14610bea57806386ec617714610c17578063878443ac14610c2c5780638da5cb5b14610c4d578063938e3d7b14610c6b57005b8063740ea9a614610b1b5780637417800014610b5a57806379d7e06614610b705780637b1aa7de14610b835780637b4547d814610baa57005b8063439787851161038f5780636352211e116103075780636b56652a116102ce5780636b56652a14610a785780636ce01cb114610a9357806370a0823114610aa657806370cd244914610ac657806370f3321e14610ae6578063715018a614610b0657005b80636352211e1461096f57806365accc641461098f578063662170e4146109af57806367924741146109c45780636afd7084146109e157005b806359ad00ff1161035657806359ad00ff146108625780635a3ed469146108e45780635b5c106d146109005780635c9302c91461091a57806361c3338e1461092f578063621d283f1461094f57005b806343978785146107bb5780634b319713146107e857806355f804b3146107fe5780635752a6461461081e578063587b36181461084257005b806329da69201161042257806335f5b97a116103e957806335f5b97a14610706578063385ad0a4146107335780633cffa3f7146107485780633e1b329e14610768578063400e37511461078857806342842e0e146107a857005b806329da6920146106315780632e1a7d4d1461068c57806332cb6b0c146106ac5780633574a2dd146106c257806335817cbc146106e257005b806318160ddd1161047157806318160ddd1461058e5780631ae1bebc146105b55780631c939521146105cb5780631fbf6f5c146105e857806323b872dd14610608578063243389bc1461061b57005b806301ffc9a7146104b357806306fdde03146104e8578063081812fc1461050a578063095ea7b3146105425780630db275a71461055557005b366104b157005b005b3480156104bf57600080fd5b506104d36104ce366004615261565b611108565b60405190151581526020015b60405180910390f35b3480156104f457600080fd5b506104fd61115a565b6040516104df91906152ce565b34801561051657600080fd5b5061052a6105253660046152e1565b6111ec565b6040516001600160a01b0390911681526020016104df565b6104b1610550366004615311565b611230565b34801561056157600080fd5b5060095461057990600160401b900463ffffffff1681565b60405163ffffffff90911681526020016104df565b34801561059a57600080fd5b5060015460005403600019015b6040519081526020016104df565b3480156105c157600080fd5b506105a7601e5481565b3480156105d757600080fd5b506009546105799063ffffffff1681565b3480156105f457600080fd5b506104b161060336600461534d565b6112d0565b6104b161061636600461536a565b6113eb565b34801561062757600080fd5b506105a7601b5481565b34801561063d57600080fd5b5061066f61064c3660046152e1565b60126020526000908152604090205463ffffffff80821691600160201b90041682565b6040805163ffffffff9384168152929091166020830152016104df565b34801561069857600080fd5b506104b16106a73660046152e1565b611584565b3480156106b857600080fd5b506105a761138881565b3480156106ce57600080fd5b506104b16106dd3660046153a6565b6116a4565b3480156106ee57600080fd5b5060095461057990600160901b900463ffffffff1681565b34801561071257600080fd5b506107266107213660046152e1565b6116be565b6040516104df9190615417565b34801561073f57600080fd5b506104b1611822565b34801561075457600080fd5b506104b161076336600461534d565b6118f9565b34801561077457600080fd5b506104b1610783366004615470565b611a02565b34801561079457600080fd5b506104b16107a336600461534d565b611aae565b6104b16107b636600461536a565b611b13565b3480156107c757600080fd5b506104fd604051806040016040528060018152602001602f60f81b81525081565b3480156107f457600080fd5b506105a7601a5481565b34801561080a57600080fd5b506104b16108193660046153a6565b611b2e565b34801561082a57600080fd5b5060095461057990600160201b900463ffffffff1681565b34801561084e57600080fd5b506104b161085d3660046154a3565b611b43565b34801561086e57600080fd5b506108b461087d3660046152e1565b600e6020526000908152604090205463ffffffff80821691600160201b8104821691600160401b8204811691600160601b90041684565b6040805163ffffffff958616815293851660208501529184169183019190915290911660608201526080016104df565b3480156108f057600080fd5b506105a767016345785d8a000081565b34801561090c57600080fd5b506019546104d39060ff1681565b34801561092657600080fd5b50610579611c62565b34801561093b57600080fd5b5061057961094a3660046154ea565b611cd8565b34801561095b57600080fd5b506104b161096a36600461534d565b611dee565b34801561097b57600080fd5b5061052a61098a3660046152e1565b611f16565b34801561099b57600080fd5b506105796109aa36600461534d565b611f21565b3480156109bb57600080fd5b506105a7612078565b3480156109d057600080fd5b50600a546105799063ffffffff1681565b3480156109ed57600080fd5b50610a406109fc3660046152e1565b60116020526000908152604090205463ffffffff80821691600160201b8104821691600160401b8204811691600160601b810490911690600160801b900460ff1685565b6040805163ffffffff96871681529486166020860152928516928401929092529092166060820152901515608082015260a0016104df565b348015610a8457600080fd5b506105a7662386f26fc1000081565b6104b1610aa13660046154a3565b612147565b348015610ab257600080fd5b506105a7610ac136600461550f565b61271a565b348015610ad257600080fd5b506104b1610ae136600461552a565b612768565b348015610af257600080fd5b50610579610b0136600461534d565b6127dc565b348015610b1257600080fd5b506104b161287a565b348015610b2757600080fd5b50600854610b4290600160a81b90046001600160401b031681565b6040516001600160401b0390911681526020016104df565b348015610b6657600080fd5b506105a7601c5481565b6104b1610b7e366004615586565b61288e565b348015610b8f57600080fd5b50610b98601381565b60405160ff90911681526020016104df565b348015610bb657600080fd5b506104b1610bc53660046155ab565b613099565b348015610bd657600080fd5b50610726610be536600461550f565b6130b4565b348015610bf657600080fd5b50610c0a610c0536600461550f565b61313b565b6040516104df91906155c8565b348015610c2357600080fd5b506104b1613265565b348015610c3857600080fd5b506008546104d390600160a01b900460ff1681565b348015610c5957600080fd5b506008546001600160a01b031661052a565b348015610c7757600080fd5b506104b1610c863660046153a6565b613399565b348015610c9757600080fd5b506104fd6133ae565b6104b1610cae36600461550f565b6133bd565b348015610cbf57600080fd5b506104b1610cce36600461560c565b613644565b6104b1610ce13660046152e1565b6136b0565b6104b1610cf43660046156a6565b613adb565b348015610d0557600080fd5b506009546104d390600160681b900460ff1681565b6104b1610d2836600461550f565b613b25565b6104b1613b33565b348015610d4157600080fd5b506104b1613b3f565b348015610d5657600080fd5b506105a7610d6536600461550f565b600c6020526000908152604090205481565b348015610d8357600080fd5b50610579613c42565b348015610d9857600080fd5b506104fd610da73660046152e1565b613cb1565b348015610db857600080fd5b506105a7601d5481565b348015610dce57600080fd5b50610579610ddd3660046152e1565b6140ea565b348015610dee57600080fd5b506009546104d390600160601b900460ff1681565b348015610e0f57600080fd5b50600b54610e369063ffffffff80821691600160201b8104821691600160401b9091041683565b6040805163ffffffff948516815292841660208401529216918101919091526060016104df565b348015610e6957600080fd5b5060095461057990600160701b900463ffffffff1681565b348015610e8d57600080fd5b50610579610e9c3660046152e1565b6141c2565b348015610ead57600080fd5b5060095461057990600160d01b900463ffffffff1681565b348015610ed157600080fd5b50610579610ee036600461550f565b614390565b348015610ef157600080fd5b506104b1610f003660046152e1565b61440f565b348015610f1157600080fd5b5060095461057990600160b01b900463ffffffff1681565b6104b1610f37366004615470565b614538565b348015610f4857600080fd5b5061052a610f573660046152e1565b600d602052600090815260409020546001600160a01b031681565b348015610f7e57600080fd5b506104fd614642565b348015610f9357600080fd5b506105a7678ac7230489e8000081565b348015610faf57600080fd5b506104d3610fbe366004615470565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610ff857600080fd5b506105a766038d7ea4c6800081565b34801561101357600080fd5b506105796110223660046152e1565b614651565b34801561103357600080fd5b5061066f6110423660046152e1565b60106020526000908152604090205463ffffffff80821691600160201b90041682565b34801561107157600080fd5b5061072661108036600461534d565b61474b565b34801561109157600080fd5b506104b16110a036600461550f565b6148b1565b3480156110b157600080fd5b506105a76110c03660046152e1565b60136020526000908152604090205481565b3480156110de57600080fd5b5061052a6110ed3660046152e1565b600f602052600090815260409020546001600160a01b031681565b60006301ffc9a760e01b6001600160e01b03198316148061113957506380ac58cd60e01b6001600160e01b03198316145b806111545750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461116990615765565b80601f016020809104026020016040519081016040528092919081815260200182805461119590615765565b80156111e25780601f106111b7576101008083540402835291602001916111e2565b820191906000526020600020905b8154815290600101906020018083116111c557829003601f168201915b5050505050905090565b60006111f78261492c565b611214576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061123b82611f16565b9050336001600160a01b03821614611274576112578133610fbe565b611274576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6112d8614961565b600854600160a01b900460ff166112ee57600080fd5b600854600160a01b900460ff1661130457600080fd5b306001600160a01b031663c68f859d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611342573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611366919061579f565b600b80544363ffffffff9081166001600160601b0319909216600160201b94821685026bffffffff00000000ffffffff19161791909117600160401b8583168102919091179283905560408051948404831685529204166020830152600080516020615c57833981519152910160405180910390a1506008805460ff60a01b19169055565b60006113f6826149bb565b9050836001600160a01b0316816001600160a01b0316146114295760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417611476576114598633610fbe565b61147657604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661149d57604051633a954ecd60e21b815260040160405180910390fd5b80156114a857600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b8416900361153a576001840160008181526004602052604081205490036115385760005481146115385760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b61158c614961565b600080826001036115b7576008546001600160a01b03169150601c5490506000601c81905550611620565b826002036115ef575050600a5463ffffffff166000908152600f6020526040812054601d80549290556001600160a01b031690611620565b826003036116205760095461161090600160d01b900463ffffffff16611f16565b9150601e5490506000601e819055505b6000811161162d57600080fd5b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461167a576040519150601f19603f3d011682016040523d82523d6000602084013e61167f565b606091505b505090508061168d57600080fd5b81601a5461169b91906157d2565b601a5550505050565b6116ac614961565b60176116b982848361582b565b505050565b60606000306001600160a01b0316635c9302c96040518163ffffffff1660e01b8152600401602060405180830381865afa158015611700573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611724919061579f565b63ffffffff1690506000816001600160401b0381111561174657611746615638565b60405190808252806020026020018201604052801561178b57816020015b60408051808201909152600080825260208201528152602001906001900390816117645790505b50905060015b82811161181a57601260006117aa83602089901b6157d2565b8152602080820192909252604090810160002081518083019092525463ffffffff8082168352600160201b9091041691810191909152826117ec6001846158ea565b815181106117fc576117fc6158fd565b6020026020010181905250808061181290615913565b915050611791565b509392505050565b61182a614961565b6014546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611873573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611897919061592c565b601454604051632e1a7d4d60e01b8152600481018390529192506001600160a01b031690632e1a7d4d90602401600060405180830381600087803b1580156118de57600080fd5b505af11580156118f2573d6000803e3d6000fd5b5050505050565b611901614961565b600954600160201b900463ffffffff161561191b57600080fd5b6008805467ffffffffffffffff60a81b1916600160a81b426001600160401b0381169190910291909117909155604080516020810192909252449082015260600160408051808303601f1901815282825280516020918201206009805467ffffffff000000001916600160201b63ffffffff938416810291909117909155600b80544384166bffffffff00000000ffffffff1990911617600160401b8885168102919091179182905591810483168652041690830152600080516020615c57833981519152910160405180910390a1506009805463ffffffff19164363ffffffff16179055565b6001600160a01b038083166000908152600c6020908152604080832054808452600f909252909120549091163314611a3957600080fd5b6000818152600f602090815260409182902080546001600160a01b0319166001600160a01b03868116918217909255835185815291871692820192909252918201527f8d713d17eefb016edcbb26885517e0fc9fa9fd0dae91a86c7cc59d8b429a5087906060015b60405180910390a1505050565b611ab6614961565b600b805467ffffffff000000001916600160201b63ffffffff848116820292909217928390556040805191840483168252600160401b9093049091166020820152600080516020615c57833981519152910160405180910390a150565b6116b983838360405180602001604052806000815250613adb565b611b36614961565b60166116b982848361582b565b611b4b614961565b600954600160201b900463ffffffff1615801590611b735750600854600160a01b900460ff16155b611b7c57600080fd5b80306001600160a01b031663c68f859d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611bbb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bdf919061579f565b611be99190615945565b600b80544363ffffffff9081166001600160601b0319909216600160201b94821685026bffffffff00000000ffffffff19161791909117600160401b8683168102919091179283905560408051948404831685529204166020830152600080516020615c57833981519152910160405180910390a15050565b600854600090600160a81b90046001600160401b03168103611c845750600090565b6008546000906201518090611ca990600160a81b90046001600160401b0316426158ea565b611cb3919061597f565b611cbe9060016157d2565b9050601363ffffffff82161115611cd3575060135b919050565b600854600090600160a81b90046001600160401b03168103611cfc57506000611154565b6000838152601160209081526040808320815160a081018352905463ffffffff8082168352600160201b808304821684870152600160401b830480831685870152600160601b84049092166060850152600160801b90920460ff161515608084015260095493516001600160e01b031960e092831b8116968201969096529190930490921b90921660248201529091906064906032906028016040516020818303038152906040528051906020012060001c611db89190615993565b611dc29190615945565b905081608001518015611dd3575083155b15611de657611de36004826159b6565b90505b949350505050565b600854600160a01b900460ff16611e0457600080fd5b600a5463ffffffff16801580611eed575060405163196b331960e21b815263ffffffff8216600482015230906365accc6490602401602060405180830381865afa158015611e56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e7a919061579f565b60405163196b331960e21b815263ffffffff8481166004830152919091169030906365accc6490602401602060405180830381865afa158015611ec1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ee5919061579f565b63ffffffff16115b15611f0d57600a805463ffffffff841663ffffffff199091161790555050565b600080fd5b5050565b6000611154826149bb565b60008163ffffffff16600003611f3957506000919050565b600854600160a81b90046001600160401b0316600003611f5b57506000919050565b6008544390600160a01b900460ff1615611f7a5750600b5463ffffffff165b63ffffffff8084166000908152600e6020908152604080832081516080810183529054808616808352600160201b8204871694830194909452600160401b8104861692820192909252600160601b909104909316606084015290819003611fe6575060095463ffffffff165b604051633879990f60e11b815263ffffffff8616600482015230906370f3321e906024015b602060405180830381865afa158015612028573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061204c919061579f565b61205682856159d9565b61206091906159f6565b826020015161206f9190615945565b95945050505050565b60095460009063ffffffff1615612141576000306001600160a01b0316635c9302c96040518163ffffffff1660e01b8152600401602060405180830381865afa1580156120c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120ed919061579f565b63ffffffff169050601219810161210f5769010f0cf064dd5920000091505090565b61211a8160136158ea565b6064612127476032615a1e565b612131919061597f565b61213b919061597f565b91505090565b50600090565b600954600160201b900463ffffffff161580159061216f5750600854600160a01b900460ff16155b61217857600080fd5b600163ffffffff8216108015906121965750600363ffffffff821611155b61219f57600080fd5b662386f26fc100003410156121b357600080fd5b63ffffffff82166000908152600f60205260409020546001600160a01b031633146121dd57600080fd5b6000306001600160a01b0316635c9302c96040518163ffffffff1660e01b8152600401602060405180830381865afa15801561221d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612241919061579f565b63ffffffff16905060006122638267ffffffff00000000602087901b166157d2565b60008181526010602090815260409182902082518084019093525463ffffffff808216808552600160201b909204169183019190915291925090156122a757600080fd5b63ffffffff8086166000908152600e6020908152604080832081516080810183529054808616808352600160201b8204871694830194909452600160401b8104861692820192909252600160601b909104909316606084015290919082036123155760095463ffffffff1681525b604051633879990f60e11b815263ffffffff8816600482015230906370f3321e90602401602060405180830381865afa158015612356573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061237a919061579f565b815161238690436159d9565b61239091906159f6565b816020015161239f9190615945565b63ffffffff908116602083810191909152439091168252604080514281840152448183015260e08a901b6001600160e01b031916606082015281516044818303018152606490910190915280519101206000906123ff9061271090615993565b905060001963ffffffff8816016124b8576126ac63ffffffff8216111561244957600360ff169250618ca08260200181815161243b9190615945565b63ffffffff169052506125fc565b61251c63ffffffff8216111561247457600260ff1692506146508260200181815161243b9190615945565b606463ffffffff8216111561249e57600160ff169250610e108260200181815161243b9190615945565b600460ff16925060028260200181815161243b91906159b6565b60011963ffffffff8816016125485761232863ffffffff821611156124f257600360ff169250618ca08260200181815161243b9190615945565b611d4c63ffffffff8216111561251d57600260ff1692506146508260200181815161243b9190615945565b6103e863ffffffff8216111561249e57600160ff169250610e108260200181815161243b9190615945565b60021963ffffffff8816016125fc57611d4c63ffffffff8216111561258257600360ff169250618ca08260200181815161243b9190615945565b61138863ffffffff821611156125ad57600260ff1692506146508260200181815161243b9190615945565b610ce463ffffffff821611156125d857600160ff169250610e108260200181815161243b9190615945565b600460ff1692506002826020018181516125f291906159b6565b63ffffffff169052505b63ffffffff8088168552838116602080870191825260008881526010825260408082208951815495518716600160201b90810267ffffffffffffffff1997881692891692909217919091179091558d86168352600e84529181902087518154948901518984015160608b01518916600160601b0263ffffffff60601b19918a16600160401b029190911667ffffffffffffffff60401b19928a16909602969097169190971617939093179490941617919091179055517f636abfa72cca63b7328bcdf71a434e53c461a4f19abdf441e4ded29b718a4ab590612708908a9089908b90889063ffffffff948516815260208101939093529083166040830152909116606082015260800190565b60405180910390a15050505050505050565b60006001600160a01b038216612743576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b612770614961565b6009805461ffff60601b1916600160601b9515159590950260ff60681b191694909417600160681b931515939093029290921767ffffffffffffffff60701b1916600160701b63ffffffff9283160263ffffffff60901b191617600160901b9290911691909102179055565b600854600090600160a81b90046001600160401b0316810361280057506000919050565b63ffffffff82161580612825575060095463ffffffff600160401b9091048116908316115b1561283257506000919050565b63ffffffff8083166000908152600e6020526040902054600160601b90041660018061285f600a846159b6565b6128699190615945565b61287391906159f6565b9392505050565b612882614961565b61288c6000614a2a565b565b600954600160201b900463ffffffff16158015906128b65750600854600160a01b900460ff16155b6128bf57600080fd5b600163ffffffff8216108015906128dd5750600363ffffffff821611155b6128e657600080fd5b66038d7ea4c680003410156128fa57600080fd5b3361290483611f16565b6001600160a01b03161461291757600080fd5b6000306001600160a01b0316635c9302c96040518163ffffffff1660e01b8152600401602060405180830381865afa158015612957573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061297b919061579f565b63ffffffff169050600061299382602086901b6157d2565b60008181526012602090815260409182902082518084019093525463ffffffff808216808552600160201b909204169183019190915291925090156129d757600080fd5b6000858152601160209081526040808320815160a081018352905463ffffffff808216808452600160201b8304821695840195909552600160401b8204811693830193909352600160601b81049092166060820152600160801b90910460ff1615156080820152908203612a515760095463ffffffff1681525b6040516330e199c760e11b8152600481018890526000602482015230906361c3338e90604401602060405180830381865afa158015612a94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ab8919061579f565b8151612ac490436159d9565b612ace91906159f6565b8160200151612add9190615945565b63ffffffff90811660208301524381168252606082015160405163196b331960e21b81529116600482015260009030906365accc6490602401602060405180830381865afa158015612b33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b57919061579f565b90506000306001600160a01b031663c68f859d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612b99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bbd919061579f565b60405163cceeea9360e01b8152600481018b9052909150600090309063cceeea9390602401602060405180830381865afa158015612bff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c23919061579f565b905060008161271042448e604051602001612c51939291909283526020830191909152604082015260600190565b6040516020818303038152906040528051906020012060001c612c749190615993565b612c7e9190615945565b90508263ffffffff16848660200151612c979190615945565b63ffffffff1610612e795760001963ffffffff8b1601612d53576126ac63ffffffff82161115612ceb57600360ff16955062057e4085602001818151612cdd9190615945565b63ffffffff16905250612ec8565b61251c63ffffffff82161115612d1757600260ff1695506202bf2085602001818151612cdd9190615945565b606463ffffffff82161115612d4257600160ff1695506201194085602001818151612cdd9190615945565b60016080860152600495505b612ec8565b60011963ffffffff8b1601612de65761232863ffffffff82161115612d8e57600360ff16955062057e4085602001818151612cdd9190615945565b611d4c63ffffffff82161115612dba57600260ff1695506202bf2085602001818151612cdd9190615945565b6103e863ffffffff82161115612d4257600160ff1695506201194085602001818151612cdd9190615945565b60021963ffffffff8b1601612d4e57611d4c63ffffffff82161115612e2157600360ff16955062057e4085602001818151612cdd9190615945565b61138863ffffffff82161115612e4d57600260ff1695506202bf2085602001818151612cdd9190615945565b610ce463ffffffff82161115612d4257600160ff1695506201194085602001818151612cdd9190615945565b61251c63ffffffff82161115612ebf576001995083612e9a61546085615945565b612ea491906159d9565b63ffffffff1660208601526000608086015260059550612ec8565b60019950600695505b89876000019063ffffffff16908163ffffffff168152505085876020019063ffffffff16908163ffffffff168152505086601260008a815260200190815260200160002060008201518160000160006101000a81548163ffffffff021916908363ffffffff16021790555060208201518160000160046101000a81548163ffffffff021916908363ffffffff16021790555090505084601160008d815260200190815260200160002060008201518160000160006101000a81548163ffffffff021916908363ffffffff16021790555060208201518160000160046101000a81548163ffffffff021916908363ffffffff16021790555060408201518160000160086101000a81548163ffffffff021916908363ffffffff160217905550606082015181600001600c6101000a81548163ffffffff021916908363ffffffff16021790555060808201518160000160106101000a81548160ff0219169083151502179055509050507f966f82c08199471d6c50d8d53f97d4f2ef68f96877ca3a38a3bff10b55a987328b8a8c896040516130849493929190938452602084019290925263ffffffff908116604084015216606082015260800190565b60405180910390a15050505050505050505050565b6130a1614961565b6019805460ff1916911515919091179055565b6001600160a01b0381166000908152600c60205260409081902054905163f054d32b60e01b815263ffffffff9091166004820152606090309063f054d32b90602401600060405180830381865afa158015613113573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111549190810190615a35565b60606000806131498461271a565b90506000816001600160401b0381111561316557613165615638565b60405190808252806020026020018201604052801561318e578160200160208202803683370190505b50905060015b82841461325c57856001600160a01b03166131ae82611f16565b6001600160a01b03160361325457604051631a79ec5360e31b815260048101829052600090309063d3cf629890602401602060405180830381865afa1580156131fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061321f919061579f565b63ffffffff16905080602083901b01838680600101975081518110613246576132466158fd565b602002602001018181525050505b600101613194565b50949350505050565b61326d614961565b600954600160201b900463ffffffff16158015906132955750600854600160a01b900460ff16155b61329e57600080fd5b600854600160a01b900460ff16156132b557600080fd5b306001600160a01b031663c68f859d6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156132f3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613317919061579f565b600b80544363ffffffff9081166001600160601b0319909216600160201b94821685026bffffffff00000000ffffffff19161791909117918290556040805193830482168452600160401b909204166020830152600080516020615c57833981519152910160405180910390a16008805460ff60a01b1916600160a01b179055565b6133a1614961565b60186116b982848361582b565b60606003805461116990615765565b600954600160601b900460ff166133d357600080fd5b67016345785d8a00003410156133e857600080fd5b6001600160a01b0381166000908152600c60205260409020541561340b57600080fd5b6040516301ffc9a760e01b81526380ac58cd60e01b60048201526001600160a01b038216906301ffc9a790602401602060405180830381865afa158015613456573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061347a9190615b14565b61348357600080fd5b60095461349e90600160401b900463ffffffff166001615945565b600980546bffffffff0000000000000000198116600160401b63ffffffff94851681029182179384905560408051608081018252600080825260208083018290528284018281526060808501939093528451428184015244818701526001600160601b03198c851b1693810193909352845180840360540181526074909301909452815191012087169091529304841693918216911617156135445763ffffffff431681525b6000828152600d6020908152604080832080546001600160a01b03199081166001600160a01b038916908117909255818552600c8452828520879055868552600e84528285208651815488870151898701516060808c015163ffffffff95861667ffffffffffffffff1990951694909417600160201b938616939093029290921767ffffffffffffffff60401b1916600160401b9185169190910263ffffffff60601b191617600160601b939092169290920217909155600f855294839020805433921682179055825187815293840191909152908201527f1156432fc8b74a36fd7dce5cf111d3f8e885f68bf87898604bc5a06e49943bfe9101611aa1565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600954600160201b900463ffffffff16158015906136d85750600854600160a01b900460ff16155b6136e157600080fd5b336136eb82611f16565b6001600160a01b0316146136fe57600080fd5b600954600160b01b900463ffffffff1661371757600080fd5b6000818152601160209081526040808320815160a081018352905463ffffffff808216808452600160201b8304821695840195909552600160401b8204811693830193909352600160601b81049092166060820152600160801b90910460ff161515608082015291036137905760095463ffffffff1681525b6040516330e199c760e11b8152600481018390526000602482015230906361c3338e90604401602060405180830381865afa1580156137d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137f7919061579f565b815161380390436159d9565b61380d91906159f6565b816020015161381c9190615945565b63ffffffff90811660208301524381168252606082015160405163196b331960e21b81529116600482015260009030906365accc6490602401602060405180830381865afa158015613872573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613896919061579f565b905060008183602001516138aa9190615945565b90506000306001600160a01b031663c68f859d6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156138ec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613910919061579f565b60095490915060009061393890600160b01b900463ffffffff16678ac7230489e8000061597f565b90508163ffffffff168363ffffffff1610158015613957575084608001515b1561396e5761396760028261597f565b90506139b8565b8163ffffffff168363ffffffff1610156139aa57836139906201194084615945565b61399a91906159d9565b63ffffffff1660208601526139b8565b6139b5816005615a1e565b90505b600060808601526009546139db90600190600160b01b900463ffffffff166159d9565b6009805463ffffffff928316600160b01b0263ffffffff60b01b1990911617905560008781526011602090815260409182902088518154928a0151938a015160608b015160808c01511515600160801b0260ff60801b19918816600160601b0263ffffffff60601b19938916600160401b029390931667ffffffffffffffff60401b19978916600160201b0267ffffffffffffffff199097169490981693909317949094179490941694909417929092171691909117905534811115613aa057600080fd5b6040518681527f7df0e707f1d7d12907aac5841c3e7ff599b0980288f65b79e618691835322cc29060200160405180910390a1505050505050565b613ae68484846113eb565b6001600160a01b0383163b15613b1f57613b0284848484614a7c565b613b1f576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b613b30338233614b67565b50565b61288c33600033614b67565b613b47614961565b600b54613b5d90610e109063ffffffff16615945565b63ffffffff164363ffffffff1611613b7457600080fd5b6000601b5447601a54613b8791906157d2565b613b9191906158ea565b905080601b54613ba191906157d2565b601b5560006064613bb383601e615a1e565b613bbd919061597f565b905060006064613bce846014615a1e565b613bd8919061597f565b9050600081613be784866158ea565b613bf191906158ea565b905080601c6000828254613c0591906157d2565b9250508190555081601d6000828254613c1e91906157d2565b9250508190555082601e6000828254613c3791906157d2565b909155505050505050565b600854600090600160a01b900460ff1615613c6b5750600b54600160201b900463ffffffff1690565b600b5463ffffffff600160401b8204811691613c889116436159d9565b613c9291906159f6565b600b54613cac9190600160201b900463ffffffff16615945565b905090565b6060613cbc8261492c565b613cc557600080fd5b600854600160a81b90046001600160401b0316600003613d715760178054613cec90615765565b80601f0160208091040260200160405190810160405280929190818152602001828054613d1890615765565b8015613d655780601f10613d3a57610100808354040283529160200191613d65565b820191906000526020600020905b815481529060010190602001808311613d4857829003601f168201915b50505050509050919050565b600060168054613d8090615765565b80601f0160208091040260200160405190810160405280929190818152602001828054613dac90615765565b8015613df95780601f10613dce57610100808354040283529160200191613df9565b820191906000526020600020905b815481529060010190602001808311613ddc57829003601f168201915b505050505090506000604051806040016040528060018152602001600960fb1b8152509050306001600160a01b031663c68f859d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015613e5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e80919061579f565b604051631a79ec5360e31b81526004810186905263ffffffff9190911690309063d3cf629890602401602060405180830381865afa158015613ec6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613eea919061579f565b63ffffffff161015613f1057506040805180820190915260018152602d60f91b60208201525b60195460ff16156140985760405163cceeea9360e01b815260048101859052600090309063cceeea9390602401602060405180830381865afa158015613f5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f7e919061579f565b6040516330e199c760e11b8152600481018790526001602482015290915060009030906361c3338e90604401602060405180830381865afa158015613fc7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613feb919061579f565b9050600084511161400b576040518060200160405280600081525061408e565b83836140168861508e565b604051806040016040528060018152602001602f60f81b81525061403f8563ffffffff1661508e565b604051806040016040528060018152602001602f60f81b8152506140688863ffffffff1661508e565b60405160200161407e9796959493929190615b31565b6040516020818303038152906040525b9695505050505050565b60008251116140b65760405180602001604052806000815250611de6565b81816140c18661508e565b6040516020016140d393929190615bc3565b604051602081830303815290604052949350505050565b600854600090600160a81b90046001600160401b0316810361410e57506000919050565b6000828152601160209081526040808320815160a081018352905463ffffffff8082168352600160201b808304821684870152600160401b830480831685870152600160601b8404909216606085015260ff600160801b9093049290921615156080840152600954845192900460e090811b6001600160e01b03199081168488015291901b16602482015282516008818303018152602890910190925281519190920120909190611de6906103e890615993565b60006141cd8261492c565b6141d657600080fd5b600854600160a81b90046001600160401b03166000036141f857506000919050565b6008544390600160a01b900460ff16156142175750600b5463ffffffff165b6000838152601160209081526040808320815160a081018352905463ffffffff808216808452600160201b8304821695840195909552600160401b8204811693830193909352600160601b81049092166060820152600160801b90910460ff161515608082015291819003614291575060095463ffffffff165b606082015160405163196b331960e21b815263ffffffff909116600482015230906365accc6490602401602060405180830381865afa1580156142d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906142fc919061579f565b6040516330e199c760e11b8152600481018790526000602482015230906361c3338e90604401602060405180830381865afa15801561433f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614363919061579f565b61436d83866159d9565b61437791906159f6565b83602001516143869190615945565b61206f9190615945565b6001600160a01b0381166000908152600c602052604080822054905163196b331960e21b815263ffffffff909116600482015230906365accc6490602401602060405180830381865afa1580156143eb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611154919061579f565b600854600160a01b900460ff1661442557600080fd5b600954600160d01b900463ffffffff1680158061450f5750604051631a79ec5360e31b815260048101829052309063d3cf629890602401602060405180830381865afa158015614479573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061449d919061579f565b604051631a79ec5360e31b81526004810184905263ffffffff9190911690309063d3cf629890602401602060405180830381865afa1580156144e3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614507919061579f565b63ffffffff16115b15611f0d576009805463ffffffff8416600160d01b0263ffffffff60d01b199091161790555050565b601554604051634e1cade160e11b81523360048201526001600160a01b03838116602483015290911690639c395bc290604401602060405180830381865afa158015614588573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145ac9190615b14565b8061462e575060155460405163090c9a2d60e41b81523360048201526001600160a01b0383811660248301528481166044830152909116906390c9a2d090606401602060405180830381865afa15801561460a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061462e9190615b14565b61463757600080fd5b611f12338383614b67565b60606018805461116990615765565b600061465c8261492c565b61466557600080fd5b600854600160a81b90046001600160401b031660000361468757506000919050565b6008544390600160a01b900460ff16156146a65750600b5463ffffffff165b6000838152601160209081526040808320815160a081018352905463ffffffff808216808452600160201b8304821695840195909552600160401b8204811693830193909352600160601b81049092166060820152600160801b90910460ff161515608082015291819003614720575060095463ffffffff165b6040516330e199c760e11b8152600481018690526000602482015230906361c3338e9060440161200b565b60606000306001600160a01b0316635c9302c96040518163ffffffff1660e01b8152600401602060405180830381865afa15801561478d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906147b1919061579f565b63ffffffff1690506000816001600160401b038111156147d3576147d3615638565b60405190808252806020026020018201604052801561481857816020015b60408051808201909152600080825260208201528152602001906001900390816147f15790505b50905060015b82811161181a57601060006148418367ffffffff0000000060208a901b166157d2565b8152602080820192909252604090810160002081518083019092525463ffffffff8082168352600160201b9091041691810191909152826148836001846158ea565b81518110614893576148936158fd565b602002602001018190525080806148a990615913565b91505061481e565b6148b9614961565b6001600160a01b0381166149235760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b613b3081614a2a565b600081600111158015614940575060005482105b8015611154575050600090815260046020526040902054600160e01b161590565b6008546001600160a01b0316331461288c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161491a565b60008180600111614a1157600054811015614a115760008181526004602052604081205490600160e01b82169003614a0f575b806000036128735750600019016000818152600460205260409020546149ee565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290614ab1903390899088908890600401615c06565b6020604051808303816000875af1925050508015614aec575060408051601f3d908101601f19168201909252614ae991810190615c39565b60015b614b4a573d808015614b1a576040519150601f19603f3d011682016040523d82523d6000602084013e614b1f565b606091505b508051600003614b42576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6000614b7c6001546000546000199190030190565b614b879060016157d2565b9050611388811115614b9857600080fd5b6001600160a01b0383166000908152600c6020526040902054600954600160601b900460ff168015614bd0575060008163ffffffff16115b80614be45750600954600160681b900460ff165b614bed57600080fd5b6000614c1063ffffffff8316640100000000600160c01b03602087901b166157d2565b60008181526013602052604090205460095491925090600160701b900463ffffffff16614c3e8260016157d2565b1115614c4957600080fd5b6009546040805160a0810182526000808252602080830182905282840182815260608085018490526080808601949094528551428185015244818801528082018a905286518082039092018252909301909452815191012063ffffffff9081169092529116908115614dae5763ffffffff431681526040805163c68f859d60e01b81529051606491309163c68f859d916004808201926020929091908290030181865afa158015614cfe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614d22919061579f565b614d2d90606e6159f6565b614d3791906159b6565b63ffffffff16602080830191909152604080516319885c3960e21b81529051309263662170e492600480820193918290030181865afa158015614d7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614da2919061592c565b341015614dae57600080fd5b63ffffffff851615614fc7576040516370a0823160e01b81526001600160a01b038881166004830152600091908a16906370a0823190602401602060405180830381865afa158015614e04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614e28919061592c565b11614e3257600080fd5b63ffffffff8086166000908152600e6020908152604091829020825160808101845290548085168252600160201b8104851692820192909252600160401b8204841692810192909252600160601b900490911660608201819052614e97906001615945565b63ffffffff90811660608301819052600954600160901b90049091161015614ebe57600080fd5b8215614f3b5760405163196b331960e21b815263ffffffff8716600482015230906365accc6490602401602060405180830381865afa158015614f05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614f29919061579f565b63ffffffff9081166020830152431681525b63ffffffff80871660608085018290526000918252600e602090815260409283902085518154928701519487015196909301518516600160601b0263ffffffff60601b19968616600160401b029690961667ffffffffffffffff60401b19948616600160201b0267ffffffffffffffff1990931693909516929092171791909116919091179190911790555b614fd28960016150d2565b614fdd8360016157d2565b600094855260136020908152604080872092909255968552601187529384902081518154978301519583015160608401516080909401511515600160801b0260ff60801b1963ffffffff958616600160601b0263ffffffff60601b19938716600160401b029390931667ffffffffffffffff60401b19998716600160201b0267ffffffffffffffff19909c169690941695909517999099179690961617949094171694909417909155505050505050565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806150a85750819003601f19909101908152919050565b611f128282604051806020016040528060008152506150f1838361514d565b6001600160a01b0383163b156116b9576000548281035b61511b6000868380600101945086614a7c565b615138576040516368d2bf6b60e11b815260040160405180910390fd5b8181106151085781600054146118f257600080fd5b60008054908290036151725760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461522157808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016151e9565b508160000361524257604051622e076360e81b815260040160405180910390fd5b60005550505050565b6001600160e01b031981168114613b3057600080fd5b60006020828403121561527357600080fd5b81356128738161524b565b60005b83811015615299578181015183820152602001615281565b50506000910152565b600081518084526152ba81602086016020860161527e565b601f01601f19169290920160200192915050565b60208152600061287360208301846152a2565b6000602082840312156152f357600080fd5b5035919050565b80356001600160a01b0381168114611cd357600080fd5b6000806040838503121561532457600080fd5b61532d836152fa565b946020939093013593505050565b63ffffffff81168114613b3057600080fd5b60006020828403121561535f57600080fd5b81356128738161533b565b60008060006060848603121561537f57600080fd5b615388846152fa565b9250615396602085016152fa565b9150604084013590509250925092565b600080602083850312156153b957600080fd5b82356001600160401b03808211156153d057600080fd5b818501915085601f8301126153e457600080fd5b8135818111156153f357600080fd5b86602082850101111561540557600080fd5b60209290920196919550909350505050565b602080825282518282018190526000919060409081850190868401855b82811015615463578151805163ffffffff90811686529087015116868501529284019290850190600101615434565b5091979650505050505050565b6000806040838503121561548357600080fd5b61548c836152fa565b915061549a602084016152fa565b90509250929050565b600080604083850312156154b657600080fd5b82356154c18161533b565b915060208301356154d18161533b565b809150509250929050565b8015158114613b3057600080fd5b600080604083850312156154fd57600080fd5b8235915060208301356154d1816154dc565b60006020828403121561552157600080fd5b612873826152fa565b6000806000806080858703121561554057600080fd5b843561554b816154dc565b9350602085013561555b816154dc565b9250604085013561556b8161533b565b9150606085013561557b8161533b565b939692955090935050565b6000806040838503121561559957600080fd5b8235915060208301356154d18161533b565b6000602082840312156155bd57600080fd5b8135612873816154dc565b6020808252825182820181905260009190848201906040850190845b81811015615600578351835292840192918401916001016155e4565b50909695505050505050565b6000806040838503121561561f57600080fd5b615628836152fa565b915060208301356154d1816154dc565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b038111828210171561567057615670615638565b60405290565b604051601f8201601f191681016001600160401b038111828210171561569e5761569e615638565b604052919050565b600080600080608085870312156156bc57600080fd5b6156c5856152fa565b935060206156d48187016152fa565b93506040860135925060608601356001600160401b03808211156156f757600080fd5b818801915088601f83011261570b57600080fd5b81358181111561571d5761571d615638565b61572f601f8201601f19168501615676565b9150808252898482850101111561574557600080fd5b808484018584013760008482840101525080935050505092959194509250565b600181811c9082168061577957607f821691505b60208210810361579957634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156157b157600080fd5b81516128738161533b565b634e487b7160e01b600052601160045260246000fd5b80820180821115611154576111546157bc565b601f8211156116b957600081815260208120601f850160051c8101602086101561580c5750805b601f850160051c820191505b8181101561157c57828155600101615818565b6001600160401b0383111561584257615842615638565b615856836158508354615765565b836157e5565b6000601f84116001811461588a57600085156158725750838201355b600019600387901b1c1916600186901b1783556118f2565b600083815260209020601f19861690835b828110156158bb578685013582556020948501946001909201910161589b565b50868210156158d85760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81810381811115611154576111546157bc565b634e487b7160e01b600052603260045260246000fd5b600060018201615925576159256157bc565b5060010190565b60006020828403121561593e57600080fd5b5051919050565b63ffffffff818116838216019080821115615962576159626157bc565b5092915050565b634e487b7160e01b600052601260045260246000fd5b60008261598e5761598e615969565b500490565b600063ffffffff808416806159aa576159aa615969565b92169190910692915050565b600063ffffffff808416806159cd576159cd615969565b92169190910492915050565b63ffffffff828116828216039080821115615962576159626157bc565b63ffffffff818116838216028082169190828114615a1657615a166157bc565b505092915050565b8082028115828204841417611154576111546157bc565b60006020808385031215615a4857600080fd5b82516001600160401b0380821115615a5f57600080fd5b818501915085601f830112615a7357600080fd5b815181811115615a8557615a85615638565b615a93848260051b01615676565b818152848101925060069190911b830184019087821115615ab357600080fd5b928401925b81841015615b095760408489031215615ad15760008081fd5b615ad961564e565b8451615ae48161533b565b815284860151615af38161533b565b8187015283526040939093019291840191615ab8565b979650505050505050565b600060208284031215615b2657600080fd5b8151612873816154dc565b600088516020615b448285838e0161527e565b895191840191615b578184848e0161527e565b8951920191615b698184848d0161527e565b8851920191615b7b8184848c0161527e565b8751920191615b8d8184848b0161527e565b8651920191615b9f8184848a0161527e565b8551920191615bb1818484890161527e565b919091019a9950505050505050505050565b60008451615bd581846020890161527e565b845190830190615be981836020890161527e565b8451910190615bfc81836020880161527e565b0195945050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061408e908301846152a2565b600060208284031215615c4b57600080fd5b81516128738161524b56fe9f5413470c7e92579bd7b4c28131c1b171d96a9bc40557bb4f0f98671c501e26a264697066735822122045e532da4d4afc40da7fffef01105c5f2640add56c06310244bed7e26b8c905c64736f6c63430008110033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002668747470733a2f2f6465616477696c6c726973652e78797a2f636f6e74726163742e6a736f6e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002768747470733a2f2f6465616477696c6c726973652e78797a2f70726572657665616c2e6a736f6e00000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106104aa5760003560e01c8063740ea9a611610269578063c87b56dd1161014e578063e0298a29116100c6578063ed99947c11610082578063ed99947c14611007578063ee00c8ad14611027578063f054d32b14611065578063f2fde38b14611085578063fa1100f4146110a5578063ffd5a085146110d257005b8063e0298a2914610f29578063e40811e714610f3c578063e8a3d48514610f72578063e8b6a0d814610f87578063e985e9c514610fa3578063ea6a09fe14610fec57005b8063d30b8f9311610115578063d30b8f9314610e5d578063d3cf629814610e81578063d68e813f14610ea1578063dbe447c814610ec5578063dc9d8c6314610ee5578063dcb73c9514610f0557005b8063c87b56dd14610d8c578063c9e87b0214610dac578063cceeea9314610dc2578063d059b4ef14610de2578063d19c25dc14610e0357005b806395d89b41116101e1578063bcc9ca5b116101a8578063bcc9ca5b14610cf9578063be478af514610d1a578063bedad19e14610d2d578063c1e4d03414610d35578063c5f7e37814610d4a578063c68f859d14610d7757005b806395d89b4114610c8b5780639adb6c6a14610ca0578063a22cb46514610cb3578063ac596dac14610cd3578063b88d4fde14610ce657005b80637fe93faf116102305780637fe93faf14610bca5780638462151c14610bea57806386ec617714610c17578063878443ac14610c2c5780638da5cb5b14610c4d578063938e3d7b14610c6b57005b8063740ea9a614610b1b5780637417800014610b5a57806379d7e06614610b705780637b1aa7de14610b835780637b4547d814610baa57005b8063439787851161038f5780636352211e116103075780636b56652a116102ce5780636b56652a14610a785780636ce01cb114610a9357806370a0823114610aa657806370cd244914610ac657806370f3321e14610ae6578063715018a614610b0657005b80636352211e1461096f57806365accc641461098f578063662170e4146109af57806367924741146109c45780636afd7084146109e157005b806359ad00ff1161035657806359ad00ff146108625780635a3ed469146108e45780635b5c106d146109005780635c9302c91461091a57806361c3338e1461092f578063621d283f1461094f57005b806343978785146107bb5780634b319713146107e857806355f804b3146107fe5780635752a6461461081e578063587b36181461084257005b806329da69201161042257806335f5b97a116103e957806335f5b97a14610706578063385ad0a4146107335780633cffa3f7146107485780633e1b329e14610768578063400e37511461078857806342842e0e146107a857005b806329da6920146106315780632e1a7d4d1461068c57806332cb6b0c146106ac5780633574a2dd146106c257806335817cbc146106e257005b806318160ddd1161047157806318160ddd1461058e5780631ae1bebc146105b55780631c939521146105cb5780631fbf6f5c146105e857806323b872dd14610608578063243389bc1461061b57005b806301ffc9a7146104b357806306fdde03146104e8578063081812fc1461050a578063095ea7b3146105425780630db275a71461055557005b366104b157005b005b3480156104bf57600080fd5b506104d36104ce366004615261565b611108565b60405190151581526020015b60405180910390f35b3480156104f457600080fd5b506104fd61115a565b6040516104df91906152ce565b34801561051657600080fd5b5061052a6105253660046152e1565b6111ec565b6040516001600160a01b0390911681526020016104df565b6104b1610550366004615311565b611230565b34801561056157600080fd5b5060095461057990600160401b900463ffffffff1681565b60405163ffffffff90911681526020016104df565b34801561059a57600080fd5b5060015460005403600019015b6040519081526020016104df565b3480156105c157600080fd5b506105a7601e5481565b3480156105d757600080fd5b506009546105799063ffffffff1681565b3480156105f457600080fd5b506104b161060336600461534d565b6112d0565b6104b161061636600461536a565b6113eb565b34801561062757600080fd5b506105a7601b5481565b34801561063d57600080fd5b5061066f61064c3660046152e1565b60126020526000908152604090205463ffffffff80821691600160201b90041682565b6040805163ffffffff9384168152929091166020830152016104df565b34801561069857600080fd5b506104b16106a73660046152e1565b611584565b3480156106b857600080fd5b506105a761138881565b3480156106ce57600080fd5b506104b16106dd3660046153a6565b6116a4565b3480156106ee57600080fd5b5060095461057990600160901b900463ffffffff1681565b34801561071257600080fd5b506107266107213660046152e1565b6116be565b6040516104df9190615417565b34801561073f57600080fd5b506104b1611822565b34801561075457600080fd5b506104b161076336600461534d565b6118f9565b34801561077457600080fd5b506104b1610783366004615470565b611a02565b34801561079457600080fd5b506104b16107a336600461534d565b611aae565b6104b16107b636600461536a565b611b13565b3480156107c757600080fd5b506104fd604051806040016040528060018152602001602f60f81b81525081565b3480156107f457600080fd5b506105a7601a5481565b34801561080a57600080fd5b506104b16108193660046153a6565b611b2e565b34801561082a57600080fd5b5060095461057990600160201b900463ffffffff1681565b34801561084e57600080fd5b506104b161085d3660046154a3565b611b43565b34801561086e57600080fd5b506108b461087d3660046152e1565b600e6020526000908152604090205463ffffffff80821691600160201b8104821691600160401b8204811691600160601b90041684565b6040805163ffffffff958616815293851660208501529184169183019190915290911660608201526080016104df565b3480156108f057600080fd5b506105a767016345785d8a000081565b34801561090c57600080fd5b506019546104d39060ff1681565b34801561092657600080fd5b50610579611c62565b34801561093b57600080fd5b5061057961094a3660046154ea565b611cd8565b34801561095b57600080fd5b506104b161096a36600461534d565b611dee565b34801561097b57600080fd5b5061052a61098a3660046152e1565b611f16565b34801561099b57600080fd5b506105796109aa36600461534d565b611f21565b3480156109bb57600080fd5b506105a7612078565b3480156109d057600080fd5b50600a546105799063ffffffff1681565b3480156109ed57600080fd5b50610a406109fc3660046152e1565b60116020526000908152604090205463ffffffff80821691600160201b8104821691600160401b8204811691600160601b810490911690600160801b900460ff1685565b6040805163ffffffff96871681529486166020860152928516928401929092529092166060820152901515608082015260a0016104df565b348015610a8457600080fd5b506105a7662386f26fc1000081565b6104b1610aa13660046154a3565b612147565b348015610ab257600080fd5b506105a7610ac136600461550f565b61271a565b348015610ad257600080fd5b506104b1610ae136600461552a565b612768565b348015610af257600080fd5b50610579610b0136600461534d565b6127dc565b348015610b1257600080fd5b506104b161287a565b348015610b2757600080fd5b50600854610b4290600160a81b90046001600160401b031681565b6040516001600160401b0390911681526020016104df565b348015610b6657600080fd5b506105a7601c5481565b6104b1610b7e366004615586565b61288e565b348015610b8f57600080fd5b50610b98601381565b60405160ff90911681526020016104df565b348015610bb657600080fd5b506104b1610bc53660046155ab565b613099565b348015610bd657600080fd5b50610726610be536600461550f565b6130b4565b348015610bf657600080fd5b50610c0a610c0536600461550f565b61313b565b6040516104df91906155c8565b348015610c2357600080fd5b506104b1613265565b348015610c3857600080fd5b506008546104d390600160a01b900460ff1681565b348015610c5957600080fd5b506008546001600160a01b031661052a565b348015610c7757600080fd5b506104b1610c863660046153a6565b613399565b348015610c9757600080fd5b506104fd6133ae565b6104b1610cae36600461550f565b6133bd565b348015610cbf57600080fd5b506104b1610cce36600461560c565b613644565b6104b1610ce13660046152e1565b6136b0565b6104b1610cf43660046156a6565b613adb565b348015610d0557600080fd5b506009546104d390600160681b900460ff1681565b6104b1610d2836600461550f565b613b25565b6104b1613b33565b348015610d4157600080fd5b506104b1613b3f565b348015610d5657600080fd5b506105a7610d6536600461550f565b600c6020526000908152604090205481565b348015610d8357600080fd5b50610579613c42565b348015610d9857600080fd5b506104fd610da73660046152e1565b613cb1565b348015610db857600080fd5b506105a7601d5481565b348015610dce57600080fd5b50610579610ddd3660046152e1565b6140ea565b348015610dee57600080fd5b506009546104d390600160601b900460ff1681565b348015610e0f57600080fd5b50600b54610e369063ffffffff80821691600160201b8104821691600160401b9091041683565b6040805163ffffffff948516815292841660208401529216918101919091526060016104df565b348015610e6957600080fd5b5060095461057990600160701b900463ffffffff1681565b348015610e8d57600080fd5b50610579610e9c3660046152e1565b6141c2565b348015610ead57600080fd5b5060095461057990600160d01b900463ffffffff1681565b348015610ed157600080fd5b50610579610ee036600461550f565b614390565b348015610ef157600080fd5b506104b1610f003660046152e1565b61440f565b348015610f1157600080fd5b5060095461057990600160b01b900463ffffffff1681565b6104b1610f37366004615470565b614538565b348015610f4857600080fd5b5061052a610f573660046152e1565b600d602052600090815260409020546001600160a01b031681565b348015610f7e57600080fd5b506104fd614642565b348015610f9357600080fd5b506105a7678ac7230489e8000081565b348015610faf57600080fd5b506104d3610fbe366004615470565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610ff857600080fd5b506105a766038d7ea4c6800081565b34801561101357600080fd5b506105796110223660046152e1565b614651565b34801561103357600080fd5b5061066f6110423660046152e1565b60106020526000908152604090205463ffffffff80821691600160201b90041682565b34801561107157600080fd5b5061072661108036600461534d565b61474b565b34801561109157600080fd5b506104b16110a036600461550f565b6148b1565b3480156110b157600080fd5b506105a76110c03660046152e1565b60136020526000908152604090205481565b3480156110de57600080fd5b5061052a6110ed3660046152e1565b600f602052600090815260409020546001600160a01b031681565b60006301ffc9a760e01b6001600160e01b03198316148061113957506380ac58cd60e01b6001600160e01b03198316145b806111545750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461116990615765565b80601f016020809104026020016040519081016040528092919081815260200182805461119590615765565b80156111e25780601f106111b7576101008083540402835291602001916111e2565b820191906000526020600020905b8154815290600101906020018083116111c557829003601f168201915b5050505050905090565b60006111f78261492c565b611214576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061123b82611f16565b9050336001600160a01b03821614611274576112578133610fbe565b611274576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6112d8614961565b600854600160a01b900460ff166112ee57600080fd5b600854600160a01b900460ff1661130457600080fd5b306001600160a01b031663c68f859d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611342573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611366919061579f565b600b80544363ffffffff9081166001600160601b0319909216600160201b94821685026bffffffff00000000ffffffff19161791909117600160401b8583168102919091179283905560408051948404831685529204166020830152600080516020615c57833981519152910160405180910390a1506008805460ff60a01b19169055565b60006113f6826149bb565b9050836001600160a01b0316816001600160a01b0316146114295760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417611476576114598633610fbe565b61147657604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661149d57604051633a954ecd60e21b815260040160405180910390fd5b80156114a857600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b8416900361153a576001840160008181526004602052604081205490036115385760005481146115385760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b61158c614961565b600080826001036115b7576008546001600160a01b03169150601c5490506000601c81905550611620565b826002036115ef575050600a5463ffffffff166000908152600f6020526040812054601d80549290556001600160a01b031690611620565b826003036116205760095461161090600160d01b900463ffffffff16611f16565b9150601e5490506000601e819055505b6000811161162d57600080fd5b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461167a576040519150601f19603f3d011682016040523d82523d6000602084013e61167f565b606091505b505090508061168d57600080fd5b81601a5461169b91906157d2565b601a5550505050565b6116ac614961565b60176116b982848361582b565b505050565b60606000306001600160a01b0316635c9302c96040518163ffffffff1660e01b8152600401602060405180830381865afa158015611700573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611724919061579f565b63ffffffff1690506000816001600160401b0381111561174657611746615638565b60405190808252806020026020018201604052801561178b57816020015b60408051808201909152600080825260208201528152602001906001900390816117645790505b50905060015b82811161181a57601260006117aa83602089901b6157d2565b8152602080820192909252604090810160002081518083019092525463ffffffff8082168352600160201b9091041691810191909152826117ec6001846158ea565b815181106117fc576117fc6158fd565b6020026020010181905250808061181290615913565b915050611791565b509392505050565b61182a614961565b6014546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611873573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611897919061592c565b601454604051632e1a7d4d60e01b8152600481018390529192506001600160a01b031690632e1a7d4d90602401600060405180830381600087803b1580156118de57600080fd5b505af11580156118f2573d6000803e3d6000fd5b5050505050565b611901614961565b600954600160201b900463ffffffff161561191b57600080fd5b6008805467ffffffffffffffff60a81b1916600160a81b426001600160401b0381169190910291909117909155604080516020810192909252449082015260600160408051808303601f1901815282825280516020918201206009805467ffffffff000000001916600160201b63ffffffff938416810291909117909155600b80544384166bffffffff00000000ffffffff1990911617600160401b8885168102919091179182905591810483168652041690830152600080516020615c57833981519152910160405180910390a1506009805463ffffffff19164363ffffffff16179055565b6001600160a01b038083166000908152600c6020908152604080832054808452600f909252909120549091163314611a3957600080fd5b6000818152600f602090815260409182902080546001600160a01b0319166001600160a01b03868116918217909255835185815291871692820192909252918201527f8d713d17eefb016edcbb26885517e0fc9fa9fd0dae91a86c7cc59d8b429a5087906060015b60405180910390a1505050565b611ab6614961565b600b805467ffffffff000000001916600160201b63ffffffff848116820292909217928390556040805191840483168252600160401b9093049091166020820152600080516020615c57833981519152910160405180910390a150565b6116b983838360405180602001604052806000815250613adb565b611b36614961565b60166116b982848361582b565b611b4b614961565b600954600160201b900463ffffffff1615801590611b735750600854600160a01b900460ff16155b611b7c57600080fd5b80306001600160a01b031663c68f859d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611bbb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bdf919061579f565b611be99190615945565b600b80544363ffffffff9081166001600160601b0319909216600160201b94821685026bffffffff00000000ffffffff19161791909117600160401b8683168102919091179283905560408051948404831685529204166020830152600080516020615c57833981519152910160405180910390a15050565b600854600090600160a81b90046001600160401b03168103611c845750600090565b6008546000906201518090611ca990600160a81b90046001600160401b0316426158ea565b611cb3919061597f565b611cbe9060016157d2565b9050601363ffffffff82161115611cd3575060135b919050565b600854600090600160a81b90046001600160401b03168103611cfc57506000611154565b6000838152601160209081526040808320815160a081018352905463ffffffff8082168352600160201b808304821684870152600160401b830480831685870152600160601b84049092166060850152600160801b90920460ff161515608084015260095493516001600160e01b031960e092831b8116968201969096529190930490921b90921660248201529091906064906032906028016040516020818303038152906040528051906020012060001c611db89190615993565b611dc29190615945565b905081608001518015611dd3575083155b15611de657611de36004826159b6565b90505b949350505050565b600854600160a01b900460ff16611e0457600080fd5b600a5463ffffffff16801580611eed575060405163196b331960e21b815263ffffffff8216600482015230906365accc6490602401602060405180830381865afa158015611e56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e7a919061579f565b60405163196b331960e21b815263ffffffff8481166004830152919091169030906365accc6490602401602060405180830381865afa158015611ec1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ee5919061579f565b63ffffffff16115b15611f0d57600a805463ffffffff841663ffffffff199091161790555050565b600080fd5b5050565b6000611154826149bb565b60008163ffffffff16600003611f3957506000919050565b600854600160a81b90046001600160401b0316600003611f5b57506000919050565b6008544390600160a01b900460ff1615611f7a5750600b5463ffffffff165b63ffffffff8084166000908152600e6020908152604080832081516080810183529054808616808352600160201b8204871694830194909452600160401b8104861692820192909252600160601b909104909316606084015290819003611fe6575060095463ffffffff165b604051633879990f60e11b815263ffffffff8616600482015230906370f3321e906024015b602060405180830381865afa158015612028573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061204c919061579f565b61205682856159d9565b61206091906159f6565b826020015161206f9190615945565b95945050505050565b60095460009063ffffffff1615612141576000306001600160a01b0316635c9302c96040518163ffffffff1660e01b8152600401602060405180830381865afa1580156120c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120ed919061579f565b63ffffffff169050601219810161210f5769010f0cf064dd5920000091505090565b61211a8160136158ea565b6064612127476032615a1e565b612131919061597f565b61213b919061597f565b91505090565b50600090565b600954600160201b900463ffffffff161580159061216f5750600854600160a01b900460ff16155b61217857600080fd5b600163ffffffff8216108015906121965750600363ffffffff821611155b61219f57600080fd5b662386f26fc100003410156121b357600080fd5b63ffffffff82166000908152600f60205260409020546001600160a01b031633146121dd57600080fd5b6000306001600160a01b0316635c9302c96040518163ffffffff1660e01b8152600401602060405180830381865afa15801561221d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612241919061579f565b63ffffffff16905060006122638267ffffffff00000000602087901b166157d2565b60008181526010602090815260409182902082518084019093525463ffffffff808216808552600160201b909204169183019190915291925090156122a757600080fd5b63ffffffff8086166000908152600e6020908152604080832081516080810183529054808616808352600160201b8204871694830194909452600160401b8104861692820192909252600160601b909104909316606084015290919082036123155760095463ffffffff1681525b604051633879990f60e11b815263ffffffff8816600482015230906370f3321e90602401602060405180830381865afa158015612356573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061237a919061579f565b815161238690436159d9565b61239091906159f6565b816020015161239f9190615945565b63ffffffff908116602083810191909152439091168252604080514281840152448183015260e08a901b6001600160e01b031916606082015281516044818303018152606490910190915280519101206000906123ff9061271090615993565b905060001963ffffffff8816016124b8576126ac63ffffffff8216111561244957600360ff169250618ca08260200181815161243b9190615945565b63ffffffff169052506125fc565b61251c63ffffffff8216111561247457600260ff1692506146508260200181815161243b9190615945565b606463ffffffff8216111561249e57600160ff169250610e108260200181815161243b9190615945565b600460ff16925060028260200181815161243b91906159b6565b60011963ffffffff8816016125485761232863ffffffff821611156124f257600360ff169250618ca08260200181815161243b9190615945565b611d4c63ffffffff8216111561251d57600260ff1692506146508260200181815161243b9190615945565b6103e863ffffffff8216111561249e57600160ff169250610e108260200181815161243b9190615945565b60021963ffffffff8816016125fc57611d4c63ffffffff8216111561258257600360ff169250618ca08260200181815161243b9190615945565b61138863ffffffff821611156125ad57600260ff1692506146508260200181815161243b9190615945565b610ce463ffffffff821611156125d857600160ff169250610e108260200181815161243b9190615945565b600460ff1692506002826020018181516125f291906159b6565b63ffffffff169052505b63ffffffff8088168552838116602080870191825260008881526010825260408082208951815495518716600160201b90810267ffffffffffffffff1997881692891692909217919091179091558d86168352600e84529181902087518154948901518984015160608b01518916600160601b0263ffffffff60601b19918a16600160401b029190911667ffffffffffffffff60401b19928a16909602969097169190971617939093179490941617919091179055517f636abfa72cca63b7328bcdf71a434e53c461a4f19abdf441e4ded29b718a4ab590612708908a9089908b90889063ffffffff948516815260208101939093529083166040830152909116606082015260800190565b60405180910390a15050505050505050565b60006001600160a01b038216612743576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b612770614961565b6009805461ffff60601b1916600160601b9515159590950260ff60681b191694909417600160681b931515939093029290921767ffffffffffffffff60701b1916600160701b63ffffffff9283160263ffffffff60901b191617600160901b9290911691909102179055565b600854600090600160a81b90046001600160401b0316810361280057506000919050565b63ffffffff82161580612825575060095463ffffffff600160401b9091048116908316115b1561283257506000919050565b63ffffffff8083166000908152600e6020526040902054600160601b90041660018061285f600a846159b6565b6128699190615945565b61287391906159f6565b9392505050565b612882614961565b61288c6000614a2a565b565b600954600160201b900463ffffffff16158015906128b65750600854600160a01b900460ff16155b6128bf57600080fd5b600163ffffffff8216108015906128dd5750600363ffffffff821611155b6128e657600080fd5b66038d7ea4c680003410156128fa57600080fd5b3361290483611f16565b6001600160a01b03161461291757600080fd5b6000306001600160a01b0316635c9302c96040518163ffffffff1660e01b8152600401602060405180830381865afa158015612957573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061297b919061579f565b63ffffffff169050600061299382602086901b6157d2565b60008181526012602090815260409182902082518084019093525463ffffffff808216808552600160201b909204169183019190915291925090156129d757600080fd5b6000858152601160209081526040808320815160a081018352905463ffffffff808216808452600160201b8304821695840195909552600160401b8204811693830193909352600160601b81049092166060820152600160801b90910460ff1615156080820152908203612a515760095463ffffffff1681525b6040516330e199c760e11b8152600481018890526000602482015230906361c3338e90604401602060405180830381865afa158015612a94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ab8919061579f565b8151612ac490436159d9565b612ace91906159f6565b8160200151612add9190615945565b63ffffffff90811660208301524381168252606082015160405163196b331960e21b81529116600482015260009030906365accc6490602401602060405180830381865afa158015612b33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b57919061579f565b90506000306001600160a01b031663c68f859d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612b99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bbd919061579f565b60405163cceeea9360e01b8152600481018b9052909150600090309063cceeea9390602401602060405180830381865afa158015612bff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c23919061579f565b905060008161271042448e604051602001612c51939291909283526020830191909152604082015260600190565b6040516020818303038152906040528051906020012060001c612c749190615993565b612c7e9190615945565b90508263ffffffff16848660200151612c979190615945565b63ffffffff1610612e795760001963ffffffff8b1601612d53576126ac63ffffffff82161115612ceb57600360ff16955062057e4085602001818151612cdd9190615945565b63ffffffff16905250612ec8565b61251c63ffffffff82161115612d1757600260ff1695506202bf2085602001818151612cdd9190615945565b606463ffffffff82161115612d4257600160ff1695506201194085602001818151612cdd9190615945565b60016080860152600495505b612ec8565b60011963ffffffff8b1601612de65761232863ffffffff82161115612d8e57600360ff16955062057e4085602001818151612cdd9190615945565b611d4c63ffffffff82161115612dba57600260ff1695506202bf2085602001818151612cdd9190615945565b6103e863ffffffff82161115612d4257600160ff1695506201194085602001818151612cdd9190615945565b60021963ffffffff8b1601612d4e57611d4c63ffffffff82161115612e2157600360ff16955062057e4085602001818151612cdd9190615945565b61138863ffffffff82161115612e4d57600260ff1695506202bf2085602001818151612cdd9190615945565b610ce463ffffffff82161115612d4257600160ff1695506201194085602001818151612cdd9190615945565b61251c63ffffffff82161115612ebf576001995083612e9a61546085615945565b612ea491906159d9565b63ffffffff1660208601526000608086015260059550612ec8565b60019950600695505b89876000019063ffffffff16908163ffffffff168152505085876020019063ffffffff16908163ffffffff168152505086601260008a815260200190815260200160002060008201518160000160006101000a81548163ffffffff021916908363ffffffff16021790555060208201518160000160046101000a81548163ffffffff021916908363ffffffff16021790555090505084601160008d815260200190815260200160002060008201518160000160006101000a81548163ffffffff021916908363ffffffff16021790555060208201518160000160046101000a81548163ffffffff021916908363ffffffff16021790555060408201518160000160086101000a81548163ffffffff021916908363ffffffff160217905550606082015181600001600c6101000a81548163ffffffff021916908363ffffffff16021790555060808201518160000160106101000a81548160ff0219169083151502179055509050507f966f82c08199471d6c50d8d53f97d4f2ef68f96877ca3a38a3bff10b55a987328b8a8c896040516130849493929190938452602084019290925263ffffffff908116604084015216606082015260800190565b60405180910390a15050505050505050505050565b6130a1614961565b6019805460ff1916911515919091179055565b6001600160a01b0381166000908152600c60205260409081902054905163f054d32b60e01b815263ffffffff9091166004820152606090309063f054d32b90602401600060405180830381865afa158015613113573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111549190810190615a35565b60606000806131498461271a565b90506000816001600160401b0381111561316557613165615638565b60405190808252806020026020018201604052801561318e578160200160208202803683370190505b50905060015b82841461325c57856001600160a01b03166131ae82611f16565b6001600160a01b03160361325457604051631a79ec5360e31b815260048101829052600090309063d3cf629890602401602060405180830381865afa1580156131fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061321f919061579f565b63ffffffff16905080602083901b01838680600101975081518110613246576132466158fd565b602002602001018181525050505b600101613194565b50949350505050565b61326d614961565b600954600160201b900463ffffffff16158015906132955750600854600160a01b900460ff16155b61329e57600080fd5b600854600160a01b900460ff16156132b557600080fd5b306001600160a01b031663c68f859d6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156132f3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613317919061579f565b600b80544363ffffffff9081166001600160601b0319909216600160201b94821685026bffffffff00000000ffffffff19161791909117918290556040805193830482168452600160401b909204166020830152600080516020615c57833981519152910160405180910390a16008805460ff60a01b1916600160a01b179055565b6133a1614961565b60186116b982848361582b565b60606003805461116990615765565b600954600160601b900460ff166133d357600080fd5b67016345785d8a00003410156133e857600080fd5b6001600160a01b0381166000908152600c60205260409020541561340b57600080fd5b6040516301ffc9a760e01b81526380ac58cd60e01b60048201526001600160a01b038216906301ffc9a790602401602060405180830381865afa158015613456573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061347a9190615b14565b61348357600080fd5b60095461349e90600160401b900463ffffffff166001615945565b600980546bffffffff0000000000000000198116600160401b63ffffffff94851681029182179384905560408051608081018252600080825260208083018290528284018281526060808501939093528451428184015244818701526001600160601b03198c851b1693810193909352845180840360540181526074909301909452815191012087169091529304841693918216911617156135445763ffffffff431681525b6000828152600d6020908152604080832080546001600160a01b03199081166001600160a01b038916908117909255818552600c8452828520879055868552600e84528285208651815488870151898701516060808c015163ffffffff95861667ffffffffffffffff1990951694909417600160201b938616939093029290921767ffffffffffffffff60401b1916600160401b9185169190910263ffffffff60601b191617600160601b939092169290920217909155600f855294839020805433921682179055825187815293840191909152908201527f1156432fc8b74a36fd7dce5cf111d3f8e885f68bf87898604bc5a06e49943bfe9101611aa1565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600954600160201b900463ffffffff16158015906136d85750600854600160a01b900460ff16155b6136e157600080fd5b336136eb82611f16565b6001600160a01b0316146136fe57600080fd5b600954600160b01b900463ffffffff1661371757600080fd5b6000818152601160209081526040808320815160a081018352905463ffffffff808216808452600160201b8304821695840195909552600160401b8204811693830193909352600160601b81049092166060820152600160801b90910460ff161515608082015291036137905760095463ffffffff1681525b6040516330e199c760e11b8152600481018390526000602482015230906361c3338e90604401602060405180830381865afa1580156137d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137f7919061579f565b815161380390436159d9565b61380d91906159f6565b816020015161381c9190615945565b63ffffffff90811660208301524381168252606082015160405163196b331960e21b81529116600482015260009030906365accc6490602401602060405180830381865afa158015613872573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613896919061579f565b905060008183602001516138aa9190615945565b90506000306001600160a01b031663c68f859d6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156138ec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613910919061579f565b60095490915060009061393890600160b01b900463ffffffff16678ac7230489e8000061597f565b90508163ffffffff168363ffffffff1610158015613957575084608001515b1561396e5761396760028261597f565b90506139b8565b8163ffffffff168363ffffffff1610156139aa57836139906201194084615945565b61399a91906159d9565b63ffffffff1660208601526139b8565b6139b5816005615a1e565b90505b600060808601526009546139db90600190600160b01b900463ffffffff166159d9565b6009805463ffffffff928316600160b01b0263ffffffff60b01b1990911617905560008781526011602090815260409182902088518154928a0151938a015160608b015160808c01511515600160801b0260ff60801b19918816600160601b0263ffffffff60601b19938916600160401b029390931667ffffffffffffffff60401b19978916600160201b0267ffffffffffffffff199097169490981693909317949094179490941694909417929092171691909117905534811115613aa057600080fd5b6040518681527f7df0e707f1d7d12907aac5841c3e7ff599b0980288f65b79e618691835322cc29060200160405180910390a1505050505050565b613ae68484846113eb565b6001600160a01b0383163b15613b1f57613b0284848484614a7c565b613b1f576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b613b30338233614b67565b50565b61288c33600033614b67565b613b47614961565b600b54613b5d90610e109063ffffffff16615945565b63ffffffff164363ffffffff1611613b7457600080fd5b6000601b5447601a54613b8791906157d2565b613b9191906158ea565b905080601b54613ba191906157d2565b601b5560006064613bb383601e615a1e565b613bbd919061597f565b905060006064613bce846014615a1e565b613bd8919061597f565b9050600081613be784866158ea565b613bf191906158ea565b905080601c6000828254613c0591906157d2565b9250508190555081601d6000828254613c1e91906157d2565b9250508190555082601e6000828254613c3791906157d2565b909155505050505050565b600854600090600160a01b900460ff1615613c6b5750600b54600160201b900463ffffffff1690565b600b5463ffffffff600160401b8204811691613c889116436159d9565b613c9291906159f6565b600b54613cac9190600160201b900463ffffffff16615945565b905090565b6060613cbc8261492c565b613cc557600080fd5b600854600160a81b90046001600160401b0316600003613d715760178054613cec90615765565b80601f0160208091040260200160405190810160405280929190818152602001828054613d1890615765565b8015613d655780601f10613d3a57610100808354040283529160200191613d65565b820191906000526020600020905b815481529060010190602001808311613d4857829003601f168201915b50505050509050919050565b600060168054613d8090615765565b80601f0160208091040260200160405190810160405280929190818152602001828054613dac90615765565b8015613df95780601f10613dce57610100808354040283529160200191613df9565b820191906000526020600020905b815481529060010190602001808311613ddc57829003601f168201915b505050505090506000604051806040016040528060018152602001600960fb1b8152509050306001600160a01b031663c68f859d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015613e5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e80919061579f565b604051631a79ec5360e31b81526004810186905263ffffffff9190911690309063d3cf629890602401602060405180830381865afa158015613ec6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613eea919061579f565b63ffffffff161015613f1057506040805180820190915260018152602d60f91b60208201525b60195460ff16156140985760405163cceeea9360e01b815260048101859052600090309063cceeea9390602401602060405180830381865afa158015613f5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f7e919061579f565b6040516330e199c760e11b8152600481018790526001602482015290915060009030906361c3338e90604401602060405180830381865afa158015613fc7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613feb919061579f565b9050600084511161400b576040518060200160405280600081525061408e565b83836140168861508e565b604051806040016040528060018152602001602f60f81b81525061403f8563ffffffff1661508e565b604051806040016040528060018152602001602f60f81b8152506140688863ffffffff1661508e565b60405160200161407e9796959493929190615b31565b6040516020818303038152906040525b9695505050505050565b60008251116140b65760405180602001604052806000815250611de6565b81816140c18661508e565b6040516020016140d393929190615bc3565b604051602081830303815290604052949350505050565b600854600090600160a81b90046001600160401b0316810361410e57506000919050565b6000828152601160209081526040808320815160a081018352905463ffffffff8082168352600160201b808304821684870152600160401b830480831685870152600160601b8404909216606085015260ff600160801b9093049290921615156080840152600954845192900460e090811b6001600160e01b03199081168488015291901b16602482015282516008818303018152602890910190925281519190920120909190611de6906103e890615993565b60006141cd8261492c565b6141d657600080fd5b600854600160a81b90046001600160401b03166000036141f857506000919050565b6008544390600160a01b900460ff16156142175750600b5463ffffffff165b6000838152601160209081526040808320815160a081018352905463ffffffff808216808452600160201b8304821695840195909552600160401b8204811693830193909352600160601b81049092166060820152600160801b90910460ff161515608082015291819003614291575060095463ffffffff165b606082015160405163196b331960e21b815263ffffffff909116600482015230906365accc6490602401602060405180830381865afa1580156142d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906142fc919061579f565b6040516330e199c760e11b8152600481018790526000602482015230906361c3338e90604401602060405180830381865afa15801561433f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614363919061579f565b61436d83866159d9565b61437791906159f6565b83602001516143869190615945565b61206f9190615945565b6001600160a01b0381166000908152600c602052604080822054905163196b331960e21b815263ffffffff909116600482015230906365accc6490602401602060405180830381865afa1580156143eb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611154919061579f565b600854600160a01b900460ff1661442557600080fd5b600954600160d01b900463ffffffff1680158061450f5750604051631a79ec5360e31b815260048101829052309063d3cf629890602401602060405180830381865afa158015614479573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061449d919061579f565b604051631a79ec5360e31b81526004810184905263ffffffff9190911690309063d3cf629890602401602060405180830381865afa1580156144e3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614507919061579f565b63ffffffff16115b15611f0d576009805463ffffffff8416600160d01b0263ffffffff60d01b199091161790555050565b601554604051634e1cade160e11b81523360048201526001600160a01b03838116602483015290911690639c395bc290604401602060405180830381865afa158015614588573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145ac9190615b14565b8061462e575060155460405163090c9a2d60e41b81523360048201526001600160a01b0383811660248301528481166044830152909116906390c9a2d090606401602060405180830381865afa15801561460a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061462e9190615b14565b61463757600080fd5b611f12338383614b67565b60606018805461116990615765565b600061465c8261492c565b61466557600080fd5b600854600160a81b90046001600160401b031660000361468757506000919050565b6008544390600160a01b900460ff16156146a65750600b5463ffffffff165b6000838152601160209081526040808320815160a081018352905463ffffffff808216808452600160201b8304821695840195909552600160401b8204811693830193909352600160601b81049092166060820152600160801b90910460ff161515608082015291819003614720575060095463ffffffff165b6040516330e199c760e11b8152600481018690526000602482015230906361c3338e9060440161200b565b60606000306001600160a01b0316635c9302c96040518163ffffffff1660e01b8152600401602060405180830381865afa15801561478d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906147b1919061579f565b63ffffffff1690506000816001600160401b038111156147d3576147d3615638565b60405190808252806020026020018201604052801561481857816020015b60408051808201909152600080825260208201528152602001906001900390816147f15790505b50905060015b82811161181a57601060006148418367ffffffff0000000060208a901b166157d2565b8152602080820192909252604090810160002081518083019092525463ffffffff8082168352600160201b9091041691810191909152826148836001846158ea565b81518110614893576148936158fd565b602002602001018190525080806148a990615913565b91505061481e565b6148b9614961565b6001600160a01b0381166149235760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b613b3081614a2a565b600081600111158015614940575060005482105b8015611154575050600090815260046020526040902054600160e01b161590565b6008546001600160a01b0316331461288c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161491a565b60008180600111614a1157600054811015614a115760008181526004602052604081205490600160e01b82169003614a0f575b806000036128735750600019016000818152600460205260409020546149ee565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290614ab1903390899088908890600401615c06565b6020604051808303816000875af1925050508015614aec575060408051601f3d908101601f19168201909252614ae991810190615c39565b60015b614b4a573d808015614b1a576040519150601f19603f3d011682016040523d82523d6000602084013e614b1f565b606091505b508051600003614b42576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6000614b7c6001546000546000199190030190565b614b879060016157d2565b9050611388811115614b9857600080fd5b6001600160a01b0383166000908152600c6020526040902054600954600160601b900460ff168015614bd0575060008163ffffffff16115b80614be45750600954600160681b900460ff165b614bed57600080fd5b6000614c1063ffffffff8316640100000000600160c01b03602087901b166157d2565b60008181526013602052604090205460095491925090600160701b900463ffffffff16614c3e8260016157d2565b1115614c4957600080fd5b6009546040805160a0810182526000808252602080830182905282840182815260608085018490526080808601949094528551428185015244818801528082018a905286518082039092018252909301909452815191012063ffffffff9081169092529116908115614dae5763ffffffff431681526040805163c68f859d60e01b81529051606491309163c68f859d916004808201926020929091908290030181865afa158015614cfe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614d22919061579f565b614d2d90606e6159f6565b614d3791906159b6565b63ffffffff16602080830191909152604080516319885c3960e21b81529051309263662170e492600480820193918290030181865afa158015614d7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614da2919061592c565b341015614dae57600080fd5b63ffffffff851615614fc7576040516370a0823160e01b81526001600160a01b038881166004830152600091908a16906370a0823190602401602060405180830381865afa158015614e04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614e28919061592c565b11614e3257600080fd5b63ffffffff8086166000908152600e6020908152604091829020825160808101845290548085168252600160201b8104851692820192909252600160401b8204841692810192909252600160601b900490911660608201819052614e97906001615945565b63ffffffff90811660608301819052600954600160901b90049091161015614ebe57600080fd5b8215614f3b5760405163196b331960e21b815263ffffffff8716600482015230906365accc6490602401602060405180830381865afa158015614f05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614f29919061579f565b63ffffffff9081166020830152431681525b63ffffffff80871660608085018290526000918252600e602090815260409283902085518154928701519487015196909301518516600160601b0263ffffffff60601b19968616600160401b029690961667ffffffffffffffff60401b19948616600160201b0267ffffffffffffffff1990931693909516929092171791909116919091179190911790555b614fd28960016150d2565b614fdd8360016157d2565b600094855260136020908152604080872092909255968552601187529384902081518154978301519583015160608401516080909401511515600160801b0260ff60801b1963ffffffff958616600160601b0263ffffffff60601b19938716600160401b029390931667ffffffffffffffff60401b19998716600160201b0267ffffffffffffffff19909c169690941695909517999099179690961617949094171694909417909155505050505050565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806150a85750819003601f19909101908152919050565b611f128282604051806020016040528060008152506150f1838361514d565b6001600160a01b0383163b156116b9576000548281035b61511b6000868380600101945086614a7c565b615138576040516368d2bf6b60e11b815260040160405180910390fd5b8181106151085781600054146118f257600080fd5b60008054908290036151725760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461522157808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016151e9565b508160000361524257604051622e076360e81b815260040160405180910390fd5b60005550505050565b6001600160e01b031981168114613b3057600080fd5b60006020828403121561527357600080fd5b81356128738161524b565b60005b83811015615299578181015183820152602001615281565b50506000910152565b600081518084526152ba81602086016020860161527e565b601f01601f19169290920160200192915050565b60208152600061287360208301846152a2565b6000602082840312156152f357600080fd5b5035919050565b80356001600160a01b0381168114611cd357600080fd5b6000806040838503121561532457600080fd5b61532d836152fa565b946020939093013593505050565b63ffffffff81168114613b3057600080fd5b60006020828403121561535f57600080fd5b81356128738161533b565b60008060006060848603121561537f57600080fd5b615388846152fa565b9250615396602085016152fa565b9150604084013590509250925092565b600080602083850312156153b957600080fd5b82356001600160401b03808211156153d057600080fd5b818501915085601f8301126153e457600080fd5b8135818111156153f357600080fd5b86602082850101111561540557600080fd5b60209290920196919550909350505050565b602080825282518282018190526000919060409081850190868401855b82811015615463578151805163ffffffff90811686529087015116868501529284019290850190600101615434565b5091979650505050505050565b6000806040838503121561548357600080fd5b61548c836152fa565b915061549a602084016152fa565b90509250929050565b600080604083850312156154b657600080fd5b82356154c18161533b565b915060208301356154d18161533b565b809150509250929050565b8015158114613b3057600080fd5b600080604083850312156154fd57600080fd5b8235915060208301356154d1816154dc565b60006020828403121561552157600080fd5b612873826152fa565b6000806000806080858703121561554057600080fd5b843561554b816154dc565b9350602085013561555b816154dc565b9250604085013561556b8161533b565b9150606085013561557b8161533b565b939692955090935050565b6000806040838503121561559957600080fd5b8235915060208301356154d18161533b565b6000602082840312156155bd57600080fd5b8135612873816154dc565b6020808252825182820181905260009190848201906040850190845b81811015615600578351835292840192918401916001016155e4565b50909695505050505050565b6000806040838503121561561f57600080fd5b615628836152fa565b915060208301356154d1816154dc565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b038111828210171561567057615670615638565b60405290565b604051601f8201601f191681016001600160401b038111828210171561569e5761569e615638565b604052919050565b600080600080608085870312156156bc57600080fd5b6156c5856152fa565b935060206156d48187016152fa565b93506040860135925060608601356001600160401b03808211156156f757600080fd5b818801915088601f83011261570b57600080fd5b81358181111561571d5761571d615638565b61572f601f8201601f19168501615676565b9150808252898482850101111561574557600080fd5b808484018584013760008482840101525080935050505092959194509250565b600181811c9082168061577957607f821691505b60208210810361579957634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156157b157600080fd5b81516128738161533b565b634e487b7160e01b600052601160045260246000fd5b80820180821115611154576111546157bc565b601f8211156116b957600081815260208120601f850160051c8101602086101561580c5750805b601f850160051c820191505b8181101561157c57828155600101615818565b6001600160401b0383111561584257615842615638565b615856836158508354615765565b836157e5565b6000601f84116001811461588a57600085156158725750838201355b600019600387901b1c1916600186901b1783556118f2565b600083815260209020601f19861690835b828110156158bb578685013582556020948501946001909201910161589b565b50868210156158d85760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81810381811115611154576111546157bc565b634e487b7160e01b600052603260045260246000fd5b600060018201615925576159256157bc565b5060010190565b60006020828403121561593e57600080fd5b5051919050565b63ffffffff818116838216019080821115615962576159626157bc565b5092915050565b634e487b7160e01b600052601260045260246000fd5b60008261598e5761598e615969565b500490565b600063ffffffff808416806159aa576159aa615969565b92169190910692915050565b600063ffffffff808416806159cd576159cd615969565b92169190910492915050565b63ffffffff828116828216039080821115615962576159626157bc565b63ffffffff818116838216028082169190828114615a1657615a166157bc565b505092915050565b8082028115828204841417611154576111546157bc565b60006020808385031215615a4857600080fd5b82516001600160401b0380821115615a5f57600080fd5b818501915085601f830112615a7357600080fd5b815181811115615a8557615a85615638565b615a93848260051b01615676565b818152848101925060069190911b830184019087821115615ab357600080fd5b928401925b81841015615b095760408489031215615ad15760008081fd5b615ad961564e565b8451615ae48161533b565b815284860151615af38161533b565b8187015283526040939093019291840191615ab8565b979650505050505050565b600060208284031215615b2657600080fd5b8151612873816154dc565b600088516020615b448285838e0161527e565b895191840191615b578184848e0161527e565b8951920191615b698184848d0161527e565b8851920191615b7b8184848c0161527e565b8751920191615b8d8184848b0161527e565b8651920191615b9f8184848a0161527e565b8551920191615bb1818484890161527e565b919091019a9950505050505050505050565b60008451615bd581846020890161527e565b845190830190615be981836020890161527e565b8451910190615bfc81836020880161527e565b0195945050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061408e908301846152a2565b600060208284031215615c4b57600080fd5b81516128738161524b56fe9f5413470c7e92579bd7b4c28131c1b171d96a9bc40557bb4f0f98671c501e26a264697066735822122045e532da4d4afc40da7fffef01105c5f2640add56c06310244bed7e26b8c905c64736f6c63430008110033

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

000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002668747470733a2f2f6465616477696c6c726973652e78797a2f636f6e74726163742e6a736f6e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002768747470733a2f2f6465616477696c6c726973652e78797a2f70726572657665616c2e6a736f6e00000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : mContractURI (string): https://deadwillrise.xyz/contract.json
Arg [1] : mPlaceholderURI (string): https://deadwillrise.xyz/prereveal.json

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000026
Arg [3] : 68747470733a2f2f6465616477696c6c726973652e78797a2f636f6e74726163
Arg [4] : 742e6a736f6e0000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000027
Arg [6] : 68747470733a2f2f6465616477696c6c726973652e78797a2f70726572657665
Arg [7] : 616c2e6a736f6e00000000000000000000000000000000000000000000000000


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.