ETH Price: $3,343.40 (-1.62%)

Contract

0xa6374A60e85B72CEaF3aa155306b179D1cA2691E
 

Overview

ETH Balance

0.56595 ETH

Eth Value

$1,892.20 (@ $3,343.40/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...155754042022-09-20 14:52:35829 days ago1663685555IN
0xa6374A60...D1cA2691E
0 ETH0.0009746320.88660675
Set Approval For...155219012022-09-12 16:39:30837 days ago1663000770IN
0xa6374A60...D1cA2691E
0 ETH0.001645235.25711701
Set Approval For...154784822022-09-05 14:53:45844 days ago1662389625IN
0xa6374A60...D1cA2691E
0 ETH0.0004344916.23509896
Set Approval For...154784822022-09-05 14:53:45844 days ago1662389625IN
0xa6374A60...D1cA2691E
0 ETH0.0007575716.23509896
Mint154784822022-09-05 14:53:45844 days ago1662389625IN
0xa6374A60...D1cA2691E
0.042 ETH0.0004878916.23509896
Mint154366632022-08-29 22:18:04851 days ago1661811484IN
0xa6374A60...D1cA2691E
0.007 ETH0.0011956211.36816611
Mint154366612022-08-29 22:17:43851 days ago1661811463IN
0xa6374A60...D1cA2691E
0.007 ETH0.0014136213.44096574
Mint154366602022-08-29 22:17:36851 days ago1661811456IN
0xa6374A60...D1cA2691E
0.007 ETH0.0014885214.15307042
Withdraw Team154362422022-08-29 20:39:44851 days ago1661805584IN
0xa6374A60...D1cA2691E
0 ETH0.001107632.49832865
Withdraw Big Ban...154362352022-08-29 20:37:46851 days ago1661805466IN
0xa6374A60...D1cA2691E
0 ETH0.0021641135.1409418
Set Approval For...154337642022-08-29 11:14:37851 days ago1661771677IN
0xa6374A60...D1cA2691E
0 ETH0.000403428.64555163
Transfer From154334902022-08-29 10:05:47852 days ago1661767547IN
0xa6374A60...D1cA2691E
0 ETH0.0006499413.63119893
Transfer From154334842022-08-29 10:04:42852 days ago1661767482IN
0xa6374A60...D1cA2691E
0 ETH0.0010070115.02534199
Transfer From154334812022-08-29 10:04:02852 days ago1661767442IN
0xa6374A60...D1cA2691E
0 ETH0.0011298316.31266631
Transfer From154334802022-08-29 10:03:34852 days ago1661767414IN
0xa6374A60...D1cA2691E
0 ETH0.0010487914.66825949
Transfer From154334792022-08-29 10:03:25852 days ago1661767405IN
0xa6374A60...D1cA2691E
0 ETH0.0011086515.03440937
Transfer From154334782022-08-29 10:02:59852 days ago1661767379IN
0xa6374A60...D1cA2691E
0 ETH0.0013313814.30349113
Mint154160752022-08-26 15:08:16854 days ago1661526496IN
0xa6374A60...D1cA2691E
0.028 ETH0.0062284130.4166479
Mint154160532022-08-26 15:04:25854 days ago1661526265IN
0xa6374A60...D1cA2691E
0.049 ETH0.0106376533.08973451
Set Approval For...154154172022-08-26 12:45:24854 days ago1661517924IN
0xa6374A60...D1cA2691E
0 ETH0.000422419.0524674
Free Mint154152512022-08-26 12:06:53854 days ago1661515613IN
0xa6374A60...D1cA2691E
0 ETH0.0119296211.04807078
Mint154145912022-08-26 9:33:57855 days ago1661506437IN
0xa6374A60...D1cA2691E
0.021 ETH0.00110326.43018251
Mint154142402022-08-26 8:11:49855 days ago1661501509IN
0xa6374A60...D1cA2691E
0.035 ETH0.0028160711.04026848
Set Approval For...154134552022-08-26 5:11:26855 days ago1661490686IN
0xa6374A60...D1cA2691E
0 ETH0.0002745.87189833
Mint154134422022-08-26 5:09:14855 days ago1661490554IN
0xa6374A60...D1cA2691E
0.021 ETH0.001478287.8348965
View all transactions

Latest 2 internal transactions

Advanced mode:
Parent Transaction Hash Block
From
To
154362422022-08-29 20:39:44851 days ago1661805584
0xa6374A60...D1cA2691E
0.24255 ETH
154362352022-08-29 20:37:46851 days ago1661805466
0xa6374A60...D1cA2691E
0.8085 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BombsNFT

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : BOMBNFT.sol
//SPDX-License-Identifier: MIT
pragma solidity 0.8.7;

import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@chainlink/contracts/src/v0.8/KeeperCompatible.sol";
import "@chainlink/contracts/src/v0.8/interfaces/VRFCoordinatorV2Interface.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBaseV2.sol";
import "erc721a/contracts/ERC721A.sol";
import "erc721a/contracts/extensions/ERC721AQueryable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

//Goerli testnet contract
contract BombsNFT is ERC721A, ERC721AQueryable, ReentrancyGuard, Ownable, VRFConsumerBaseV2, KeeperCompatible {

    VRFCoordinatorV2Interface COORDINATOR;
    uint64 subscriptionId;
    
    bytes32 private keyHash = 0x8af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef;
    uint16 private requestConfirmations = 50;
    uint256[1] private randomWordsForRewards;
    uint32 private callbackGasLimit = 120000;
    uint32 private numWords = 1;

    uint256 lastTimestamp;
    bool winnersDetermined;

    uint256 public teamPoolBalance;
    uint256 public BigBangBalance;

    mapping (address => uint256) public freeMintAddresses;
    uint256 freeMintCount;

    struct WinnerInfo {
        bool eligible; 
        bool withdrawn; //set to true when winner ID withdraws the prize
    }

    mapping (uint256 => uint256) public tokenIDtoColorID;
    mapping (uint256 => bool) public explodedColorsMetadata;

    mapping (uint256 => WinnerInfo) public check7EthPrize; //7 Ether
    mapping (uint256 => WinnerInfo) public checkBigPrize; //0.5 Ether
    mapping (uint256 => WinnerInfo) public checkSmallPrize; //0.1 Ether

    //For Goerli Test Network:
    address vrfCoordinator = 0x271682DEB8C4E0901D1a1550aD2e64D568E69909;

    //Merkle root for allowlist
    bytes32 public merkleRoot = 0xb1eaebcaa8b76c0103e525209a0e324af5d0b78087e3d13a83be4cf76d3fef76;

    //Array of the colorIDs
    uint256[] public dynamicArray = [
        1111, //Blue 
        2222, //Green 
        3333, //Orange 
        4444, //Pink 
        5555, //Purple 
        6666, //Red 
        7777 //Yellow 
    ];

    event BombMinted(address indexed minter, uint256 indexed colorID, uint256 tokenID);

    //subscriptionID: 71 
    constructor(uint64 _subscriptionId) VRFConsumerBaseV2(vrfCoordinator) ERC721A("ETH BOMBS", "BOOM") {
        COORDINATOR = VRFCoordinatorV2Interface(vrfCoordinator);
        subscriptionId = _subscriptionId;
    }

    function freeMint(bytes32[] calldata _merkleProof, uint256[] memory colorList) public {
        uint256 quantity = colorList.length;

        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        require(MerkleProof.verify(_merkleProof, merkleRoot, leaf), "Not in the allowlist");
        require(quantity + freeMintAddresses[msg.sender] <= 33, "Max amount of NFTs claimed for this address");

        uint256 totalMinted = _totalMinted();

        for (uint i; i < quantity; i++) {
            uint256 index = colorList[i];
            require((dynamicArray[index] / 1111) == index + 1); // checks if the color is sold out.
            tokenIDtoColorID[totalMinted] = dynamicArray[index];
            dynamicArray[index] += 1;
            emit BombMinted(msg.sender, index, totalMinted);
            totalMinted++;
        }
        
        freeMintAddresses[msg.sender] += quantity;
        freeMintCount++;
        _safeMint(msg.sender, quantity);

    }

    function mint(uint256[] memory colorList) external payable {
        uint256 quantity = colorList.length;

        require(msg.value == 7000000000000000 * quantity, "Not enough ETH"); //Mint price is 0.007 Ether

        //Max mint per address set to 11 in the mainnet contract
        require(quantity + showFreePlusMint(msg.sender) <= 11, "Max amount of NFTs claimed for this address"); 
        
        uint256 totalMinted = _totalMinted();

        for (uint i; i < quantity; i++) {
            uint256 index = colorList[i];
            require((dynamicArray[index] / 1111) == index + 1); // checks if the color is sold out.
            tokenIDtoColorID[totalMinted] = dynamicArray[index];
            dynamicArray[index] += 1;
            emit BombMinted(msg.sender, index, totalMinted);
            totalMinted++;
        }

        teamPoolBalance += (msg.value) * 15 / 100;
        BigBangBalance += (msg.value) * 50 / 100;

        _safeMint(msg.sender, quantity);
    }

    function _baseURI() internal view virtual override returns (string memory) {
       return "ipfs://bafybeicizdu56kuisq7kciaepdorzt6atelgihomgsbogevt5pqhhfjhx4/";
    }

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        string memory baseURI = _baseURI();
        uint256 colorID = tokenIDtoColorID[tokenId];
        uint256 colorIPFS = colorID / 1111;

        if (explodedColorsMetadata[colorIPFS]) {
            return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(8))) : '';
        }

        else {

            if (winnersDetermined && checkSmallPrize[colorID - (dynamicArray[0] - 1111)].eligible) {
                return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(9))) : '';
            }
            if (winnersDetermined && checkBigPrize[colorID - (dynamicArray[0] - 1111)].eligible) {
                return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(10))) : '';
            }
            if (winnersDetermined && check7EthPrize[colorID - (dynamicArray[0] - 1111)].eligible) {
                return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(11))) : '';
            }

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

    // Assumes the subscription is funded sufficiently.
    // Will revert if subscription is not set and funded.
    
    function requestRandomWords() internal {
        COORDINATOR.requestRandomWords(
        keyHash,
        subscriptionId,
        requestConfirmations,
        callbackGasLimit,
        numWords
        );  
    }

    function fulfillRandomWords(
        uint256, /* requestID */
        uint256[] memory randomWords
    ) internal override {
        if (dynamicArray.length > 1) {
            uint256 explodedColorIndex = randomWords[0] % dynamicArray.length;
            removeColor(explodedColorIndex);
            randomWordsForRewards[0] = randomWords[0];
        }
        
        if(dynamicArray.length == 1) {
            winnersDetermined = true;
        }
    }

    function checkUpkeep(bytes calldata checkData) external view override returns (bool upkeepNeeded, bytes memory performData) {
        if(keccak256(checkData) == keccak256(hex'01')) {
            upkeepNeeded = (_totalMinted() > 7776) && ((block.timestamp - lastTimestamp) > 86400) && (dynamicArray.length != 1);
            performData = checkData; 
        }

        if(keccak256(checkData) == keccak256(hex'02')) {
            upkeepNeeded = (dynamicArray.length == 1) && winnersDetermined;
            performData = checkData;
        }           
    }
    
    function performUpkeep(bytes calldata performData) external override{
        if(keccak256(performData) == keccak256(hex'01') && 
            (_totalMinted() > 7776) && (dynamicArray.length != 1) &&
            (block.timestamp - lastTimestamp) > 86400) {

            lastTimestamp = block.timestamp;
            requestRandomWords();
        }

        if(keccak256(performData) == keccak256(hex'02') && 
            (dynamicArray.length == 1) &&
            winnersDetermined) {
            winnersDetermined = false;
            determineWinners(randomWordsForRewards[0]);
        }
    }

    function determineWinners(uint256 randomNumber) internal {

        //determine 7 ETH winner -  1 ID
        uint256 colorID = randomNumber % 1111;
        check7EthPrize[colorID].eligible = true;
        randomNumber >>= 1;

        //determine 0.5 ETH winners - 6 IDs
        for (uint i; i < 6; i++) {
            colorID = randomNumber % 1111;
            while(checkBigPrize[colorID].eligible || check7EthPrize[colorID].eligible) {
                randomNumber >>= 1;
                colorID = randomNumber % 1111;
            }
            checkBigPrize[colorID].eligible = true;
            randomNumber >>= 1;
        }

        //determine 0.1 ETH winners - 70 IDs
        for (uint i; i < 70; i++) {
            colorID = randomNumber % 1111;
            while(checkBigPrize[colorID].eligible || checkSmallPrize[colorID].eligible || check7EthPrize[colorID].eligible) {
                randomNumber >>= 1;
                colorID = randomNumber % 1111;
            }
            checkSmallPrize[colorID].eligible = true;
            randomNumber >>= 1;
        }
        
        if (freeMintCount < 660) {
            uint256 extraCountFromFreeMint = 660 - freeMintCount;
            teamPoolBalance += (7000000000000000 * extraCountFromFreeMint) * 35 / 100;
        }
    }

     function withdrawSevenEther(uint256 tokenID) public payable nonReentrant {
        require(ownerOf(tokenID) == msg.sender);

        uint256 colorID = tokenIDtoColorID[tokenID];
        uint256 baseID = dynamicArray[0] - 1111;
        uint256 checkID = colorID - baseID; 
        require(check7EthPrize[checkID].eligible && !check7EthPrize[checkID].withdrawn, 
        "ID is not eligible for reward or ID has withdrawn the prize");
        
        check7EthPrize[checkID].withdrawn = true;
        (bool sent, ) = msg.sender.call{value: 7 ether}("");
        require(sent, "Failed to send the rewards");
    }

    function withdrawBigPrize(uint256 tokenID) public payable nonReentrant {
        require(ownerOf(tokenID) == msg.sender);

        uint256 colorID = tokenIDtoColorID[tokenID];
        uint256 baseID = dynamicArray[0] - 1111;
        uint256 checkID = colorID - baseID; //check if 0 works - it works!
        require(checkBigPrize[checkID].eligible && !checkBigPrize[checkID].withdrawn, 
        "ID is not eligible for reward or ID has withdrawn the prize");
        
        checkBigPrize[checkID].withdrawn = true;
        (bool sent, ) = msg.sender.call{value: 0.5 ether}("");
        require(sent, "Failed to send the rewards");
    }

    function withdrawSmallPrize(uint256 tokenID) public payable nonReentrant {
        require(ownerOf(tokenID) == msg.sender);

        uint256 colorID = tokenIDtoColorID[tokenID];
        uint256 baseID = dynamicArray[0] - 1111;
        uint256 checkID = colorID - baseID;
        require(checkSmallPrize[checkID].eligible && !checkSmallPrize[checkID].withdrawn, 
        "ID is not eligible for reward or ID has withdrawn the prize");

        checkSmallPrize[checkID].withdrawn = true;
        (bool sent, ) = msg.sender.call{value: 0.1 ether}("");
        require(sent, "Failed to send the rewards");
    }

    function withdrawTeam(uint256 amount) public payable nonReentrant onlyOwner {
        require(amount <= teamPoolBalance);

        teamPoolBalance -= amount;
        (bool sent,) = msg.sender.call{value: amount}("");
        require(sent, "Failed to send Ether");
    }

    function withdrawBigBangRewards(uint256 amount) public payable nonReentrant onlyOwner {
        require(amount <= BigBangBalance);
        
        BigBangBalance -= amount;
        (bool sent,) = address(0x47493b9a8d72e4c1487aB1022aa3D71627A27dD1).call{value: amount}("");
        require(sent, "Failed to send Ether");
    }

    function eligibleForAirdrop(uint256 tokenID) public view returns (bool) {
        uint256 colorID = tokenIDtoColorID[tokenID];
        uint256 baseID = dynamicArray[0] - 1111;
        uint256 checkID = colorID - baseID;

        if(!checkBigPrize[checkID].eligible && !checkSmallPrize[checkID].eligible && 
        colorID  >= baseID && colorID < dynamicArray[0]) {
            return true;
        }
        return false;
    }

    function removeColor(uint256 index) internal {
        explodedColorsMetadata[index + 1] = true;
        dynamicArray[index] = dynamicArray[dynamicArray.length - 1];
        dynamicArray.pop();
    }

    function showRemainingColors() public view returns(uint256[] memory) {
        return dynamicArray;
    }

    function showTotalMinted() public view returns(uint256) {
        return _totalMinted();
    }

    function showFreePlusMint(address minter) public view returns(uint256) {
        return(_numberMinted(minter) - freeMintAddresses[minter]); 
    }

    function showNumberMinted(address minter) external view returns (uint256) {
        return _numberMinted(minter);
    }
}

File 2 of 14 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

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

pragma solidity ^0.8.4;

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

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

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

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

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

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

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom}
     * for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        if (operator == _msgSenderERC721A()) revert ApproveToCaller();

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

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

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted. See {_mint}.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned.
    }

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

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

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token
     * by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token
     * by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

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

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

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

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

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

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

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

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

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

import "./KeeperBase.sol";
import "./interfaces/KeeperCompatibleInterface.sol";

abstract contract KeeperCompatible is KeeperBase, KeeperCompatibleInterface {}

File 8 of 14 : 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 9 of 14 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

pragma solidity ^0.8.4;

import '../IERC721A.sol';

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

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

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

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

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

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

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 13 of 14 : KeeperCompatibleInterface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface KeeperCompatibleInterface {
  /**
   * @notice method that is simulated by the keepers to see if any work actually
   * needs to be performed. This method does does not actually need to be
   * executable, and since it is only ever simulated it can consume lots of gas.
   * @dev To ensure that it is never called, you may want to add the
   * cannotExecute modifier from KeeperBase to your implementation of this
   * method.
   * @param checkData specified in the upkeep registration so it is always the
   * same for a registered upkeep. This can easily be broken down into specific
   * arguments using `abi.decode`, so multiple upkeeps can be registered on the
   * same contract and easily differentiated by the contract.
   * @return upkeepNeeded boolean to indicate whether the keeper should call
   * performUpkeep or not.
   * @return performData bytes that the keeper should call performUpkeep with, if
   * upkeep is needed. If you would like to encode data to decode later, try
   * `abi.encode`.
   */
  function checkUpkeep(bytes calldata checkData) external returns (bool upkeepNeeded, bytes memory performData);

  /**
   * @notice method that is actually executed by the keepers, via the registry.
   * The data returned by the checkUpkeep simulation will be passed into
   * this method to actually be executed.
   * @dev The input to this method should not be trusted, and the caller of the
   * method should not even be restricted to any single registry. Anyone should
   * be able call it, and the input should be validated, there is no guarantee
   * that the data passed in is the performData returned from checkUpkeep. This
   * could happen due to malicious keepers, racing keepers, or simply a state
   * change while the performUpkeep transaction is waiting for confirmation.
   * Always validate the data passed in.
   * @param performData is the data which was passed back from the checkData
   * simulation. If it is encoded, it can easily be decoded into other types by
   * calling `abi.decode`. This data should not be trusted, and should be
   * validated against the contract's current state.
   */
  function performUpkeep(bytes calldata performData) external;
}

File 14 of 14 : KeeperBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract KeeperBase {
  error OnlySimulatedBackend();

  /**
   * @notice method that allows it to be simulated via eth_call by checking that
   * the sender is the zero address.
   */
  function preventExecution() internal view {
    if (tx.origin != address(0)) {
      revert OnlySimulatedBackend();
    }
  }

  /**
   * @notice modifier that allows it to be simulated via eth_call by checking
   * that the sender is the zero address.
   */
  modifier cannotExecute() {
    preventExecution();
    _;
  }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint64","name":"_subscriptionId","type":"uint64"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"have","type":"address"},{"internalType":"address","name":"want","type":"address"}],"name":"OnlyCoordinatorCanFulfill","type":"error"},{"inputs":[],"name":"OnlySimulatedBackend","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":"address","name":"minter","type":"address"},{"indexed":true,"internalType":"uint256","name":"colorID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"BombMinted","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":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"},{"inputs":[],"name":"BigBangBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"check7EthPrize","outputs":[{"internalType":"bool","name":"eligible","type":"bool"},{"internalType":"bool","name":"withdrawn","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"checkBigPrize","outputs":[{"internalType":"bool","name":"eligible","type":"bool"},{"internalType":"bool","name":"withdrawn","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"checkSmallPrize","outputs":[{"internalType":"bool","name":"eligible","type":"bool"},{"internalType":"bool","name":"withdrawn","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"checkData","type":"bytes"}],"name":"checkUpkeep","outputs":[{"internalType":"bool","name":"upkeepNeeded","type":"bool"},{"internalType":"bytes","name":"performData","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"dynamicArray","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"eligibleForAirdrop","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"explodedColorsMetadata","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint256[]","name":"colorList","type":"uint256[]"}],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"freeMintAddresses","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"colorList","type":"uint256[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"performData","type":"bytes"}],"name":"performUpkeep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"requestId","type":"uint256"},{"internalType":"uint256[]","name":"randomWords","type":"uint256[]"}],"name":"rawFulfillRandomWords","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"showFreePlusMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"showNumberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"showRemainingColors","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"showTotalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"teamPoolBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIDtoColorID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawBigBangRewards","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"withdrawBigPrize","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"withdrawSevenEther","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"withdrawSmallPrize","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawTeam","outputs":[],"stateMutability":"payable","type":"function"}]

60a06040527f8af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef60001b600b556032600c60006101000a81548161ffff021916908361ffff1602179055506201d4c0600e60006101000a81548163ffffffff021916908363ffffffff1602179055506001600e60046101000a81548163ffffffff021916908363ffffffff16021790555073271682deb8c4e0901d1a1550ad2e64d568e69909601a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fb1eaebcaa8b76c0103e525209a0e324af5d0b78087e3d13a83be4cf76d3fef7660001b601b556040518060e0016040528061045761ffff1681526020016108ae61ffff168152602001610d0561ffff16815260200161115c61ffff1681526020016115b361ffff168152602001611a0a61ffff168152602001611e6161ffff16815250601c9060076200017a9291906200044d565b503480156200018857600080fd5b506040516200613c3803806200613c8339818101604052810190620001ae91906200056c565b601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518060400160405280600981526020017f45544820424f4d425300000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f424f4f4d00000000000000000000000000000000000000000000000000000000815250816002908051906020019062000255929190620004a5565b5080600390805190602001906200026e929190620004a5565b506200027f6200037a60201b60201c565b60008190555050506001600881905550620002af620002a36200037f60201b60201c565b6200038760201b60201c565b8073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b8152505050601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600a60146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505062000636565b600090565b600033905090565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b82805482825590600052602060002090810192821562000492579160200282015b8281111562000491578251829061ffff169055916020019190600101906200046e565b5b509050620004a1919062000536565b5090565b828054620004b390620005b2565b90600052602060002090601f016020900481019282620004d7576000855562000523565b82601f10620004f257805160ff191683800117855562000523565b8280016001018555821562000523579182015b828111156200052257825182559160200191906001019062000505565b5b50905062000532919062000536565b5090565b5b808211156200055157600081600090555060010162000537565b5090565b60008151905062000566816200061c565b92915050565b60006020828403121562000585576200058462000617565b5b6000620005958482850162000555565b91505092915050565b600067ffffffffffffffff82169050919050565b60006002820490506001821680620005cb57607f821691505b60208210811415620005e257620005e1620005e8565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b62000627816200059e565b81146200063357600080fd5b50565b60805160601c615ae06200065c60003960008181610eec0152610f400152615ae06000f3fe60806040526004361061027d5760003560e01c80638462151c1161014f578063bdf5ac88116100c1578063e985e9c51161007a578063e985e9c514610a43578063f034321014610a80578063f2b4eea514610a9c578063f2fde38b14610ad9578063f8e93ef914610b02578063fd2b049214610b1e5761027d565b8063bdf5ac88146108e8578063c23dc68f14610926578063c87b56dd14610963578063cc08a71a146109a0578063d3691df0146109c9578063e41cc2af14610a065761027d565b806399a2557a1161011357806399a2557a146107c35780639a9bdca714610800578063a22cb4651461083d578063b88d4fde14610866578063b9e693051461088f578063bdefd0de146108cc5761027d565b80638462151c146106c75780638da5cb5b146107045780639534831d1461072f57806395d89b411461075a57806396d8f09c146107855761027d565b80632eb4a7ab116101f35780636352211e116101ac5780636352211e146105b15780636e04ff0d146105ee57806370a082311461062c578063715018a614610669578063748de8d31461068057806380221502146106ab5761027d565b80632eb4a7ab146104b057806341dfc32d146104db57806342842e0e146105065780634585e33b1461052f5780635092bed9146105585780635bbb2177146105745761027d565b8063095ea7b311610245578063095ea7b3146103a157806316363477146103ca57806318160ddd146104085780631fe543e3146104335780632068689d1461045c57806323b872dd146104875761027d565b806301fab91a1461028257806301ffc9a7146102bf57806306fdde03146102fc57806308008e8d14610327578063081812fc14610364575b600080fd5b34801561028e57600080fd5b506102a960048036038101906102a491906145cf565b610b3a565b6040516102b6919061525b565b60405180910390f35b3480156102cb57600080fd5b506102e660048036038101906102e191906148f7565b610b52565b6040516102f3919061501c565b60405180910390f35b34801561030857600080fd5b50610311610be4565b60405161031e91906150fe565b60405180910390f35b34801561033357600080fd5b5061034e600480360381019061034991906145cf565b610c76565b60405161035b919061525b565b60405180910390f35b34801561037057600080fd5b5061038b6004803603810190610386919061499e565b610cd2565b6040516103989190614f48565b60405180910390f35b3480156103ad57600080fd5b506103c860048036038101906103c39190614752565b610d51565b005b3480156103d657600080fd5b506103f160048036038101906103ec919061499e565b610e95565b6040516103ff929190615037565b60405180910390f35b34801561041457600080fd5b5061041d610ed3565b60405161042a919061525b565b60405180910390f35b34801561043f57600080fd5b5061045a600480360381019061045591906149f8565b610eea565b005b34801561046857600080fd5b50610471610faa565b60405161047e919061525b565b60405180910390f35b34801561049357600080fd5b506104ae60048036038101906104a9919061463c565b610fb0565b005b3480156104bc57600080fd5b506104c56112d5565b6040516104d29190615090565b60405180910390f35b3480156104e757600080fd5b506104f06112db565b6040516104fd9190614ffa565b60405180910390f35b34801561051257600080fd5b5061052d6004803603810190610528919061463c565b611333565b005b34801561053b57600080fd5b5061055660048036038101906105519190614951565b611353565b005b610572600480360381019061056d919061499e565b61148a565b005b34801561058057600080fd5b5061059b60048036038101906105969190614861565b6116f3565b6040516105a89190614fd8565b60405180910390f35b3480156105bd57600080fd5b506105d860048036038101906105d3919061499e565b6117b6565b6040516105e59190614f48565b60405180910390f35b3480156105fa57600080fd5b5061061560048036038101906106109190614951565b6117c8565b604051610623929190615060565b60405180910390f35b34801561063857600080fd5b50610653600480360381019061064e91906145cf565b61193f565b604051610660919061525b565b60405180910390f35b34801561067557600080fd5b5061067e6119f8565b005b34801561068c57600080fd5b50610695611a0c565b6040516106a2919061525b565b60405180910390f35b6106c560048036038101906106c0919061499e565b611a12565b005b3480156106d357600080fd5b506106ee60048036038101906106e991906145cf565b611b5c565b6040516106fb9190614ffa565b60405180910390f35b34801561071057600080fd5b50610719611ca6565b6040516107269190614f48565b60405180910390f35b34801561073b57600080fd5b50610744611cd0565b604051610751919061525b565b60405180910390f35b34801561076657600080fd5b5061076f611cdf565b60405161077c91906150fe565b60405180910390f35b34801561079157600080fd5b506107ac60048036038101906107a7919061499e565b611d71565b6040516107ba929190615037565b60405180910390f35b3480156107cf57600080fd5b506107ea60048036038101906107e59190614792565b611daf565b6040516107f79190614ffa565b60405180910390f35b34801561080c57600080fd5b506108276004803603810190610822919061499e565b611fc3565b604051610834919061525b565b60405180910390f35b34801561084957600080fd5b50610864600480360381019061085f9190614712565b611fe7565b005b34801561087257600080fd5b5061088d6004803603810190610888919061468f565b61215f565b005b34801561089b57600080fd5b506108b660048036038101906108b191906145cf565b6121d2565b6040516108c3919061525b565b60405180910390f35b6108e660048036038101906108e1919061499e565b6121e4565b005b3480156108f457600080fd5b5061090f600480360381019061090a919061499e565b61244d565b60405161091d929190615037565b60405180910390f35b34801561093257600080fd5b5061094d6004803603810190610948919061499e565b61248b565b60405161095a9190615240565b60405180910390f35b34801561096f57600080fd5b5061098a6004803603810190610985919061499e565b6124f5565b60405161099791906150fe565b60405180910390f35b3480156109ac57600080fd5b506109c760048036038101906109c291906147e5565b6128a3565b005b3480156109d557600080fd5b506109f060048036038101906109eb919061499e565b612bc6565b6040516109fd919061501c565b60405180910390f35b348015610a1257600080fd5b50610a2d6004803603810190610a28919061499e565b612cc6565b604051610a3a919061525b565b60405180910390f35b348015610a4f57600080fd5b50610a6a6004803603810190610a6591906145fc565b612cde565b604051610a77919061501c565b60405180910390f35b610a9a6004803603810190610a95919061499e565b612d72565b005b348015610aa857600080fd5b50610ac36004803603810190610abe919061499e565b612fdb565b604051610ad0919061501c565b60405180910390f35b348015610ae557600080fd5b50610b006004803603810190610afb91906145cf565b612ffb565b005b610b1c6004803603810190610b1791906148ae565b61307f565b005b610b386004803603810190610b33919061499e565b6132f8565b005b60136020528060005260406000206000915090505481565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610bad57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610bdd5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610bf3906155ce565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1f906155ce565b8015610c6c5780601f10610c4157610100808354040283529160200191610c6c565b820191906000526020600020905b815481529060010190602001808311610c4f57829003601f168201915b5050505050905090565b6000601360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610cc18361342e565b610ccb9190615499565b9050919050565b6000610cdd82613485565b610d13576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610d5c826117b6565b90508073ffffffffffffffffffffffffffffffffffffffff16610d7d6134e4565b73ffffffffffffffffffffffffffffffffffffffff1614610de057610da981610da46134e4565b612cde565b610ddf576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60176020528060005260406000206000915090508060000160009054906101000a900460ff16908060000160019054906101000a900460ff16905082565b6000610edd6134ec565b6001546000540303905090565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610f9c57337f00000000000000000000000000000000000000000000000000000000000000006040517f1cf993f4000000000000000000000000000000000000000000000000000000008152600401610f93929190614f63565b60405180910390fd5b610fa682826134f1565b5050565b60125481565b6000610fbb8261359e565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611022576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061102e8461366c565b91509150611044818761103f6134e4565b613693565b61109057611059866110546134e4565b612cde565b61108f576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156110f7576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61110486868660016136d7565b801561110f57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506111dd856111b98888876136dd565b7c020000000000000000000000000000000000000000000000000000000017613705565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415611265576000600185019050600060046000838152602001908152602001600020541415611263576000548114611262578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46112cd8686866001613730565b505050505050565b601b5481565b6060601c80548060200260200160405190810160405280929190818152602001828054801561132957602002820191906000526020600020905b815481526020019060010190808311611315575b5050505050905090565b61134e8383836040518060200160405280600081525061215f565b505050565b7f5fe7f977e71dba2ea1a68e21057beebb9be2ac30c6410aa38d4f3fbe41dcffd28282604051611384929190614ef6565b60405180910390201480156113a15750611e6061139f613736565b115b80156113b357506001601c8054905014155b80156113ce575062015180600f54426113cc9190615499565b115b156113e35742600f819055506113e2613749565b5b7ff2ee15ea639b73fa3db9b34a245bdfa015c260c598b211bf05a1ecc4b3e3b4f28282604051611414929190614ef6565b604051809103902014801561142e57506001601c80549050145b80156114465750601060009054906101000a900460ff165b15611486576000601060006101000a81548160ff021916908315150217905550611485600d60006001811061147e5761147d61578b565b5b015461384d565b5b5050565b600260085414156114d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c790615220565b60405180910390fd5b60026008819055503373ffffffffffffffffffffffffffffffffffffffff166114f8826117b6565b73ffffffffffffffffffffffffffffffffffffffff161461151857600080fd5b6000601560008381526020019081526020016000205490506000610457601c60008154811061154a5761154961578b565b5b906000526020600020015461155f9190615499565b90506000818361156f9190615499565b90506019600082815260200190815260200160002060000160009054906101000a900460ff1680156115c257506019600082815260200190815260200160002060000160019054906101000a900460ff16155b611601576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f890615120565b60405180910390fd5b60016019600083815260200190815260200160002060000160016101000a81548160ff02191690831515021790555060003373ffffffffffffffffffffffffffffffffffffffff1667016345785d8a000060405161165e90614f33565b60006040518083038185875af1925050503d806000811461169b576040519150601f19603f3d011682016040523d82523d6000602084013e6116a0565b606091505b50509050806116e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116db906151c0565b60405180910390fd5b50505050600160088190555050565b6060600083839050905060008167ffffffffffffffff811115611719576117186157ba565b5b60405190808252806020026020018201604052801561175257816020015b61173f6142f2565b8152602001906001900390816117375790505b50905060005b8281146117aa576117818686838181106117755761177461578b565b5b9050602002013561248b565b8282815181106117945761179361578b565b5b6020026020010181905250806001019050611758565b50809250505092915050565b60006117c18261359e565b9050919050565b600060607f5fe7f977e71dba2ea1a68e21057beebb9be2ac30c6410aa38d4f3fbe41dcffd284846040516117fd929190614ef6565b6040518091039020141561188e57611e60611816613736565b118015611832575062015180600f54426118309190615499565b115b801561184457506001601c8054905014155b915083838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505090505b7ff2ee15ea639b73fa3db9b34a245bdfa015c260c598b211bf05a1ecc4b3e3b4f284846040516118bf929190614ef6565b60405180910390201415611938576001601c805490501480156118ee5750601060009054906101000a900460ff165b915083838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505090505b9250929050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156119a7576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611a00613ad7565b611a0a6000613b55565b565b60115481565b60026008541415611a58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4f90615220565b60405180910390fd5b6002600881905550611a68613ad7565b601254811115611a7757600080fd5b8060126000828254611a899190615499565b9250508190555060007347493b9a8d72e4c1487ab1022aa3d71627a27dd173ffffffffffffffffffffffffffffffffffffffff1682604051611aca90614f33565b60006040518083038185875af1925050503d8060008114611b07576040519150601f19603f3d011682016040523d82523d6000602084013e611b0c565b606091505b5050905080611b50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4790615180565b60405180910390fd5b50600160088190555050565b60606000806000611b6c8561193f565b905060008167ffffffffffffffff811115611b8a57611b896157ba565b5b604051908082528060200260200182016040528015611bb85781602001602082028036833780820191505090505b509050611bc36142f2565b6000611bcd6134ec565b90505b838614611c9857611be081613c1b565b9150816040015115611bf157611c8d565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614611c3157816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611c8c5780838780600101985081518110611c7f57611c7e61578b565b5b6020026020010181815250505b5b806001019050611bd0565b508195505050505050919050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000611cda613736565b905090565b606060038054611cee906155ce565b80601f0160208091040260200160405190810160405280929190818152602001828054611d1a906155ce565b8015611d675780601f10611d3c57610100808354040283529160200191611d67565b820191906000526020600020905b815481529060010190602001808311611d4a57829003601f168201915b5050505050905090565b60186020528060005260406000206000915090508060000160009054906101000a900460ff16908060000160019054906101000a900460ff16905082565b6060818310611dea576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611df5613c46565b9050611dff6134ec565b851015611e1157611e0e6134ec565b94505b80841115611e1d578093505b6000611e288761193f565b905084861015611e4b576000868603905081811015611e45578091505b50611e50565b600090505b60008167ffffffffffffffff811115611e6c57611e6b6157ba565b5b604051908082528060200260200182016040528015611e9a5781602001602082028036833780820191505090505b5090506000821415611eb25780945050505050611fbc565b6000611ebd8861248b565b905060008160400151611ed257816000015190505b60008990505b888114158015611ee85750848714155b15611fae57611ef681613c1b565b9250826040015115611f0757611fa3565b600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff1614611f4757826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611fa25780848880600101995081518110611f9557611f9461578b565b5b6020026020010181815250505b5b806001019050611ed8565b508583528296505050505050505b9392505050565b601c8181548110611fd357600080fd5b906000526020600020016000915090505481565b611fef6134e4565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612054576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006120616134e4565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661210e6134e4565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612153919061501c565b60405180910390a35050565b61216a848484610fb0565b60008373ffffffffffffffffffffffffffffffffffffffff163b146121cc5761219584848484613c4f565b6121cb576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60006121dd8261342e565b9050919050565b6002600854141561222a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222190615220565b60405180910390fd5b60026008819055503373ffffffffffffffffffffffffffffffffffffffff16612252826117b6565b73ffffffffffffffffffffffffffffffffffffffff161461227257600080fd5b6000601560008381526020019081526020016000205490506000610457601c6000815481106122a4576122a361578b565b5b90600052602060002001546122b99190615499565b9050600081836122c99190615499565b90506018600082815260200190815260200160002060000160009054906101000a900460ff16801561231c57506018600082815260200190815260200160002060000160019054906101000a900460ff16155b61235b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161235290615120565b60405180910390fd5b60016018600083815260200190815260200160002060000160016101000a81548160ff02191690831515021790555060003373ffffffffffffffffffffffffffffffffffffffff166706f05b59d3b200006040516123b890614f33565b60006040518083038185875af1925050503d80600081146123f5576040519150601f19603f3d011682016040523d82523d6000602084013e6123fa565b606091505b505090508061243e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612435906151c0565b60405180910390fd5b50505050600160088190555050565b60196020528060005260406000206000915090508060000160009054906101000a900460ff16908060000160019054906101000a900460ff16905082565b6124936142f2565b61249b6142f2565b6124a36134ec565b8310806124b757506124b3613c46565b8310155b156124c557809150506124f0565b6124ce83613c1b565b90508060400151156124e357809150506124f0565b6124ec83613daf565b9150505b919050565b606061250082613485565b612536576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612540613dcf565b905060006015600085815260200190815260200160002054905060006104578261256a919061540e565b90506016600082815260200190815260200160002060009054906101000a900460ff16156125e7576000835114156125b157604051806020016040528060008152506125dd565b826125bc6008613def565b6040516020016125cd929190614f0f565b6040516020818303038152906040525b935050505061289e565b601060009054906101000a900460ff16801561265a575060196000610457601c60008154811061261a5761261961578b565b5b906000526020600020015461262f9190615499565b8461263a9190615499565b815260200190815260200160002060000160009054906101000a900460ff165b156126b45760008351141561267e57604051806020016040528060008152506126aa565b826126896009613def565b60405160200161269a929190614f0f565b6040516020818303038152906040525b935050505061289e565b601060009054906101000a900460ff168015612727575060186000610457601c6000815481106126e7576126e661578b565b5b90600052602060002001546126fc9190615499565b846127079190615499565b815260200190815260200160002060000160009054906101000a900460ff165b156127815760008351141561274b5760405180602001604052806000815250612777565b82612756600a613def565b604051602001612767929190614f0f565b6040516020818303038152906040525b935050505061289e565b601060009054906101000a900460ff1680156127f4575060176000610457601c6000815481106127b4576127b361578b565b5b90600052602060002001546127c99190615499565b846127d49190615499565b815260200190815260200160002060000160009054906101000a900460ff165b1561284e576000835114156128185760405180602001604052806000815250612844565b82612823600b613def565b604051602001612834929190614f0f565b6040516020818303038152906040525b935050505061289e565b60008351141561286d5760405180602001604052806000815250612898565b8261287782613def565b604051602001612888929190614f0f565b6040516020818303038152906040525b93505050505b919050565b6000815190506000336040516020016128bc9190614edb565b604051602081830303815290604052805190602001209050612922858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050601b5483613e3f565b612961576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161295890615140565b60405180910390fd5b6021601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054836129ae91906153b8565b11156129ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129e6906151a0565b60405180910390fd5b60006129f9613736565b905060005b83811015612b45576000858281518110612a1b57612a1a61578b565b5b60200260200101519050600181612a3291906153b8565b610457601c8381548110612a4957612a4861578b565b5b9060005260206000200154612a5e919061540e565b14612a6857600080fd5b601c8181548110612a7c57612a7b61578b565b5b906000526020600020015460156000858152602001908152602001600020819055506001601c8281548110612ab457612ab361578b565b5b906000526020600020016000828254612acd91906153b8565b92505081905550803373ffffffffffffffffffffffffffffffffffffffff167f0141ca336fc1dfe5d46371fa6db9d9f55abbb65ff04c52732b83ced504a54d7585604051612b1b919061525b565b60405180910390a38280612b2e90615631565b935050508080612b3d90615631565b9150506129fe565b5082601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612b9591906153b8565b9250508190555060146000815480929190612baf90615631565b9190505550612bbe3384613e56565b505050505050565b600080601560008481526020019081526020016000205490506000610457601c600081548110612bf957612bf861578b565b5b9060005260206000200154612c0e9190615499565b905060008183612c1e9190615499565b90506018600082815260200190815260200160002060000160009054906101000a900460ff16158015612c7257506019600082815260200190815260200160002060000160009054906101000a900460ff16155b8015612c7e5750818310155b8015612ca85750601c600081548110612c9a57612c9961578b565b5b906000526020600020015483105b15612cb95760019350505050612cc1565b600093505050505b919050565b60156020528060005260406000206000915090505481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60026008541415612db8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612daf90615220565b60405180910390fd5b60026008819055503373ffffffffffffffffffffffffffffffffffffffff16612de0826117b6565b73ffffffffffffffffffffffffffffffffffffffff1614612e0057600080fd5b6000601560008381526020019081526020016000205490506000610457601c600081548110612e3257612e3161578b565b5b9060005260206000200154612e479190615499565b905060008183612e579190615499565b90506017600082815260200190815260200160002060000160009054906101000a900460ff168015612eaa57506017600082815260200190815260200160002060000160019054906101000a900460ff16155b612ee9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ee090615120565b60405180910390fd5b60016017600083815260200190815260200160002060000160016101000a81548160ff02191690831515021790555060003373ffffffffffffffffffffffffffffffffffffffff16676124fee993bc0000604051612f4690614f33565b60006040518083038185875af1925050503d8060008114612f83576040519150601f19603f3d011682016040523d82523d6000602084013e612f88565b606091505b5050905080612fcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fc3906151c0565b60405180910390fd5b50505050600160088190555050565b60166020528060005260406000206000915054906101000a900460ff1681565b613003613ad7565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613073576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161306a90615160565b60405180910390fd5b61307c81613b55565b50565b600081519050806618de76816d8000613098919061543f565b34146130d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130d0906151e0565b60405180910390fd5b600b6130e433610c76565b826130ef91906153b8565b1115613130576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613127906151a0565b60405180910390fd5b600061313a613736565b905060005b8281101561328657600084828151811061315c5761315b61578b565b5b6020026020010151905060018161317391906153b8565b610457601c838154811061318a5761318961578b565b5b906000526020600020015461319f919061540e565b146131a957600080fd5b601c81815481106131bd576131bc61578b565b5b906000526020600020015460156000858152602001908152602001600020819055506001601c82815481106131f5576131f461578b565b5b90600052602060002001600082825461320e91906153b8565b92505081905550803373ffffffffffffffffffffffffffffffffffffffff167f0141ca336fc1dfe5d46371fa6db9d9f55abbb65ff04c52732b83ced504a54d758560405161325c919061525b565b60405180910390a3828061326f90615631565b93505050808061327e90615631565b91505061313f565b506064600f34613296919061543f565b6132a0919061540e565b601160008282546132b191906153b8565b9250508190555060646032346132c7919061543f565b6132d1919061540e565b601260008282546132e291906153b8565b925050819055506132f33383613e56565b505050565b6002600854141561333e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161333590615220565b60405180910390fd5b600260088190555061334e613ad7565b60115481111561335d57600080fd5b806011600082825461336f9190615499565b9250508190555060003373ffffffffffffffffffffffffffffffffffffffff168260405161339c90614f33565b60006040518083038185875af1925050503d80600081146133d9576040519150601f19603f3d011682016040523d82523d6000602084013e6133de565b606091505b5050905080613422576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161341990615180565b60405180910390fd5b50600160088190555050565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b6000816134906134ec565b1115801561349f575060005482105b80156134dd575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b6001601c805490501115613570576000601c805490508260008151811061351b5761351a61578b565b5b602002602001015161352d919061569e565b905061353881613e74565b8160008151811061354c5761354b61578b565b5b6020026020010151600d6000600181106135695761356861578b565b5b0181905550505b6001601c80549050141561359a576001601060006101000a81548160ff0219169083151502179055505b5050565b600080829050806135ad6134ec565b11613635576000548110156136345760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415613632575b60008114156136285760046000836001900393508381526020019081526020016000205490506135fd565b8092505050613667565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86136f4868684613f29565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60006137406134ec565b60005403905090565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635d3b1d30600b54600a60149054906101000a900467ffffffffffffffff16600c60009054906101000a900461ffff16600e60009054906101000a900463ffffffff16600e60049054906101000a900463ffffffff166040518663ffffffff1660e01b81526004016137f89594939291906150ab565b602060405180830381600087803b15801561381257600080fd5b505af1158015613826573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061384a91906149cb565b50565b60006104578261385d919061569e565b905060016017600083815260200190815260200160002060000160006101000a81548160ff021916908315150217905550600182901c915060005b600681101561396b57610457836138af919061569e565b91505b6018600083815260200190815260200160002060000160009054906101000a900460ff168061390157506017600083815260200190815260200160002060000160009054906101000a900460ff165b1561392257600183901c92506104578361391b919061569e565b91506138b2565b60016018600084815260200190815260200160002060000160006101000a81548160ff021916908315150217905550600183901c9250808061396390615631565b915050613898565b5060005b6046811015613a6d5761045783613986919061569e565b91505b6018600083815260200190815260200160002060000160009054906101000a900460ff16806139d857506019600083815260200190815260200160002060000160009054906101000a900460ff165b80613a0357506017600083815260200190815260200160002060000160009054906101000a900460ff165b15613a2457600183901c925061045783613a1d919061569e565b9150613989565b60016019600084815260200190815260200160002060000160006101000a81548160ff021916908315150217905550600183901c92508080613a6590615631565b91505061396f565b506102946014541015613ad3576000601454610294613a8c9190615499565b905060646023826618de76816d8000613aa5919061543f565b613aaf919061543f565b613ab9919061540e565b60116000828254613aca91906153b8565b92505081905550505b5050565b613adf613f32565b73ffffffffffffffffffffffffffffffffffffffff16613afd611ca6565b73ffffffffffffffffffffffffffffffffffffffff1614613b53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b4a90615200565b60405180910390fd5b565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b613c236142f2565b613c3f6004600084815260200190815260200160002054613f3a565b9050919050565b60008054905090565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613c756134e4565b8786866040518563ffffffff1660e01b8152600401613c979493929190614f8c565b602060405180830381600087803b158015613cb157600080fd5b505af1925050508015613ce257506040513d601f19601f82011682018060405250810190613cdf9190614924565b60015b613d5c573d8060008114613d12576040519150601f19603f3d011682016040523d82523d6000602084013e613d17565b606091505b50600081511415613d54576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b613db76142f2565b613dc8613dc38361359e565b613f3a565b9050919050565b6060604051806080016040528060438152602001615a6860439139905090565b606060806040510190508060405280825b600115613e2b57600183039250600a81066030018353600a8104905080613e2657613e2b565b613e00565b508181036020830392508083525050919050565b600082613e4c8584613ff0565b1490509392505050565b613e70828260405180602001604052806000815250614046565b5050565b600160166000600184613e8791906153b8565b815260200190815260200160002060006101000a81548160ff021916908315150217905550601c6001601c80549050613ec09190615499565b81548110613ed157613ed061578b565b5b9060005260206000200154601c8281548110613ef057613eef61578b565b5b9060005260206000200181905550601c805480613f1057613f0f61575c565b5b6001900381819060005260206000200160009055905550565b60009392505050565b600033905090565b613f426142f2565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b60008082905060005b845181101561403b57614026828683815181106140195761401861578b565b5b60200260200101516140e3565b9150808061403390615631565b915050613ff9565b508091505092915050565b614050838361410e565b60008373ffffffffffffffffffffffffffffffffffffffff163b146140de57600080549050600083820390505b6140906000868380600101945086613c4f565b6140c6576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061407d5781600054146140db57600080fd5b50505b505050565b60008183106140fb576140f682846142cb565b614106565b61410583836142cb565b5b905092915050565b600080549050600082141561414f576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61415c60008483856136d7565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506141d3836141c460008660006136dd565b6141cd856142e2565b17613705565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461427457808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050614239565b5060008214156142b0576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506142c66000848385613730565b505050565b600082600052816020526040600020905092915050565b60006001821460e11b9050919050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b600061435461434f8461529b565b615276565b90508083825260208201905082856020860282011115614377576143766157f3565b5b60005b858110156143a7578161438d88826145a5565b84526020840193506020830192505060018101905061437a565b5050509392505050565b60006143c46143bf846152c7565b615276565b9050828152602081018484840111156143e0576143df6157f8565b5b6143eb84828561558c565b509392505050565b60008135905061440281615a0b565b92915050565b60008083601f84011261441e5761441d6157ee565b5b8235905067ffffffffffffffff81111561443b5761443a6157e9565b5b602083019150836020820283011115614457576144566157f3565b5b9250929050565b60008083601f840112614474576144736157ee565b5b8235905067ffffffffffffffff811115614491576144906157e9565b5b6020830191508360208202830111156144ad576144ac6157f3565b5b9250929050565b600082601f8301126144c9576144c86157ee565b5b81356144d9848260208601614341565b91505092915050565b6000813590506144f181615a22565b92915050565b60008135905061450681615a39565b92915050565b60008151905061451b81615a39565b92915050565b60008083601f840112614537576145366157ee565b5b8235905067ffffffffffffffff811115614554576145536157e9565b5b6020830191508360018202830111156145705761456f6157f3565b5b9250929050565b600082601f83011261458c5761458b6157ee565b5b813561459c8482602086016143b1565b91505092915050565b6000813590506145b481615a50565b92915050565b6000815190506145c981615a50565b92915050565b6000602082840312156145e5576145e4615802565b5b60006145f3848285016143f3565b91505092915050565b6000806040838503121561461357614612615802565b5b6000614621858286016143f3565b9250506020614632858286016143f3565b9150509250929050565b60008060006060848603121561465557614654615802565b5b6000614663868287016143f3565b9350506020614674868287016143f3565b9250506040614685868287016145a5565b9150509250925092565b600080600080608085870312156146a9576146a8615802565b5b60006146b7878288016143f3565b94505060206146c8878288016143f3565b93505060406146d9878288016145a5565b925050606085013567ffffffffffffffff8111156146fa576146f96157fd565b5b61470687828801614577565b91505092959194509250565b6000806040838503121561472957614728615802565b5b6000614737858286016143f3565b9250506020614748858286016144e2565b9150509250929050565b6000806040838503121561476957614768615802565b5b6000614777858286016143f3565b9250506020614788858286016145a5565b9150509250929050565b6000806000606084860312156147ab576147aa615802565b5b60006147b9868287016143f3565b93505060206147ca868287016145a5565b92505060406147db868287016145a5565b9150509250925092565b6000806000604084860312156147fe576147fd615802565b5b600084013567ffffffffffffffff81111561481c5761481b6157fd565b5b61482886828701614408565b9350935050602084013567ffffffffffffffff81111561484b5761484a6157fd565b5b614857868287016144b4565b9150509250925092565b6000806020838503121561487857614877615802565b5b600083013567ffffffffffffffff811115614896576148956157fd565b5b6148a28582860161445e565b92509250509250929050565b6000602082840312156148c4576148c3615802565b5b600082013567ffffffffffffffff8111156148e2576148e16157fd565b5b6148ee848285016144b4565b91505092915050565b60006020828403121561490d5761490c615802565b5b600061491b848285016144f7565b91505092915050565b60006020828403121561493a57614939615802565b5b60006149488482850161450c565b91505092915050565b6000806020838503121561496857614967615802565b5b600083013567ffffffffffffffff811115614986576149856157fd565b5b61499285828601614521565b92509250509250929050565b6000602082840312156149b4576149b3615802565b5b60006149c2848285016145a5565b91505092915050565b6000602082840312156149e1576149e0615802565b5b60006149ef848285016145ba565b91505092915050565b60008060408385031215614a0f57614a0e615802565b5b6000614a1d858286016145a5565b925050602083013567ffffffffffffffff811115614a3e57614a3d6157fd565b5b614a4a858286016144b4565b9150509250929050565b6000614a608383614dc8565b60808301905092915050565b6000614a788383614e90565b60208301905092915050565b614a8d816154cd565b82525050565b614a9c816154cd565b82525050565b614ab3614aae826154cd565b61567a565b82525050565b6000614ac482615318565b614ace818561535e565b9350614ad9836152f8565b8060005b83811015614b0a578151614af18882614a54565b9750614afc83615344565b925050600181019050614add565b5085935050505092915050565b6000614b2282615323565b614b2c818561536f565b9350614b3783615308565b8060005b83811015614b68578151614b4f8882614a6c565b9750614b5a83615351565b925050600181019050614b3b565b5085935050505092915050565b614b7e816154df565b82525050565b614b8d816154df565b82525050565b614b9c816154eb565b82525050565b6000614bae8385615391565b9350614bbb83858461558c565b82840190509392505050565b6000614bd28261532e565b614bdc8185615380565b9350614bec81856020860161559b565b614bf581615807565b840191505092915050565b6000614c0b82615339565b614c15818561539c565b9350614c2581856020860161559b565b614c2e81615807565b840191505092915050565b6000614c4482615339565b614c4e81856153ad565b9350614c5e81856020860161559b565b80840191505092915050565b6000614c77603b8361539c565b9150614c8282615825565b604082019050919050565b6000614c9a60148361539c565b9150614ca582615874565b602082019050919050565b6000614cbd60268361539c565b9150614cc88261589d565b604082019050919050565b6000614ce060148361539c565b9150614ceb826158ec565b602082019050919050565b6000614d03602b8361539c565b9150614d0e82615915565b604082019050919050565b6000614d26601a8361539c565b9150614d3182615964565b602082019050919050565b6000614d49600e8361539c565b9150614d548261598d565b602082019050919050565b6000614d6c60208361539c565b9150614d77826159b6565b602082019050919050565b6000614d8f600083615391565b9150614d9a826159df565b600082019050919050565b6000614db2601f8361539c565b9150614dbd826159e2565b602082019050919050565b608082016000820151614dde6000850182614a84565b506020820151614df16020850182614ebd565b506040820151614e046040850182614b75565b506060820151614e176060850182614e81565b50505050565b608082016000820151614e336000850182614a84565b506020820151614e466020850182614ebd565b506040820151614e596040850182614b75565b506060820151614e6c6060850182614e81565b50505050565b614e7b81615521565b82525050565b614e8a8161554f565b82525050565b614e998161555e565b82525050565b614ea88161555e565b82525050565b614eb781615568565b82525050565b614ec681615578565b82525050565b614ed581615578565b82525050565b6000614ee78284614aa2565b60148201915081905092915050565b6000614f03828486614ba2565b91508190509392505050565b6000614f1b8285614c39565b9150614f278284614c39565b91508190509392505050565b6000614f3e82614d82565b9150819050919050565b6000602082019050614f5d6000830184614a93565b92915050565b6000604082019050614f786000830185614a93565b614f856020830184614a93565b9392505050565b6000608082019050614fa16000830187614a93565b614fae6020830186614a93565b614fbb6040830185614e9f565b8181036060830152614fcd8184614bc7565b905095945050505050565b60006020820190508181036000830152614ff28184614ab9565b905092915050565b600060208201905081810360008301526150148184614b17565b905092915050565b60006020820190506150316000830184614b84565b92915050565b600060408201905061504c6000830185614b84565b6150596020830184614b84565b9392505050565b60006040820190506150756000830185614b84565b81810360208301526150878184614bc7565b90509392505050565b60006020820190506150a56000830184614b93565b92915050565b600060a0820190506150c06000830188614b93565b6150cd6020830187614ecc565b6150da6040830186614e72565b6150e76060830185614eae565b6150f46080830184614eae565b9695505050505050565b600060208201905081810360008301526151188184614c00565b905092915050565b6000602082019050818103600083015261513981614c6a565b9050919050565b6000602082019050818103600083015261515981614c8d565b9050919050565b6000602082019050818103600083015261517981614cb0565b9050919050565b6000602082019050818103600083015261519981614cd3565b9050919050565b600060208201905081810360008301526151b981614cf6565b9050919050565b600060208201905081810360008301526151d981614d19565b9050919050565b600060208201905081810360008301526151f981614d3c565b9050919050565b6000602082019050818103600083015261521981614d5f565b9050919050565b6000602082019050818103600083015261523981614da5565b9050919050565b60006080820190506152556000830184614e1d565b92915050565b60006020820190506152706000830184614e9f565b92915050565b6000615280615291565b905061528c8282615600565b919050565b6000604051905090565b600067ffffffffffffffff8211156152b6576152b56157ba565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156152e2576152e16157ba565b5b6152eb82615807565b9050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006153c38261555e565b91506153ce8361555e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115615403576154026156cf565b5b828201905092915050565b60006154198261555e565b91506154248361555e565b925082615434576154336156fe565b5b828204905092915050565b600061544a8261555e565b91506154558361555e565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561548e5761548d6156cf565b5b828202905092915050565b60006154a48261555e565b91506154af8361555e565b9250828210156154c2576154c16156cf565b5b828203905092915050565b60006154d88261552f565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062ffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600067ffffffffffffffff82169050919050565b82818337600083830152505050565b60005b838110156155b957808201518184015260208101905061559e565b838111156155c8576000848401525b50505050565b600060028204905060018216806155e657607f821691505b602082108114156155fa576155f961572d565b5b50919050565b61560982615807565b810181811067ffffffffffffffff82111715615628576156276157ba565b5b80604052505050565b600061563c8261555e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561566f5761566e6156cf565b5b600182019050919050565b60006156858261568c565b9050919050565b600061569782615818565b9050919050565b60006156a98261555e565b91506156b48361555e565b9250826156c4576156c36156fe565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4944206973206e6f7420656c696769626c6520666f7220726577617264206f7260008201527f204944206861732077697468647261776e20746865207072697a650000000000602082015250565b7f4e6f7420696e2074686520616c6c6f776c697374000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4661696c656420746f2073656e64204574686572000000000000000000000000600082015250565b7f4d617820616d6f756e74206f66204e46547320636c61696d656420666f72207460008201527f6869732061646472657373000000000000000000000000000000000000000000602082015250565b7f4661696c656420746f2073656e64207468652072657761726473000000000000600082015250565b7f4e6f7420656e6f75676820455448000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b50565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b615a14816154cd565b8114615a1f57600080fd5b50565b615a2b816154df565b8114615a3657600080fd5b50565b615a42816154f5565b8114615a4d57600080fd5b50565b615a598161555e565b8114615a6457600080fd5b5056fe697066733a2f2f6261667962656963697a647535366b75697371376b6369616570646f727a74366174656c6769686f6d6773626f676576743570716868666a6878342fa2646970667358221220db0b5a6516b3295b40daa7a7d4fc27240a39bf92144e501a6bd55610faf6e77364736f6c63430008070033000000000000000000000000000000000000000000000000000000000000012a

Deployed Bytecode

0x60806040526004361061027d5760003560e01c80638462151c1161014f578063bdf5ac88116100c1578063e985e9c51161007a578063e985e9c514610a43578063f034321014610a80578063f2b4eea514610a9c578063f2fde38b14610ad9578063f8e93ef914610b02578063fd2b049214610b1e5761027d565b8063bdf5ac88146108e8578063c23dc68f14610926578063c87b56dd14610963578063cc08a71a146109a0578063d3691df0146109c9578063e41cc2af14610a065761027d565b806399a2557a1161011357806399a2557a146107c35780639a9bdca714610800578063a22cb4651461083d578063b88d4fde14610866578063b9e693051461088f578063bdefd0de146108cc5761027d565b80638462151c146106c75780638da5cb5b146107045780639534831d1461072f57806395d89b411461075a57806396d8f09c146107855761027d565b80632eb4a7ab116101f35780636352211e116101ac5780636352211e146105b15780636e04ff0d146105ee57806370a082311461062c578063715018a614610669578063748de8d31461068057806380221502146106ab5761027d565b80632eb4a7ab146104b057806341dfc32d146104db57806342842e0e146105065780634585e33b1461052f5780635092bed9146105585780635bbb2177146105745761027d565b8063095ea7b311610245578063095ea7b3146103a157806316363477146103ca57806318160ddd146104085780631fe543e3146104335780632068689d1461045c57806323b872dd146104875761027d565b806301fab91a1461028257806301ffc9a7146102bf57806306fdde03146102fc57806308008e8d14610327578063081812fc14610364575b600080fd5b34801561028e57600080fd5b506102a960048036038101906102a491906145cf565b610b3a565b6040516102b6919061525b565b60405180910390f35b3480156102cb57600080fd5b506102e660048036038101906102e191906148f7565b610b52565b6040516102f3919061501c565b60405180910390f35b34801561030857600080fd5b50610311610be4565b60405161031e91906150fe565b60405180910390f35b34801561033357600080fd5b5061034e600480360381019061034991906145cf565b610c76565b60405161035b919061525b565b60405180910390f35b34801561037057600080fd5b5061038b6004803603810190610386919061499e565b610cd2565b6040516103989190614f48565b60405180910390f35b3480156103ad57600080fd5b506103c860048036038101906103c39190614752565b610d51565b005b3480156103d657600080fd5b506103f160048036038101906103ec919061499e565b610e95565b6040516103ff929190615037565b60405180910390f35b34801561041457600080fd5b5061041d610ed3565b60405161042a919061525b565b60405180910390f35b34801561043f57600080fd5b5061045a600480360381019061045591906149f8565b610eea565b005b34801561046857600080fd5b50610471610faa565b60405161047e919061525b565b60405180910390f35b34801561049357600080fd5b506104ae60048036038101906104a9919061463c565b610fb0565b005b3480156104bc57600080fd5b506104c56112d5565b6040516104d29190615090565b60405180910390f35b3480156104e757600080fd5b506104f06112db565b6040516104fd9190614ffa565b60405180910390f35b34801561051257600080fd5b5061052d6004803603810190610528919061463c565b611333565b005b34801561053b57600080fd5b5061055660048036038101906105519190614951565b611353565b005b610572600480360381019061056d919061499e565b61148a565b005b34801561058057600080fd5b5061059b60048036038101906105969190614861565b6116f3565b6040516105a89190614fd8565b60405180910390f35b3480156105bd57600080fd5b506105d860048036038101906105d3919061499e565b6117b6565b6040516105e59190614f48565b60405180910390f35b3480156105fa57600080fd5b5061061560048036038101906106109190614951565b6117c8565b604051610623929190615060565b60405180910390f35b34801561063857600080fd5b50610653600480360381019061064e91906145cf565b61193f565b604051610660919061525b565b60405180910390f35b34801561067557600080fd5b5061067e6119f8565b005b34801561068c57600080fd5b50610695611a0c565b6040516106a2919061525b565b60405180910390f35b6106c560048036038101906106c0919061499e565b611a12565b005b3480156106d357600080fd5b506106ee60048036038101906106e991906145cf565b611b5c565b6040516106fb9190614ffa565b60405180910390f35b34801561071057600080fd5b50610719611ca6565b6040516107269190614f48565b60405180910390f35b34801561073b57600080fd5b50610744611cd0565b604051610751919061525b565b60405180910390f35b34801561076657600080fd5b5061076f611cdf565b60405161077c91906150fe565b60405180910390f35b34801561079157600080fd5b506107ac60048036038101906107a7919061499e565b611d71565b6040516107ba929190615037565b60405180910390f35b3480156107cf57600080fd5b506107ea60048036038101906107e59190614792565b611daf565b6040516107f79190614ffa565b60405180910390f35b34801561080c57600080fd5b506108276004803603810190610822919061499e565b611fc3565b604051610834919061525b565b60405180910390f35b34801561084957600080fd5b50610864600480360381019061085f9190614712565b611fe7565b005b34801561087257600080fd5b5061088d6004803603810190610888919061468f565b61215f565b005b34801561089b57600080fd5b506108b660048036038101906108b191906145cf565b6121d2565b6040516108c3919061525b565b60405180910390f35b6108e660048036038101906108e1919061499e565b6121e4565b005b3480156108f457600080fd5b5061090f600480360381019061090a919061499e565b61244d565b60405161091d929190615037565b60405180910390f35b34801561093257600080fd5b5061094d6004803603810190610948919061499e565b61248b565b60405161095a9190615240565b60405180910390f35b34801561096f57600080fd5b5061098a6004803603810190610985919061499e565b6124f5565b60405161099791906150fe565b60405180910390f35b3480156109ac57600080fd5b506109c760048036038101906109c291906147e5565b6128a3565b005b3480156109d557600080fd5b506109f060048036038101906109eb919061499e565b612bc6565b6040516109fd919061501c565b60405180910390f35b348015610a1257600080fd5b50610a2d6004803603810190610a28919061499e565b612cc6565b604051610a3a919061525b565b60405180910390f35b348015610a4f57600080fd5b50610a6a6004803603810190610a6591906145fc565b612cde565b604051610a77919061501c565b60405180910390f35b610a9a6004803603810190610a95919061499e565b612d72565b005b348015610aa857600080fd5b50610ac36004803603810190610abe919061499e565b612fdb565b604051610ad0919061501c565b60405180910390f35b348015610ae557600080fd5b50610b006004803603810190610afb91906145cf565b612ffb565b005b610b1c6004803603810190610b1791906148ae565b61307f565b005b610b386004803603810190610b33919061499e565b6132f8565b005b60136020528060005260406000206000915090505481565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610bad57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610bdd5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610bf3906155ce565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1f906155ce565b8015610c6c5780601f10610c4157610100808354040283529160200191610c6c565b820191906000526020600020905b815481529060010190602001808311610c4f57829003601f168201915b5050505050905090565b6000601360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610cc18361342e565b610ccb9190615499565b9050919050565b6000610cdd82613485565b610d13576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610d5c826117b6565b90508073ffffffffffffffffffffffffffffffffffffffff16610d7d6134e4565b73ffffffffffffffffffffffffffffffffffffffff1614610de057610da981610da46134e4565b612cde565b610ddf576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60176020528060005260406000206000915090508060000160009054906101000a900460ff16908060000160019054906101000a900460ff16905082565b6000610edd6134ec565b6001546000540303905090565b7f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e6990973ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610f9c57337f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e699096040517f1cf993f4000000000000000000000000000000000000000000000000000000008152600401610f93929190614f63565b60405180910390fd5b610fa682826134f1565b5050565b60125481565b6000610fbb8261359e565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611022576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061102e8461366c565b91509150611044818761103f6134e4565b613693565b61109057611059866110546134e4565b612cde565b61108f576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156110f7576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61110486868660016136d7565b801561110f57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506111dd856111b98888876136dd565b7c020000000000000000000000000000000000000000000000000000000017613705565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415611265576000600185019050600060046000838152602001908152602001600020541415611263576000548114611262578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46112cd8686866001613730565b505050505050565b601b5481565b6060601c80548060200260200160405190810160405280929190818152602001828054801561132957602002820191906000526020600020905b815481526020019060010190808311611315575b5050505050905090565b61134e8383836040518060200160405280600081525061215f565b505050565b7f5fe7f977e71dba2ea1a68e21057beebb9be2ac30c6410aa38d4f3fbe41dcffd28282604051611384929190614ef6565b60405180910390201480156113a15750611e6061139f613736565b115b80156113b357506001601c8054905014155b80156113ce575062015180600f54426113cc9190615499565b115b156113e35742600f819055506113e2613749565b5b7ff2ee15ea639b73fa3db9b34a245bdfa015c260c598b211bf05a1ecc4b3e3b4f28282604051611414929190614ef6565b604051809103902014801561142e57506001601c80549050145b80156114465750601060009054906101000a900460ff165b15611486576000601060006101000a81548160ff021916908315150217905550611485600d60006001811061147e5761147d61578b565b5b015461384d565b5b5050565b600260085414156114d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c790615220565b60405180910390fd5b60026008819055503373ffffffffffffffffffffffffffffffffffffffff166114f8826117b6565b73ffffffffffffffffffffffffffffffffffffffff161461151857600080fd5b6000601560008381526020019081526020016000205490506000610457601c60008154811061154a5761154961578b565b5b906000526020600020015461155f9190615499565b90506000818361156f9190615499565b90506019600082815260200190815260200160002060000160009054906101000a900460ff1680156115c257506019600082815260200190815260200160002060000160019054906101000a900460ff16155b611601576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f890615120565b60405180910390fd5b60016019600083815260200190815260200160002060000160016101000a81548160ff02191690831515021790555060003373ffffffffffffffffffffffffffffffffffffffff1667016345785d8a000060405161165e90614f33565b60006040518083038185875af1925050503d806000811461169b576040519150601f19603f3d011682016040523d82523d6000602084013e6116a0565b606091505b50509050806116e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116db906151c0565b60405180910390fd5b50505050600160088190555050565b6060600083839050905060008167ffffffffffffffff811115611719576117186157ba565b5b60405190808252806020026020018201604052801561175257816020015b61173f6142f2565b8152602001906001900390816117375790505b50905060005b8281146117aa576117818686838181106117755761177461578b565b5b9050602002013561248b565b8282815181106117945761179361578b565b5b6020026020010181905250806001019050611758565b50809250505092915050565b60006117c18261359e565b9050919050565b600060607f5fe7f977e71dba2ea1a68e21057beebb9be2ac30c6410aa38d4f3fbe41dcffd284846040516117fd929190614ef6565b6040518091039020141561188e57611e60611816613736565b118015611832575062015180600f54426118309190615499565b115b801561184457506001601c8054905014155b915083838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505090505b7ff2ee15ea639b73fa3db9b34a245bdfa015c260c598b211bf05a1ecc4b3e3b4f284846040516118bf929190614ef6565b60405180910390201415611938576001601c805490501480156118ee5750601060009054906101000a900460ff165b915083838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505090505b9250929050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156119a7576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611a00613ad7565b611a0a6000613b55565b565b60115481565b60026008541415611a58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4f90615220565b60405180910390fd5b6002600881905550611a68613ad7565b601254811115611a7757600080fd5b8060126000828254611a899190615499565b9250508190555060007347493b9a8d72e4c1487ab1022aa3d71627a27dd173ffffffffffffffffffffffffffffffffffffffff1682604051611aca90614f33565b60006040518083038185875af1925050503d8060008114611b07576040519150601f19603f3d011682016040523d82523d6000602084013e611b0c565b606091505b5050905080611b50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4790615180565b60405180910390fd5b50600160088190555050565b60606000806000611b6c8561193f565b905060008167ffffffffffffffff811115611b8a57611b896157ba565b5b604051908082528060200260200182016040528015611bb85781602001602082028036833780820191505090505b509050611bc36142f2565b6000611bcd6134ec565b90505b838614611c9857611be081613c1b565b9150816040015115611bf157611c8d565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614611c3157816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611c8c5780838780600101985081518110611c7f57611c7e61578b565b5b6020026020010181815250505b5b806001019050611bd0565b508195505050505050919050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000611cda613736565b905090565b606060038054611cee906155ce565b80601f0160208091040260200160405190810160405280929190818152602001828054611d1a906155ce565b8015611d675780601f10611d3c57610100808354040283529160200191611d67565b820191906000526020600020905b815481529060010190602001808311611d4a57829003601f168201915b5050505050905090565b60186020528060005260406000206000915090508060000160009054906101000a900460ff16908060000160019054906101000a900460ff16905082565b6060818310611dea576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611df5613c46565b9050611dff6134ec565b851015611e1157611e0e6134ec565b94505b80841115611e1d578093505b6000611e288761193f565b905084861015611e4b576000868603905081811015611e45578091505b50611e50565b600090505b60008167ffffffffffffffff811115611e6c57611e6b6157ba565b5b604051908082528060200260200182016040528015611e9a5781602001602082028036833780820191505090505b5090506000821415611eb25780945050505050611fbc565b6000611ebd8861248b565b905060008160400151611ed257816000015190505b60008990505b888114158015611ee85750848714155b15611fae57611ef681613c1b565b9250826040015115611f0757611fa3565b600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff1614611f4757826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611fa25780848880600101995081518110611f9557611f9461578b565b5b6020026020010181815250505b5b806001019050611ed8565b508583528296505050505050505b9392505050565b601c8181548110611fd357600080fd5b906000526020600020016000915090505481565b611fef6134e4565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612054576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006120616134e4565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661210e6134e4565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612153919061501c565b60405180910390a35050565b61216a848484610fb0565b60008373ffffffffffffffffffffffffffffffffffffffff163b146121cc5761219584848484613c4f565b6121cb576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60006121dd8261342e565b9050919050565b6002600854141561222a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222190615220565b60405180910390fd5b60026008819055503373ffffffffffffffffffffffffffffffffffffffff16612252826117b6565b73ffffffffffffffffffffffffffffffffffffffff161461227257600080fd5b6000601560008381526020019081526020016000205490506000610457601c6000815481106122a4576122a361578b565b5b90600052602060002001546122b99190615499565b9050600081836122c99190615499565b90506018600082815260200190815260200160002060000160009054906101000a900460ff16801561231c57506018600082815260200190815260200160002060000160019054906101000a900460ff16155b61235b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161235290615120565b60405180910390fd5b60016018600083815260200190815260200160002060000160016101000a81548160ff02191690831515021790555060003373ffffffffffffffffffffffffffffffffffffffff166706f05b59d3b200006040516123b890614f33565b60006040518083038185875af1925050503d80600081146123f5576040519150601f19603f3d011682016040523d82523d6000602084013e6123fa565b606091505b505090508061243e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612435906151c0565b60405180910390fd5b50505050600160088190555050565b60196020528060005260406000206000915090508060000160009054906101000a900460ff16908060000160019054906101000a900460ff16905082565b6124936142f2565b61249b6142f2565b6124a36134ec565b8310806124b757506124b3613c46565b8310155b156124c557809150506124f0565b6124ce83613c1b565b90508060400151156124e357809150506124f0565b6124ec83613daf565b9150505b919050565b606061250082613485565b612536576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612540613dcf565b905060006015600085815260200190815260200160002054905060006104578261256a919061540e565b90506016600082815260200190815260200160002060009054906101000a900460ff16156125e7576000835114156125b157604051806020016040528060008152506125dd565b826125bc6008613def565b6040516020016125cd929190614f0f565b6040516020818303038152906040525b935050505061289e565b601060009054906101000a900460ff16801561265a575060196000610457601c60008154811061261a5761261961578b565b5b906000526020600020015461262f9190615499565b8461263a9190615499565b815260200190815260200160002060000160009054906101000a900460ff165b156126b45760008351141561267e57604051806020016040528060008152506126aa565b826126896009613def565b60405160200161269a929190614f0f565b6040516020818303038152906040525b935050505061289e565b601060009054906101000a900460ff168015612727575060186000610457601c6000815481106126e7576126e661578b565b5b90600052602060002001546126fc9190615499565b846127079190615499565b815260200190815260200160002060000160009054906101000a900460ff165b156127815760008351141561274b5760405180602001604052806000815250612777565b82612756600a613def565b604051602001612767929190614f0f565b6040516020818303038152906040525b935050505061289e565b601060009054906101000a900460ff1680156127f4575060176000610457601c6000815481106127b4576127b361578b565b5b90600052602060002001546127c99190615499565b846127d49190615499565b815260200190815260200160002060000160009054906101000a900460ff165b1561284e576000835114156128185760405180602001604052806000815250612844565b82612823600b613def565b604051602001612834929190614f0f565b6040516020818303038152906040525b935050505061289e565b60008351141561286d5760405180602001604052806000815250612898565b8261287782613def565b604051602001612888929190614f0f565b6040516020818303038152906040525b93505050505b919050565b6000815190506000336040516020016128bc9190614edb565b604051602081830303815290604052805190602001209050612922858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050601b5483613e3f565b612961576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161295890615140565b60405180910390fd5b6021601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054836129ae91906153b8565b11156129ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129e6906151a0565b60405180910390fd5b60006129f9613736565b905060005b83811015612b45576000858281518110612a1b57612a1a61578b565b5b60200260200101519050600181612a3291906153b8565b610457601c8381548110612a4957612a4861578b565b5b9060005260206000200154612a5e919061540e565b14612a6857600080fd5b601c8181548110612a7c57612a7b61578b565b5b906000526020600020015460156000858152602001908152602001600020819055506001601c8281548110612ab457612ab361578b565b5b906000526020600020016000828254612acd91906153b8565b92505081905550803373ffffffffffffffffffffffffffffffffffffffff167f0141ca336fc1dfe5d46371fa6db9d9f55abbb65ff04c52732b83ced504a54d7585604051612b1b919061525b565b60405180910390a38280612b2e90615631565b935050508080612b3d90615631565b9150506129fe565b5082601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612b9591906153b8565b9250508190555060146000815480929190612baf90615631565b9190505550612bbe3384613e56565b505050505050565b600080601560008481526020019081526020016000205490506000610457601c600081548110612bf957612bf861578b565b5b9060005260206000200154612c0e9190615499565b905060008183612c1e9190615499565b90506018600082815260200190815260200160002060000160009054906101000a900460ff16158015612c7257506019600082815260200190815260200160002060000160009054906101000a900460ff16155b8015612c7e5750818310155b8015612ca85750601c600081548110612c9a57612c9961578b565b5b906000526020600020015483105b15612cb95760019350505050612cc1565b600093505050505b919050565b60156020528060005260406000206000915090505481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60026008541415612db8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612daf90615220565b60405180910390fd5b60026008819055503373ffffffffffffffffffffffffffffffffffffffff16612de0826117b6565b73ffffffffffffffffffffffffffffffffffffffff1614612e0057600080fd5b6000601560008381526020019081526020016000205490506000610457601c600081548110612e3257612e3161578b565b5b9060005260206000200154612e479190615499565b905060008183612e579190615499565b90506017600082815260200190815260200160002060000160009054906101000a900460ff168015612eaa57506017600082815260200190815260200160002060000160019054906101000a900460ff16155b612ee9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ee090615120565b60405180910390fd5b60016017600083815260200190815260200160002060000160016101000a81548160ff02191690831515021790555060003373ffffffffffffffffffffffffffffffffffffffff16676124fee993bc0000604051612f4690614f33565b60006040518083038185875af1925050503d8060008114612f83576040519150601f19603f3d011682016040523d82523d6000602084013e612f88565b606091505b5050905080612fcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fc3906151c0565b60405180910390fd5b50505050600160088190555050565b60166020528060005260406000206000915054906101000a900460ff1681565b613003613ad7565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613073576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161306a90615160565b60405180910390fd5b61307c81613b55565b50565b600081519050806618de76816d8000613098919061543f565b34146130d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130d0906151e0565b60405180910390fd5b600b6130e433610c76565b826130ef91906153b8565b1115613130576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613127906151a0565b60405180910390fd5b600061313a613736565b905060005b8281101561328657600084828151811061315c5761315b61578b565b5b6020026020010151905060018161317391906153b8565b610457601c838154811061318a5761318961578b565b5b906000526020600020015461319f919061540e565b146131a957600080fd5b601c81815481106131bd576131bc61578b565b5b906000526020600020015460156000858152602001908152602001600020819055506001601c82815481106131f5576131f461578b565b5b90600052602060002001600082825461320e91906153b8565b92505081905550803373ffffffffffffffffffffffffffffffffffffffff167f0141ca336fc1dfe5d46371fa6db9d9f55abbb65ff04c52732b83ced504a54d758560405161325c919061525b565b60405180910390a3828061326f90615631565b93505050808061327e90615631565b91505061313f565b506064600f34613296919061543f565b6132a0919061540e565b601160008282546132b191906153b8565b9250508190555060646032346132c7919061543f565b6132d1919061540e565b601260008282546132e291906153b8565b925050819055506132f33383613e56565b505050565b6002600854141561333e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161333590615220565b60405180910390fd5b600260088190555061334e613ad7565b60115481111561335d57600080fd5b806011600082825461336f9190615499565b9250508190555060003373ffffffffffffffffffffffffffffffffffffffff168260405161339c90614f33565b60006040518083038185875af1925050503d80600081146133d9576040519150601f19603f3d011682016040523d82523d6000602084013e6133de565b606091505b5050905080613422576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161341990615180565b60405180910390fd5b50600160088190555050565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b6000816134906134ec565b1115801561349f575060005482105b80156134dd575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b6001601c805490501115613570576000601c805490508260008151811061351b5761351a61578b565b5b602002602001015161352d919061569e565b905061353881613e74565b8160008151811061354c5761354b61578b565b5b6020026020010151600d6000600181106135695761356861578b565b5b0181905550505b6001601c80549050141561359a576001601060006101000a81548160ff0219169083151502179055505b5050565b600080829050806135ad6134ec565b11613635576000548110156136345760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415613632575b60008114156136285760046000836001900393508381526020019081526020016000205490506135fd565b8092505050613667565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86136f4868684613f29565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60006137406134ec565b60005403905090565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635d3b1d30600b54600a60149054906101000a900467ffffffffffffffff16600c60009054906101000a900461ffff16600e60009054906101000a900463ffffffff16600e60049054906101000a900463ffffffff166040518663ffffffff1660e01b81526004016137f89594939291906150ab565b602060405180830381600087803b15801561381257600080fd5b505af1158015613826573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061384a91906149cb565b50565b60006104578261385d919061569e565b905060016017600083815260200190815260200160002060000160006101000a81548160ff021916908315150217905550600182901c915060005b600681101561396b57610457836138af919061569e565b91505b6018600083815260200190815260200160002060000160009054906101000a900460ff168061390157506017600083815260200190815260200160002060000160009054906101000a900460ff165b1561392257600183901c92506104578361391b919061569e565b91506138b2565b60016018600084815260200190815260200160002060000160006101000a81548160ff021916908315150217905550600183901c9250808061396390615631565b915050613898565b5060005b6046811015613a6d5761045783613986919061569e565b91505b6018600083815260200190815260200160002060000160009054906101000a900460ff16806139d857506019600083815260200190815260200160002060000160009054906101000a900460ff165b80613a0357506017600083815260200190815260200160002060000160009054906101000a900460ff165b15613a2457600183901c925061045783613a1d919061569e565b9150613989565b60016019600084815260200190815260200160002060000160006101000a81548160ff021916908315150217905550600183901c92508080613a6590615631565b91505061396f565b506102946014541015613ad3576000601454610294613a8c9190615499565b905060646023826618de76816d8000613aa5919061543f565b613aaf919061543f565b613ab9919061540e565b60116000828254613aca91906153b8565b92505081905550505b5050565b613adf613f32565b73ffffffffffffffffffffffffffffffffffffffff16613afd611ca6565b73ffffffffffffffffffffffffffffffffffffffff1614613b53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b4a90615200565b60405180910390fd5b565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b613c236142f2565b613c3f6004600084815260200190815260200160002054613f3a565b9050919050565b60008054905090565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613c756134e4565b8786866040518563ffffffff1660e01b8152600401613c979493929190614f8c565b602060405180830381600087803b158015613cb157600080fd5b505af1925050508015613ce257506040513d601f19601f82011682018060405250810190613cdf9190614924565b60015b613d5c573d8060008114613d12576040519150601f19603f3d011682016040523d82523d6000602084013e613d17565b606091505b50600081511415613d54576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b613db76142f2565b613dc8613dc38361359e565b613f3a565b9050919050565b6060604051806080016040528060438152602001615a6860439139905090565b606060806040510190508060405280825b600115613e2b57600183039250600a81066030018353600a8104905080613e2657613e2b565b613e00565b508181036020830392508083525050919050565b600082613e4c8584613ff0565b1490509392505050565b613e70828260405180602001604052806000815250614046565b5050565b600160166000600184613e8791906153b8565b815260200190815260200160002060006101000a81548160ff021916908315150217905550601c6001601c80549050613ec09190615499565b81548110613ed157613ed061578b565b5b9060005260206000200154601c8281548110613ef057613eef61578b565b5b9060005260206000200181905550601c805480613f1057613f0f61575c565b5b6001900381819060005260206000200160009055905550565b60009392505050565b600033905090565b613f426142f2565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b60008082905060005b845181101561403b57614026828683815181106140195761401861578b565b5b60200260200101516140e3565b9150808061403390615631565b915050613ff9565b508091505092915050565b614050838361410e565b60008373ffffffffffffffffffffffffffffffffffffffff163b146140de57600080549050600083820390505b6140906000868380600101945086613c4f565b6140c6576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061407d5781600054146140db57600080fd5b50505b505050565b60008183106140fb576140f682846142cb565b614106565b61410583836142cb565b5b905092915050565b600080549050600082141561414f576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61415c60008483856136d7565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506141d3836141c460008660006136dd565b6141cd856142e2565b17613705565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461427457808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050614239565b5060008214156142b0576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506142c66000848385613730565b505050565b600082600052816020526040600020905092915050565b60006001821460e11b9050919050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b600061435461434f8461529b565b615276565b90508083825260208201905082856020860282011115614377576143766157f3565b5b60005b858110156143a7578161438d88826145a5565b84526020840193506020830192505060018101905061437a565b5050509392505050565b60006143c46143bf846152c7565b615276565b9050828152602081018484840111156143e0576143df6157f8565b5b6143eb84828561558c565b509392505050565b60008135905061440281615a0b565b92915050565b60008083601f84011261441e5761441d6157ee565b5b8235905067ffffffffffffffff81111561443b5761443a6157e9565b5b602083019150836020820283011115614457576144566157f3565b5b9250929050565b60008083601f840112614474576144736157ee565b5b8235905067ffffffffffffffff811115614491576144906157e9565b5b6020830191508360208202830111156144ad576144ac6157f3565b5b9250929050565b600082601f8301126144c9576144c86157ee565b5b81356144d9848260208601614341565b91505092915050565b6000813590506144f181615a22565b92915050565b60008135905061450681615a39565b92915050565b60008151905061451b81615a39565b92915050565b60008083601f840112614537576145366157ee565b5b8235905067ffffffffffffffff811115614554576145536157e9565b5b6020830191508360018202830111156145705761456f6157f3565b5b9250929050565b600082601f83011261458c5761458b6157ee565b5b813561459c8482602086016143b1565b91505092915050565b6000813590506145b481615a50565b92915050565b6000815190506145c981615a50565b92915050565b6000602082840312156145e5576145e4615802565b5b60006145f3848285016143f3565b91505092915050565b6000806040838503121561461357614612615802565b5b6000614621858286016143f3565b9250506020614632858286016143f3565b9150509250929050565b60008060006060848603121561465557614654615802565b5b6000614663868287016143f3565b9350506020614674868287016143f3565b9250506040614685868287016145a5565b9150509250925092565b600080600080608085870312156146a9576146a8615802565b5b60006146b7878288016143f3565b94505060206146c8878288016143f3565b93505060406146d9878288016145a5565b925050606085013567ffffffffffffffff8111156146fa576146f96157fd565b5b61470687828801614577565b91505092959194509250565b6000806040838503121561472957614728615802565b5b6000614737858286016143f3565b9250506020614748858286016144e2565b9150509250929050565b6000806040838503121561476957614768615802565b5b6000614777858286016143f3565b9250506020614788858286016145a5565b9150509250929050565b6000806000606084860312156147ab576147aa615802565b5b60006147b9868287016143f3565b93505060206147ca868287016145a5565b92505060406147db868287016145a5565b9150509250925092565b6000806000604084860312156147fe576147fd615802565b5b600084013567ffffffffffffffff81111561481c5761481b6157fd565b5b61482886828701614408565b9350935050602084013567ffffffffffffffff81111561484b5761484a6157fd565b5b614857868287016144b4565b9150509250925092565b6000806020838503121561487857614877615802565b5b600083013567ffffffffffffffff811115614896576148956157fd565b5b6148a28582860161445e565b92509250509250929050565b6000602082840312156148c4576148c3615802565b5b600082013567ffffffffffffffff8111156148e2576148e16157fd565b5b6148ee848285016144b4565b91505092915050565b60006020828403121561490d5761490c615802565b5b600061491b848285016144f7565b91505092915050565b60006020828403121561493a57614939615802565b5b60006149488482850161450c565b91505092915050565b6000806020838503121561496857614967615802565b5b600083013567ffffffffffffffff811115614986576149856157fd565b5b61499285828601614521565b92509250509250929050565b6000602082840312156149b4576149b3615802565b5b60006149c2848285016145a5565b91505092915050565b6000602082840312156149e1576149e0615802565b5b60006149ef848285016145ba565b91505092915050565b60008060408385031215614a0f57614a0e615802565b5b6000614a1d858286016145a5565b925050602083013567ffffffffffffffff811115614a3e57614a3d6157fd565b5b614a4a858286016144b4565b9150509250929050565b6000614a608383614dc8565b60808301905092915050565b6000614a788383614e90565b60208301905092915050565b614a8d816154cd565b82525050565b614a9c816154cd565b82525050565b614ab3614aae826154cd565b61567a565b82525050565b6000614ac482615318565b614ace818561535e565b9350614ad9836152f8565b8060005b83811015614b0a578151614af18882614a54565b9750614afc83615344565b925050600181019050614add565b5085935050505092915050565b6000614b2282615323565b614b2c818561536f565b9350614b3783615308565b8060005b83811015614b68578151614b4f8882614a6c565b9750614b5a83615351565b925050600181019050614b3b565b5085935050505092915050565b614b7e816154df565b82525050565b614b8d816154df565b82525050565b614b9c816154eb565b82525050565b6000614bae8385615391565b9350614bbb83858461558c565b82840190509392505050565b6000614bd28261532e565b614bdc8185615380565b9350614bec81856020860161559b565b614bf581615807565b840191505092915050565b6000614c0b82615339565b614c15818561539c565b9350614c2581856020860161559b565b614c2e81615807565b840191505092915050565b6000614c4482615339565b614c4e81856153ad565b9350614c5e81856020860161559b565b80840191505092915050565b6000614c77603b8361539c565b9150614c8282615825565b604082019050919050565b6000614c9a60148361539c565b9150614ca582615874565b602082019050919050565b6000614cbd60268361539c565b9150614cc88261589d565b604082019050919050565b6000614ce060148361539c565b9150614ceb826158ec565b602082019050919050565b6000614d03602b8361539c565b9150614d0e82615915565b604082019050919050565b6000614d26601a8361539c565b9150614d3182615964565b602082019050919050565b6000614d49600e8361539c565b9150614d548261598d565b602082019050919050565b6000614d6c60208361539c565b9150614d77826159b6565b602082019050919050565b6000614d8f600083615391565b9150614d9a826159df565b600082019050919050565b6000614db2601f8361539c565b9150614dbd826159e2565b602082019050919050565b608082016000820151614dde6000850182614a84565b506020820151614df16020850182614ebd565b506040820151614e046040850182614b75565b506060820151614e176060850182614e81565b50505050565b608082016000820151614e336000850182614a84565b506020820151614e466020850182614ebd565b506040820151614e596040850182614b75565b506060820151614e6c6060850182614e81565b50505050565b614e7b81615521565b82525050565b614e8a8161554f565b82525050565b614e998161555e565b82525050565b614ea88161555e565b82525050565b614eb781615568565b82525050565b614ec681615578565b82525050565b614ed581615578565b82525050565b6000614ee78284614aa2565b60148201915081905092915050565b6000614f03828486614ba2565b91508190509392505050565b6000614f1b8285614c39565b9150614f278284614c39565b91508190509392505050565b6000614f3e82614d82565b9150819050919050565b6000602082019050614f5d6000830184614a93565b92915050565b6000604082019050614f786000830185614a93565b614f856020830184614a93565b9392505050565b6000608082019050614fa16000830187614a93565b614fae6020830186614a93565b614fbb6040830185614e9f565b8181036060830152614fcd8184614bc7565b905095945050505050565b60006020820190508181036000830152614ff28184614ab9565b905092915050565b600060208201905081810360008301526150148184614b17565b905092915050565b60006020820190506150316000830184614b84565b92915050565b600060408201905061504c6000830185614b84565b6150596020830184614b84565b9392505050565b60006040820190506150756000830185614b84565b81810360208301526150878184614bc7565b90509392505050565b60006020820190506150a56000830184614b93565b92915050565b600060a0820190506150c06000830188614b93565b6150cd6020830187614ecc565b6150da6040830186614e72565b6150e76060830185614eae565b6150f46080830184614eae565b9695505050505050565b600060208201905081810360008301526151188184614c00565b905092915050565b6000602082019050818103600083015261513981614c6a565b9050919050565b6000602082019050818103600083015261515981614c8d565b9050919050565b6000602082019050818103600083015261517981614cb0565b9050919050565b6000602082019050818103600083015261519981614cd3565b9050919050565b600060208201905081810360008301526151b981614cf6565b9050919050565b600060208201905081810360008301526151d981614d19565b9050919050565b600060208201905081810360008301526151f981614d3c565b9050919050565b6000602082019050818103600083015261521981614d5f565b9050919050565b6000602082019050818103600083015261523981614da5565b9050919050565b60006080820190506152556000830184614e1d565b92915050565b60006020820190506152706000830184614e9f565b92915050565b6000615280615291565b905061528c8282615600565b919050565b6000604051905090565b600067ffffffffffffffff8211156152b6576152b56157ba565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156152e2576152e16157ba565b5b6152eb82615807565b9050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006153c38261555e565b91506153ce8361555e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115615403576154026156cf565b5b828201905092915050565b60006154198261555e565b91506154248361555e565b925082615434576154336156fe565b5b828204905092915050565b600061544a8261555e565b91506154558361555e565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561548e5761548d6156cf565b5b828202905092915050565b60006154a48261555e565b91506154af8361555e565b9250828210156154c2576154c16156cf565b5b828203905092915050565b60006154d88261552f565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062ffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600067ffffffffffffffff82169050919050565b82818337600083830152505050565b60005b838110156155b957808201518184015260208101905061559e565b838111156155c8576000848401525b50505050565b600060028204905060018216806155e657607f821691505b602082108114156155fa576155f961572d565b5b50919050565b61560982615807565b810181811067ffffffffffffffff82111715615628576156276157ba565b5b80604052505050565b600061563c8261555e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561566f5761566e6156cf565b5b600182019050919050565b60006156858261568c565b9050919050565b600061569782615818565b9050919050565b60006156a98261555e565b91506156b48361555e565b9250826156c4576156c36156fe565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4944206973206e6f7420656c696769626c6520666f7220726577617264206f7260008201527f204944206861732077697468647261776e20746865207072697a650000000000602082015250565b7f4e6f7420696e2074686520616c6c6f776c697374000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4661696c656420746f2073656e64204574686572000000000000000000000000600082015250565b7f4d617820616d6f756e74206f66204e46547320636c61696d656420666f72207460008201527f6869732061646472657373000000000000000000000000000000000000000000602082015250565b7f4661696c656420746f2073656e64207468652072657761726473000000000000600082015250565b7f4e6f7420656e6f75676820455448000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b50565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b615a14816154cd565b8114615a1f57600080fd5b50565b615a2b816154df565b8114615a3657600080fd5b50565b615a42816154f5565b8114615a4d57600080fd5b50565b615a598161555e565b8114615a6457600080fd5b5056fe697066733a2f2f6261667962656963697a647535366b75697371376b6369616570646f727a74366174656c6769686f6d6773626f676576743570716868666a6878342fa2646970667358221220db0b5a6516b3295b40daa7a7d4fc27240a39bf92144e501a6bd55610faf6e77364736f6c63430008070033

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

000000000000000000000000000000000000000000000000000000000000012a

-----Decoded View---------------
Arg [0] : _subscriptionId (uint64): 298

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000000000012a


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.