ETH Price: $2,592.79 (-16.62%)
 

Overview

Max Total Supply

229 PP

Holders

198

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
shezmu.eth
Balance
2 PP
0xc9be9069F1fD43b82145Fa8709050D52d803E81a
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
PixelPigeons

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 9 : PixelPigeons.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.15;

import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {Strings} from "@openzeppelin/contracts/utils/Strings.sol";
import {Base64} from "@openzeppelin/contracts/utils/Base64.sol";
import {RLEtoSVG} from "./RLEtoSVG.sol";

import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/security/Pausable.sol";

/*
 *                            _¡░╠╠░_
 *         __.,,,,,,,,,,,,,,,,░░░╚╙Γ
 *         _]φ╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠▒░░
 *     __.░φ▒╠╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬▒▒░░.
 *   ,,;φφ╠╠╠╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╠░~
 *   ▓▓▓╬╬╩╚╠╬╬╬╬╬╬╣▓▓█▓╬╬╚╠╠╬╬╬╬╬╠░_
 *   ████╬▒░▒╠╬╬╬╬╬╣▓███╬▒░░╠╬╬╬╬╬╠▒░.__
 *   ████╬▒░▒╠╬╬╬╬╬╣▓███╬▒░░╠╬╬╬╬╬╬╠╠▒▒░_
 *   ███▓╬▒░▒╠╬╬╬╬╬╣▓███╬╠▒╠╠╬╬╬╬╬╬╬╬╬▒░_
 *   ╬╬╬╬╬▒▒▒▒╠╠╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬▒░_
 *   ╬╬╬╬╬╬╬╬╬╠╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬▒░_
 *   ╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬░░__        ____
 *   ╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╠╠▒φ░,_     _,φφφ
 *   ╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╠╩╩╩╩▒░░,____'⌠╚╩╩
 *   ╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╩░Γ""""░░φ▒▒░░   '''
 *   ╬╬╬╬╬╬╬╬╠╩╩╩╩╩╠╠╬╬╬╬╬╬╬╠╩╚╚╚╚╚░'_ .░░░░░╚╚░└_
 *   ╬╬╬╬╬╬╬▒Γ░''''░╚╠╬╬╬╬╬╩Γ░' '' _  .░φ╠▒░░"''__
 *   ╚╚╚╚╚╚░░░_____'░░╚╚╚╚╚Γ░░.___ .░φφ░░╚Γ░'___
 *   ______________________'!░░┐__.░φ╠▒▒░_____
 *     _____________________''''.;░░Γ╚░░░░┌_   _
 *      __'''''________________''░░░░░░░""'
 *       _  __'______.___________'''''__    _
 *                 '░░φ░░_ _.░░░_
 *                _.░▒╠▒░ _ ;░▒░_
 *             __,φφ▒╠╬╠▒░░░░▒▒░_
 *             _░▒╬╬╬╬╬╬╠╠▒▒▒▒▒░_
 */

contract PixelPigeons is Ownable, Pausable, ERC721A {
    using Strings for uint256;

    struct EtcHolder {
        address holderAddress;
        uint256 numPigeons;
    }

    // We could have used a Merkle Tree here, but given the timing, we are fine with paying extra gas to use a map
    mapping(address => uint256) public holderMap;
    uint256 public immutable updateHoldersBatchMax;

    string[][] public palettes;
    bytes[] public pigeons;
    string[] public backgrounds;

    struct Seed {
        uint8 head;
        uint8 body;
        uint8 background;
    }

    mapping(uint256 => Seed) public _seeds;

    // If you hold more pigeons than this threshold, you get two PixelPigeons
    // Less than this, you get one
    uint256 public constant PIGEON_THRESHOLD = 16;

    error ExceedsUpdateHoldersBatchMax();
    error AirdroppedAllHolders();
    error AirdropQuantityZero();
    error NotInHolderSnapshot();
    error AlreadyClaimedPigeons();
    error CallerMustBeUser();
    error PalettesPigeonsMismatch(uint256 palettesLength, uint256 pigeonsLength);

    constructor(uint256 updateHoldersBatchMax_) ERC721A("PixelPigeons", "PP") {
        updateHoldersBatchMax = updateHoldersBatchMax_;

        _mintERC2309(owner(), 10);
    }

    /**
     * EVENTS
     */

    /**
     * @dev Emit on addHolders() after we add new holders.
     */
    event AddHolders(uint256 numHoldersAdded, uint256 timestamp);

    /**
     * @dev Emit on deleteHolders() after the holders map is reset;
     */
    event DeleteHolders(uint256 numHoldersDeleted, uint256 timestamp);

    /**
     * @dev Emit on addPalettes() after we add new color palettes.
     */
    event AddPalettes(uint256 numPalettesAdded, uint256 totalPalettes, uint256 timestamp);

    /**
     * @dev Emit on addPigeons() after we add new PixelPigeon RLE strings.
     */
    event AddPigeons(uint256 numPigeonsAdded, uint256 totalPigeons, uint256 timestamp);

    /**
     * @dev Emit on addBackgrounds() after we add new background colors.
     */
    event AddBackgrounds(uint256 numBackgroundsAdded, uint256 totalBackgrounds, uint256 timestamp);

    /**
     * @dev Emit on setSeeds() after we set the seeds.
     */
    event SetSeeds(uint256 startIndex, uint256 endIndex, uint256 timestamp);

    /**
     * @dev Emit on airdrop() after we mint the specified amount the receiver.
     */
    event Airdrop(address indexed to, uint256 quantity, uint256 timestamp);

    /**
     * @dev Emit on claimPigeons() after a user claims their allotted Pixel Pigeons.
     */
    event ClaimPigeons(address indexed to, uint256 quantity, uint256 timestamp);

    /**
     * OWNER FUNCTIONS
     */

    /**
     * @dev Allow pausing the contract.
     */
    function pause() external onlyOwner {
        _pause();
    }

    /**
     * @dev Allow unpausing the contract.
     */
    function unpause() external onlyOwner {
        _unpause();
    }

    /**
     * @dev Add holders to the holders map.
     */
    function addHolders(EtcHolder[] calldata holders_) external onlyOwner {
        if (holders_.length > updateHoldersBatchMax) revert ExceedsUpdateHoldersBatchMax();

        for (uint256 i = 0; i < holders_.length; i++) {
            holderMap[holders_[i].holderAddress] = holders_[i].numPigeons;
        }

        emit AddHolders(holders_.length, block.timestamp);
    }

    /**
     * @dev Resets a chunked portion of holders in the holders map.
     */
    function deleteHolders(EtcHolder[] calldata holders_) external onlyOwner {
        if (holders_.length > updateHoldersBatchMax) revert ExceedsUpdateHoldersBatchMax();

        for (uint256 i = 0; i < holders_.length; i++) {
            delete holderMap[holders_[i].holderAddress];
        }

        emit DeleteHolders(holders_.length, block.timestamp);
    }

    /**
     * @dev Airdrop `quantity` tokens to a given address.
     */
    function airdrop(address to, uint256 quantity) external onlyOwner {
        if (quantity == 0) revert AirdropQuantityZero();

        for (uint256 i = _nextTokenId(); i < quantity; i++) {
            _setSeed(i);
        }

        _mint(to, quantity);

        emit Airdrop(to, quantity, block.timestamp);
    }

    /**
     * @dev Add palettes to the string[][] palettes array.
     */
    function addPalettes(string[][] memory _palettes) external onlyOwner {
        for (uint256 i = 0; i < _palettes.length; i++) {
            palettes.push(_palettes[i]);
        }

        emit AddPalettes(_palettes.length, palettes.length, block.timestamp);
    }

    /**
     * @dev Add pigeonRLE strings to the bytes[] pigeons array.
     */
    function addPigeons(bytes[] calldata _pigeons) external onlyOwner {
        for (uint256 i = 0; i < _pigeons.length; i++) {
            pigeons.push(_pigeons[i]);
        }

        emit AddPigeons(_pigeons.length, pigeons.length, block.timestamp);
    }

    /**
     * @dev Add backgrounds strings to the string[] backgrounds array.
     */
    function addBackgrounds(string[] calldata _backgrounds) external onlyOwner {
        for (uint256 i = 0; i < _backgrounds.length; i++) {
            backgrounds.push(_backgrounds[i]);
        }

        emit AddBackgrounds(_backgrounds.length, backgrounds.length, block.timestamp);
    }

    /**
     * @dev Set the seeds (reveals?) the pigeons in the slice given from start to end.
     */
    function setSeeds(uint256 startIndex, uint256 endIndex) external onlyOwner {
        for (uint256 i = _startTokenId() + startIndex; i < endIndex; i++) {
            _setSeed(i);
        }

        emit SetSeeds(startIndex, endIndex, block.timestamp);
    }

    /**
     * VIEW FUNCTIONS
     */

    /**
     * @dev Returns number of PixelPigeons minted to a given address.
     */
    function numberMinted(address to) external view returns (uint256) {
        return _numberMinted(to);
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    // Literally can't declare this external since we're overriding a public function.
    // Bad Slither.
    // slither-disable-next-line external-function
    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        return constructTokenURI(tokenId);
    }

    /**
     * @dev Builds the JSON metadata for a given token on-chain, including attributes & image.
     */
    function constructTokenURI(uint256 tokenId) public view returns (string memory) {
        // It's fine to overload ERC721.name() in this context,
        // since we are dealing with a single token.
        // slither-disable-next-line shadowing-local
        string memory name = string(abi.encodePacked("PixelPigeon ", tokenId.toString()));
        string memory description = string(
            abi.encodePacked("PixelPigeon ", tokenId.toString(), " thinks Everythings Coo")
        );

        uint256 headPaletteIndex = _seeds[tokenId].head;
        uint256 bodyPaletteIndex = _seeds[tokenId].body;
        uint256 backgroundIndex = _seeds[tokenId].background;

        // Note: The way we calculate the Pigeon RLE needs to be the same
        // as the way we calculate bodyPalette.
        //
        // So, if we were to randomize, pigeon[y] and bodyPalette[y]
        // would have to use the same random number y.
        //
        // This is due to the fact that different pigeons
        // have different RLEs, and thus palettes of different lengths,
        // and we need to ensure we use a palette of appropriate length for the RLE.

        bytes memory pigeon = pigeons[bodyPaletteIndex];
        string[] memory headPalette = palettes[headPaletteIndex];
        string[] memory bodyPalette = palettes[bodyPaletteIndex];
        string memory background = backgrounds[backgroundIndex];

        string memory image = RLEtoSVG.generateSVG(pigeon, headPalette, bodyPalette, background);

        RLEtoSVG.PigeonMetadata memory pigeonMetadata = RLEtoSVG._getPigeonMetadata(pigeon);

        // prettier-ignore
        return string(
            abi.encodePacked(
                'data:application/json;base64,',
                    Base64.encode((bytes.concat(
                        abi.encodePacked(
                        '{',
                            '"name":"', name,
                            '", "description":"', description,
                            '", "background_color":"', background,
                            '", "image": "data:image/svg+xml;base64,', Base64.encode(bytes(image)),
                            '", "attributes": [',
                                '{"trait_type": "Head", "value": "', headPalette[pigeonMetadata.headColorIndex], '"},'),
                            abi.encodePacked(
                                '{"trait_type": "Eyes", "value": "', headPalette[pigeonMetadata.eyeColorIndex], '"},',
                                '{"trait_type": "Beak", "value": "', headPalette[pigeonMetadata.beakColorIndex], '"},',
                                '{"trait_type": "Body", "value": "', bodyPalette[pigeonMetadata.bodyColorIndex], '"},',
                                '{"trait_type": "Background", "value": "', background, '"}',
                            ']',
                        '}')
                    )))
            )
        );
    }

    /**
     * EXTERNAL FUNCTIONS
     */

    /**
     * @dev Claim function for a whitelisted user to get their allotted PixelPigeons.
     */
    function claimPigeons(address to) external whenNotPaused {
        if (tx.origin != msg.sender) revert CallerMustBeUser();
        if (holderMap[to] == 0) revert NotInHolderSnapshot();
        if (_numberMinted(to) > 0) revert AlreadyClaimedPigeons();

        uint256 quantity = 1;
        _setSeed(_nextTokenId());
        if (holderMap[to] > PIGEON_THRESHOLD) {
            quantity = 2;
            _setSeed(_nextTokenId() + 1);
        }

        _mint(to, quantity);

        emit ClaimPigeons(to, quantity, block.timestamp);
    }

    /**
     * INTERNAL FUNCTIONS
     */

    /**
     * @dev Generates a pseudorandom number. Used for generating pigeon metadata.
     */
    function _generateRandomNumber(
        uint256 tokenId,
        uint256 max,
        uint256 seed
    ) internal pure returns (uint256) {
        // We're generating SVG images here, not dealing with money.
        // slither-disable-next-line weak-prng
        return uint256(keccak256(abi.encodePacked(tokenId, seed))) % max;
    }

    /**
     * @dev Generates the pigeon metadata and stores it in the `_seeds` mapping
     */
    function _setSeed(uint256 tokenId) internal {
        // Note: palettes.length SHOULD EQUAL pigeons.length.
        //
        // This is due to the fact that different pigeons
        // have different RLEs, and thus palettes of different lengths,
        // and we need to ensure we use a palette of appropriate length for the RLE.

        uint256 palettesLength = palettes.length;
        uint256 pigeonsLength = pigeons.length;

        if (palettesLength != pigeonsLength) revert PalettesPigeonsMismatch(palettesLength, pigeonsLength);

        _seeds[tokenId].head = uint8(_generateRandomNumber(tokenId, palettesLength, block.timestamp));
        _seeds[tokenId].body = uint8(tokenId % palettesLength);
        _seeds[tokenId].background = uint8(_generateRandomNumber(tokenId, backgrounds.length, block.timestamp + 1));
    }
}

File 2 of 9 : 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 3 of 9 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

File 4 of 9 : Base64.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides a set of functions to operate with Base64 strings.
 *
 * _Available since v4.5._
 */
library Base64 {
    /**
     * @dev Base64 Encoding/Decoding Table
     */
    string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /**
     * @dev Converts a `bytes` to its Bytes64 `string` representation.
     */
    function encode(bytes memory data) internal pure returns (string memory) {
        /**
         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
         */
        if (data.length == 0) return "";

        // Loads the table into memory
        string memory table = _TABLE;

        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
        // and split into 4 numbers of 6 bits.
        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
        // - `data.length + 2`  -> Round up
        // - `/ 3`              -> Number of 3-bytes chunks
        // - `4 *`              -> 4 characters for each chunk
        string memory result = new string(4 * ((data.length + 2) / 3));

        /// @solidity memory-safe-assembly
        assembly {
            // Prepare the lookup table (skip the first "length" byte)
            let tablePtr := add(table, 1)

            // Prepare result pointer, jump over length
            let resultPtr := add(result, 32)

            // Run over the input, 3 bytes at a time
            for {
                let dataPtr := data
                let endPtr := add(data, mload(data))
            } lt(dataPtr, endPtr) {

            } {
                // Advance 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // To write each character, shift the 3 bytes (18 bits) chunk
                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
                // and apply logical AND with 0x3F which is the number of
                // the previous character in the ASCII table prior to the Base64 Table
                // The result is then added to the table to get the character to write,
                // and finally write it in the result pointer but with a left shift
                // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits

                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance
            }

            // When data `bytes` is not exactly 3 bytes long
            // it is padded with `=` characters at the end
            switch mod(mload(data), 3)
            case 1 {
                mstore8(sub(resultPtr, 1), 0x3d)
                mstore8(sub(resultPtr, 2), 0x3d)
            }
            case 2 {
                mstore8(sub(resultPtr, 1), 0x3d)
            }
        }

        return result;
    }
}

File 5 of 9 : RLEtoSVG.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.15;

library RLEtoSVG {
    struct ContentBounds {
        uint8 top;
        uint8 right;
        uint8 bottom;
        uint8 left;
    }

    struct Rect {
        uint8 length;
        uint8 colorIndex;
    }

    struct DecodedImage {
        ContentBounds bounds;
        Rect[] rects;
    }

    struct PigeonMetadata {
        uint8 headColorIndex;
        uint8 eyeColorIndex;
        uint8 beakColorIndex;
        uint8 bodyColorIndex;
    }

    /**
     * @notice Given RLE image parts and color palettes, merge to generate a single SVG image.
     */
    function generateSVG(
        bytes memory pigeonRLE,
        string[] memory headPalette,
        string[] memory bodyPalette,
        string memory background
    ) internal pure returns (string memory svg) {
        // prettier-ignore
        return string(
            abi.encodePacked(
                // solhint-disable-next-line max-line-length
                '<svg width="200" height="200" viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg" shape-rendering="crispEdges">',
                '<rect width="100%" height="100%" fill="#', background, '" />',
                '<g transform="translate(40, 25)">',
                _generateSVGRects(pigeonRLE, headPalette, bodyPalette),
                '</g>',
                '</svg>'
            )
        );
    }

    /**
     * @notice Given RLE image parts and color palettes, generate SVG rects.
     */
    function _generateSVGRects(
        bytes memory pigeonRLE,
        string[] memory headPalette,
        string[] memory bodyPalette
    ) private pure returns (string memory svg) {
        // prettier-ignore
        string[33] memory lookup = [
            '0', '10', '20', '30', '40', '50', '60', '70',
            '80', '90', '100', '110', '120', '130', '140', '150',
            '160', '170', '180', '190', '200', '210', '220', '230',
            '240', '250', '260', '270', '280', '290', '300', '310',
            '320'
        ];

        DecodedImage memory image = _decodeRLEImage(pigeonRLE);
        uint256 currentX = image.bounds.left;
        uint256 currentY = image.bounds.top;

        uint256 cursor;
        string[16] memory buffer;
        string memory part;
        string memory rects;

        for (uint256 i = 0; i < image.rects.length; i++) {
            Rect memory rect = image.rects[i];
            if (rect.colorIndex != 0) {
                buffer[cursor] = lookup[rect.length]; // width
                buffer[cursor + 1] = lookup[currentX]; // x
                buffer[cursor + 2] = lookup[currentY]; // y

                uint8 colorIndex = rect.colorIndex;
                buffer[cursor + 3] = bodyPalette[colorIndex]; // color

                if (colorIndex <= 6) {
                    buffer[cursor + 3] = headPalette[colorIndex]; // color
                }
                cursor += 4;

                if (cursor >= 16) {
                    part = string(abi.encodePacked(part, _getChunk(cursor, buffer)));
                    cursor = 0;
                }
            }

            currentX += rect.length;
            if (currentX == image.bounds.right) {
                currentX = image.bounds.left;
                currentY++;
            }
        }

        if (cursor != 0) {
            part = string(abi.encodePacked(part, _getChunk(cursor, buffer)));
        }
        rects = string(abi.encodePacked(rects, part));
        return rects;
    }

    /**
     * @notice Return a string that consists of all rects in the provided `buffer`.
     */
    // prettier-ignore
    function _getChunk(uint256 cursor, string[16] memory buffer) private pure returns (string memory) {
        string memory chunk;
        for (uint256 i = 0; i < cursor; i += 4) {
            chunk = string(
                abi.encodePacked(
                    chunk,
                    // solhint-disable-next-line max-line-length
                    '<rect width="', buffer[i], '" height="10" x="', buffer[i + 1], '" y="', buffer[i + 2], '" fill="#', buffer[i + 3], '" />'
                )
            );
        }
        return chunk;
    }

    /**
     * @notice Decode a single RLE compressed image into a `DecodedImage`.
     */
    function _decodeRLEImage(bytes memory image) private pure returns (DecodedImage memory) {
        ContentBounds memory bounds = ContentBounds({
            top: uint8(image[1]),
            right: uint8(image[2]),
            bottom: uint8(image[3]),
            left: uint8(image[4])
        });

        uint256 cursor;
        Rect[] memory rects = new Rect[]((image.length - 5) / 2);
        for (uint256 i = 5; i < image.length; i += 2) {
            rects[cursor] = Rect({length: uint8(image[i]), colorIndex: uint8(image[i + 1])});
            cursor++;
        }
        return DecodedImage({bounds: bounds, rects: rects});
    }

    function _getPigeonMetadata(bytes memory pigeon) internal pure returns (PigeonMetadata memory) {
        DecodedImage memory image = _decodeRLEImage(pigeon);

        // Literally counted pixels/rectangles in a PNG file to derive these.
        return
            PigeonMetadata({
                headColorIndex: image.rects[4].colorIndex,
                eyeColorIndex: image.rects[9].colorIndex,
                beakColorIndex: image.rects[24].colorIndex,
                bodyColorIndex: image.rects[35].colorIndex
            });
    }
}

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

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard,
 * including the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at `_startTokenId()`
 * (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // 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 tokenId of the next token 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 => address) private _tokenApprovals;

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

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

    /**
     * @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 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 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 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 returns (uint256) {
        return _burnCounter;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    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: 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.
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view 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 {
        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;
    }

    /**
     * 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 ownership that has an address and is not burned
                        // before an ownership that does not have an address and is not burned.
                        // Hence, curr will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed is zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

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

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

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

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

    /**
     * @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 See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        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 '';
    }

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = ownerOf(tokenId);

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

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

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        if (operator == _msgSenderERC721A()) revert ApproveToCaller();

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

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

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

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, 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 {
        _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 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 {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        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 tokenId = startTokenId;
            uint256 end = startTokenId + quantity;
            do {
                emit Transfer(address(0), to, tokenId++);
            } while (tokenId < end);

            _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 {
        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 Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals;
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`.
        assembly {
            // Compute the slot.
            mstore(0x00, tokenId)
            mstore(0x20, tokenApprovalsPtr.slot)
            approvedAddressSlot := keccak256(0x00, 0x40)
            // Load the slot's value from storage.
            approvedAddress := sload(approvedAddressSlot)
        }
    }

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * 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) = _getApprovedAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isOwnerOrApproved(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 `_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) = _getApprovedAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isOwnerOrApproved(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++;
        }
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _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))
                }
            }
        }
    }

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal {
        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 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;
    }

    /**
     * @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 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 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 returns (string memory ptr) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit),
            // but we allocate 128 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: 32 + 3 * 32 = 128.
            ptr := add(mload(0x40), 128)
            // Update the free memory pointer to allocate.
            mstore(0x40, ptr)

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

            // We write the string from the rightmost digit to the leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // Costs a bit more than early returning for the zero case,
            // but cheaper in terms of deployment and overall runtime costs.
            for {
                // Initialize and perform the first pass without check.
                let temp := value
                // Move the pointer 1 byte leftwards to point to an empty character slot.
                ptr := sub(ptr, 1)
                // Write the character to the pointer. 48 is the ASCII index of '0'.
                mstore8(ptr, add(48, mod(temp, 10)))
                temp := div(temp, 10)
            } temp {
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
            } {
                // Body of the for loop.
                ptr := sub(ptr, 1)
                mstore8(ptr, add(48, mod(temp, 10)))
            }

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

File 7 of 9 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 8 of 9 : 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 9 of 9 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.1.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of an ERC721A compliant contract.
 */
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();

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of 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 through `_extraData`.
        uint24 extraData;
    }

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     *
     * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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

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

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

    // ==============================
    //        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 standard. See `_mintERC2309` for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"updateHoldersBatchMax_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AirdropQuantityZero","type":"error"},{"inputs":[],"name":"AirdroppedAllHolders","type":"error"},{"inputs":[],"name":"AlreadyClaimedPigeons","type":"error"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"CallerMustBeUser","type":"error"},{"inputs":[],"name":"ExceedsUpdateHoldersBatchMax","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NotInHolderSnapshot","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[{"internalType":"uint256","name":"palettesLength","type":"uint256"},{"internalType":"uint256","name":"pigeonsLength","type":"uint256"}],"name":"PalettesPigeonsMismatch","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":false,"internalType":"uint256","name":"numBackgroundsAdded","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalBackgrounds","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"AddBackgrounds","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"numHoldersAdded","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"AddHolders","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"numPalettesAdded","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalPalettes","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"AddPalettes","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"numPigeonsAdded","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalPigeons","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"AddPigeons","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Airdrop","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"ClaimPigeons","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"numHoldersDeleted","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"DeleteHolders","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"startIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"SetSeeds","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"PIGEON_THRESHOLD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_seeds","outputs":[{"internalType":"uint8","name":"head","type":"uint8"},{"internalType":"uint8","name":"body","type":"uint8"},{"internalType":"uint8","name":"background","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string[]","name":"_backgrounds","type":"string[]"}],"name":"addBackgrounds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"holderAddress","type":"address"},{"internalType":"uint256","name":"numPigeons","type":"uint256"}],"internalType":"struct PixelPigeons.EtcHolder[]","name":"holders_","type":"tuple[]"}],"name":"addHolders","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[][]","name":"_palettes","type":"string[][]"}],"name":"addPalettes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"_pigeons","type":"bytes[]"}],"name":"addPigeons","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"backgrounds","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"claimPigeons","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"constructTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"holderAddress","type":"address"},{"internalType":"uint256","name":"numPigeons","type":"uint256"}],"internalType":"struct PixelPigeons.EtcHolder[]","name":"holders_","type":"tuple[]"}],"name":"deleteHolders","outputs":[],"stateMutability":"nonpayable","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":"","type":"address"}],"name":"holderMap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"palettes","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"pigeons","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","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":"uint256","name":"startIndex","type":"uint256"},{"internalType":"uint256","name":"endIndex","type":"uint256"}],"name":"setSeeds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updateHoldersBatchMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60a06040523480156200001157600080fd5b5060405162003db338038062003db3833981016040819052620000349162000238565b6040518060400160405280600c81526020016b506978656c506967656f6e7360a01b81525060405180604001604052806002815260200161050560f41b8152506200008e62000088620000eb60201b60201c565b620000ef565b6000805460ff60a01b191690556003620000a98382620002f6565b506004620000b88282620002f6565b50600060015550506080819052620000e4620000dc6000546001600160a01b031690565b600a6200013f565b50620003c2565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001546001600160a01b0383166200016957604051622e076360e81b815260040160405180910390fd5b816000036200018b5760405163b562e8dd60e01b815260040160405180910390fd5b611388821115620001af57604051633db1f9af60e01b815260040160405180910390fd5b6001600160a01b03831660008181526006602090815260408083208054680100000000000000018802019055848352600582528083206001871460e11b4260a01b17851790558051600019868801018152905185927fdeaa91b6123d068f5821d0fb0678463d1a8a6079fe8af5de3ce5e896dcf9133d928290030190a48082016001555b505050565b6000602082840312156200024b57600080fd5b5051919050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200027d57607f821691505b6020821081036200029e57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200023357600081815260208120601f850160051c81016020861015620002cd5750805b601f850160051c820191505b81811015620002ee57828155600101620002d9565b505050505050565b81516001600160401b0381111562000312576200031262000252565b6200032a8162000323845462000268565b84620002a4565b602080601f831160018114620003625760008415620003495750858301515b600019600386901b1c1916600185901b178555620002ee565b600085815260208120601f198616915b82811015620003935788860151825594840194600190910190840162000372565b5085821015620003b25787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6080516139c7620003ec6000396000818161039801528181610b9e01526114bc01526139c76000f3fe608060405234801561001057600080fd5b50600436106102275760003560e01c8063715018a611610130578063a22cb465116100b8578063e985e9c51161007c578063e985e9c5146104ee578063ed14cc251461052a578063f1dc193a1461053d578063f2fde38b14610550578063fd1b21621461056357600080fd5b8063a22cb4651461049a578063b88d4fde146104ad578063c87b56dd146104c0578063d53fd858146104d3578063dc33e681146104db57600080fd5b80638ba4cc3c116100ff5780638ba4cc3c1461043b5780638da5cb5b1461044e57806394f75d391461045f57806395d89b41146104725780639adaebff1461047a57600080fd5b8063715018a6146104055780637642f2bf1461040d5780638456cb5914610420578063894b4c2e1461042857600080fd5b8063203ee78c116101b35780634e7b97da116101825780634e7b97da1461039357806350d0a919146103ba5780635c975abb146103cd5780636352211e146103df57806370a08231146103f257600080fd5b8063203ee78c1461035257806323b872dd146103655780633f4ba83a1461037857806342842e0e1461038057600080fd5b8063081812fc116101fa578063081812fc146102d6578063095ea7b31461030157806314a48eaa14610316578063164986201461032957806318160ddd1461033c57600080fd5b806301ffc9a71461022c578063035f0c871461025457806304bde4dd146102ae57806306fdde03146102ce575b600080fd5b61023f61023a366004612a75565b610576565b60405190151581526020015b60405180910390f35b61028a610262366004612a92565b600d6020526000908152604090205460ff808216916101008104821691620100009091041683565b6040805160ff9485168152928416602084015292169181019190915260600161024b565b6102c16102bc366004612a92565b6105c8565b60405161024b9190612b03565b6102c1610674565b6102e96102e4366004612a92565b610706565b6040516001600160a01b03909116815260200161024b565b61031461030f366004612b32565b61074a565b005b610314610324366004612ba7565b6107ea565b610314610337366004612ba7565b6108a0565b600254600154035b60405190815260200161024b565b610314610360366004612be8565b61094e565b610314610373366004612c0a565b6109c9565b610314610b62565b61031461038e366004612c0a565b610b74565b6103447f000000000000000000000000000000000000000000000000000000000000000081565b6103146103c8366004612c46565b610b94565b600054600160a01b900460ff1661023f565b6102e96103ed366004612a92565b610c78565b610344610400366004612cba565b610c83565b610314610cd1565b61031461041b366004612d95565b610ce3565b610314610d98565b6102c1610436366004612a92565b610da8565b610314610449366004612b32565b6112ac565b6000546001600160a01b03166102e9565b6102c161046d366004612a92565b611359565b6102c1611369565b610344610488366004612cba565b60096020526000908152604090205481565b6103146104a8366004612ed3565b611378565b6103146104bb366004612f0f565b61140d565b6102c16104ce366004612a92565b611457565b610344601081565b6103446104e9366004612cba565b611488565b61023f6104fc366004612f8a565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b610314610538366004612c46565b6114b2565b6102c161054b366004612be8565b6115b0565b61031461055e366004612cba565b6115f4565b610314610571366004612cba565b611672565b60006301ffc9a760e01b6001600160e01b0319831614806105a757506380ac58cd60e01b6001600160e01b03198316145b806105c25750635b5e139f60e01b6001600160e01b03198316145b92915050565b600c81815481106105d857600080fd5b9060005260206000200160009150905080546105f390612fbd565b80601f016020809104026020016040519081016040528092919081815260200182805461061f90612fbd565b801561066c5780601f106106415761010080835404028352916020019161066c565b820191906000526020600020905b81548152906001019060200180831161064f57829003601f168201915b505050505081565b60606003805461068390612fbd565b80601f01602080910402602001604051908101604052809291908181526020018280546106af90612fbd565b80156106fc5780601f106106d1576101008083540402835291602001916106fc565b820191906000526020600020905b8154815290600101906020018083116106df57829003601f168201915b5050505050905090565b6000610711826117ae565b61072e576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b600061075582610c78565b9050336001600160a01b0382161461078e5761077181336104fc565b61078e576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6107f26117d6565b60005b8181101561085657600b83838381811061081157610811612ff7565b9050602002810190610823919061300d565b825460018101845560009384526020909320909201916108439183613099565b508061084e8161316f565b9150506107f5565b50600b5460408051838152602081019290925242908201527f9dd765a8ac0fdc842016b513cb9699edbc9ed0b279269f89d78eeda020001c4c906060015b60405180910390a15050565b6108a86117d6565b60005b8181101561090c57600c8383838181106108c7576108c7612ff7565b90506020028101906108d9919061300d565b825460018101845560009384526020909320909201916108f99183613099565b50806109048161316f565b9150506108ab565b50600c5460408051838152602081019290925242908201527fc71109b751c89ce3dcb6772c18ebe4f7e97dc4f49dc0bac1d196baadc03a576490606001610894565b6109566117d6565b60006109628382613188565b90505b818110156109885761097681611830565b806109808161316f565b915050610965565b50604080518381526020810183905242918101919091527f9fd3cccbe951f28b583bde667f720227c26636e9f81ec4112f59dfc1b2266da490606001610894565b60006109d482611904565b9050836001600160a01b0316816001600160a01b031614610a075760405162a1148160e81b815260040160405180910390fd5b60008281526007602052604090208054338082146001600160a01b03881690911417610a5457610a3786336104fc565b610a5457604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610a7b57604051633a954ecd60e21b815260040160405180910390fd5b8015610a8657600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040812091909155600160e11b84169003610b1857600184016000818152600560205260408120549003610b16576001548114610b165760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b610b6a6117d6565b610b72611972565b565b610b8f8383836040518060200160405280600081525061140d565b505050565b610b9c6117d6565b7f0000000000000000000000000000000000000000000000000000000000000000811115610bdd5760405163078917bd60e21b815260040160405180910390fd5b60005b81811015610c425760096000848484818110610bfe57610bfe612ff7565b610c149260206040909202019081019150612cba565b6001600160a01b03168152602081019190915260400160009081205580610c3a8161316f565b915050610be0565b50604080518281524260208201527f73f009f6262198f793b14057cca3c741279238e575bf8802516e67d8fe24155b9101610894565b60006105c282611904565b60006001600160a01b038216610cac576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b610cd96117d6565b610b7260006119c7565b610ceb6117d6565b60005b8151811015610d5057600a828281518110610d0b57610d0b612ff7565b60209081029190910181015182546001810184556000938452928290208151610d3d949190910192919091019061297a565b5080610d488161316f565b915050610cee565b508051600a546040805192835260208301919091524282820152517f14177b24363314b8fc5106f9b248deb91b755cbaef42bbcc5167cd1a6a7bf2c59181900360600190a150565b610da06117d6565b610b72611a17565b60606000610db583611a5a565b604051602001610dc591906131bc565b60405160208183030381529060405290506000610de184611a5a565b604051602001610df191906131f0565b60408051601f198184030181529181526000868152600d60205290812054600b805493945060ff8083169461010084048216946201000090940490911692919084908110610e4157610e41612ff7565b906000526020600020018054610e5690612fbd565b80601f0160208091040260200160405190810160405280929190818152602001828054610e8290612fbd565b8015610ecf5780601f10610ea457610100808354040283529160200191610ecf565b820191906000526020600020905b815481529060010190602001808311610eb257829003601f168201915b505050505090506000600a8581548110610eeb57610eeb612ff7565b90600052602060002001805480602002602001604051908101604052809291908181526020016000905b82821015610fc1578382906000526020600020018054610f3490612fbd565b80601f0160208091040260200160405190810160405280929190818152602001828054610f6090612fbd565b8015610fad5780601f10610f8257610100808354040283529160200191610fad565b820191906000526020600020905b815481529060010190602001808311610f9057829003601f168201915b505050505081526020019060010190610f15565b5050505090506000600a8581548110610fdc57610fdc612ff7565b90600052602060002001805480602002602001604051908101604052809291908181526020016000905b828210156110b257838290600052602060002001805461102590612fbd565b80601f016020809104026020016040519081016040528092919081815260200182805461105190612fbd565b801561109e5780601f106110735761010080835404028352916020019161109e565b820191906000526020600020905b81548152906001019060200180831161108157829003601f168201915b505050505081526020019060010190611006565b5050505090506000600c85815481106110cd576110cd612ff7565b9060005260206000200180546110e290612fbd565b80601f016020809104026020016040519081016040528092919081815260200182805461110e90612fbd565b801561115b5780601f106111305761010080835404028352916020019161115b565b820191906000526020600020905b81548152906001019060200180831161113e57829003601f168201915b50505050509050600061117085858585611b62565b9050600061117d86611b9a565b905061127b8b8b8561118e86611c86565b89866000015160ff16815181106111a7576111a7612ff7565b60200260200101516040516020016111c395949392919061324b565b60405160208183030381529060405286836020015160ff16815181106111eb576111eb612ff7565b602002602001015187846040015160ff168151811061120c5761120c612ff7565b602002602001015187856060015160ff168151811061122d5761122d612ff7565b60200260200101518760405160200161124994939291906133bc565b60408051601f19818403018152908290526112679291602001613518565b604051602081830303815290604052611c86565b60405160200161128b9190613547565b6040516020818303038152906040529b505050505050505050505050919050565b6112b46117d6565b806000036112d5576040516347f9005360e01b815260040160405180910390fd5b60006112e060015490565b90505b81811015611306576112f481611830565b806112fe8161316f565b9150506112e3565b506113118282611dd8565b604080518281524260208201526001600160a01b038416917fada993ad066837289fe186cd37227aa338d27519a8a1547472ecb9831486d27291015b60405180910390a25050565b600b81815481106105d857600080fd5b60606004805461068390612fbd565b336001600160a01b038316036113a15760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6114188484846109c9565b6001600160a01b0383163b156114515761143484848484611eb8565b611451576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060611462826117ae565b61147f57604051630a14c4b560e41b815260040160405180910390fd5b6105c282610da8565b6001600160a01b038116600090815260066020526040808220546001600160401b03911c166105c2565b6114ba6117d6565b7f00000000000000000000000000000000000000000000000000000000000000008111156114fb5760405163078917bd60e21b815260040160405180910390fd5b60005b8181101561157a5782828281811061151857611518612ff7565b905060400201602001356009600085858581811061153857611538612ff7565b61154e9260206040909202019081019150612cba565b6001600160a01b03168152602081019190915260400160002055806115728161316f565b9150506114fe565b50604080518281524260208201527fa1b5d2e58d3f904a81cec3be68ea1d5271414f1f593e3afcc64f771d19e3c2b09101610894565b600a82815481106115c057600080fd5b9060005260206000200181815481106115d857600080fd5b906000526020600020016000915091505080546105f390612fbd565b6115fc6117d6565b6001600160a01b0381166116665760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61166f816119c7565b50565b61167a611fa0565b32331461169a57604051639837371b60e01b815260040160405180910390fd5b6001600160a01b03811660009081526009602052604081205490036116d257604051634fee85f160e11b815260040160405180910390fd5b6001600160a01b038116600090815260066020526040808220546001600160401b03911c16111561171657604051632705194f60e21b815260040160405180910390fd5b600161172961172460015490565b611830565b6001600160a01b038216600090815260096020526040902054601010156117645750600261176461175960015490565b611724906001613188565b61176e8282611dd8565b604080518281524260208201526001600160a01b038416917f2748e05fa37880f2d3973dfefec9324550ae744c1e90632532f10c0e31c4b8cb910161134d565b6000600154821080156105c2575050600090815260056020526040902054600160e01b161590565b6000546001600160a01b03163314610b725760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161165d565b600a54600b5480821461186057604051630114336760e11b8152600481018390526024810182905260440161165d565b61186b838342611fed565b6000848152600d60205260409020805460ff191660ff9290921691909117905561189582846135a2565b6000848152600d60205260409020805460ff929092166101000261ff0019909216919091179055600c546118d59084906118d0426001613188565b611fed565b6000938452600d6020526040909320805460ff94909416620100000262ff000019909416939093179092555050565b6000816001548110156119595760008181526005602052604081205490600160e01b82169003611957575b8060000361195057506000190160008181526005602052604090205461192f565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b61197a61202f565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b611a1f611fa0565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586119aa3390565b606081600003611a815750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611aab5780611a958161316f565b9150611aa49050600a836135b6565b9150611a85565b6000816001600160401b03811115611ac557611ac5612cd5565b6040519080825280601f01601f191660200182016040528015611aef576020820181803683370190505b5090505b8415611b5a57611b046001836135ca565b9150611b11600a866135a2565b611b1c906030613188565b60f81b818381518110611b3157611b31612ff7565b60200101906001600160f81b031916908160001a905350611b53600a866135b6565b9450611af3565b949350505050565b606081611b7086868661207f565b604051602001611b819291906135e1565b6040516020818303038152906040529050949350505050565b604080516080810182526000808252602082018190529181018290526060810182905290611bc7836126b0565b905060405180608001604052808260200151600481518110611beb57611beb612ff7565b60200260200101516020015160ff1681526020018260200151600981518110611c1657611c16612ff7565b60200260200101516020015160ff1681526020018260200151601881518110611c4157611c41612ff7565b60200260200101516020015160ff1681526020018260200151602381518110611c6c57611c6c612ff7565b60200260200101516020015160ff16815250915050919050565b60608151600003611ca557505060408051602081019091526000815290565b60006040518060600160405280604081526020016139526040913990506000600384516002611cd49190613188565b611cde91906135b6565b611ce9906004613745565b6001600160401b03811115611d0057611d00612cd5565b6040519080825280601f01601f191660200182016040528015611d2a576020820181803683370190505b509050600182016020820185865187015b80821015611d96576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250611d3b565b5050600386510660018114611db25760028114611dc557611dcd565b603d6001830353603d6002830353611dcd565b603d60018303535b509195945050505050565b6001546001600160a01b038316611e0157604051622e076360e81b815260040160405180910390fd5b81600003611e225760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260066020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260056020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210611e6c5760015550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611eed903390899088908890600401613764565b6020604051808303816000875af1925050508015611f28575060408051601f3d908101601f19168201909252611f2591810190613797565b60015b611f86573d808015611f56576040519150601f19603f3d011682016040523d82523d6000602084013e611f5b565b606091505b508051600003611f7e576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611b5a565b600054600160a01b900460ff1615610b725760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161165d565b600082848360405160200161200c929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c611b5a91906135a2565b600054600160a01b900460ff16610b725760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161165d565b604080516104608101825260016104208201908152600360fc1b610440830152815281518083018352600280825261031360f41b602083810191909152808401929092528351808501855281815261032360f41b81840152838501528351808501855281815261033360f41b818401526060848101919091528451808601865282815261034360f41b8185015260808501528451808601865282815261035360f41b8185015260a08501528451808601865282815261036360f41b8185015260c08501528451808601865282815261037360f41b8185015260e08501528451808601865282815261038360f41b818501526101008501528451808601865291825261039360f41b828401526101208401919091528351808501855260038082526203130360ec1b82850152610140850191909152845180860186528181526203131360ec1b81850152610160850152845180860186528181526203132360ec1b81850152610180850152845180860186528181526203133360ec1b818501526101a0850152845180860186528181526203134360ec1b818501526101c0850152845180860186528181526203135360ec1b818501526101e0850152845180860186528181526203136360ec1b81850152610200850152845180860186528181526203137360ec1b81850152610220850152845180860186528181526203138360ec1b81850152610240850152845180860186528181526203139360ec1b81850152610260850152845180860186528181526203230360ec1b81850152610280850152845180860186528181526203231360ec1b818501526102a0850152845180860186528181526203232360ec1b818501526102c0850152845180860186528181526203233360ec1b818501526102e0850152845180860186528181526203234360ec1b81850152610300850152845180860186528181526203235360ec1b81850152610320850152845180860186528181526203236360ec1b81850152610340850152845180860186528181526203237360ec1b81850152610360850152845180860186528181526203238360ec1b81850152610380850152845180860186528181526203239360ec1b818501526103a0850152845180860186528181526203330360ec1b818501526103c0850152845180860186528181526203331360ec1b818501526103e0850152845180860190955284526203332360ec1b918401919091526104008201929092526000612416866126b0565b80516060810151905191925060ff908116911660006124336129d0565b60608060005b8760200151518110156126485760008860200151828151811061245e5761245e612ff7565b60200260200101519050806020015160ff166000146125fb5780518a9060ff166021811061248e5761248e612ff7565b60200201518587601081106124a5576124a5612ff7565b60200201528988602181106124bc576124bc612ff7565b6020020151856124cd886001613188565b601081106124dd576124dd612ff7565b60200201528987602181106124f4576124f4612ff7565b602002015185612505886002613188565b6010811061251557612515612ff7565b60200201819052506000816020015190508c8160ff168151811061253b5761253b612ff7565b6020026020010151868860036125519190613188565b6010811061256157612561612ff7565b6020020152600660ff8216116125b2578d8160ff168151811061258657612586612ff7565b60200260200101518688600361259c9190613188565b601081106125ac576125ac612ff7565b60200201525b6125bd600488613188565b9650601087106125f957846125d288886128b1565b6040516020016125e3929190613518565b6040516020818303038152906040529450600096505b505b805161260a9060ff1689613188565b89516020015190985060ff1688036126355788516060015160ff169750866126318161316f565b9750505b50806126408161316f565b915050612439565b50831561267d578161265a85856128b1565b60405160200161266b929190613518565b60405160208183030381529060405291505b8082604051602001612690929190613518565b60408051808303601f190181529190529c9b505050505050505050505050565b6040805160c081018252600091810182815260608083018490526080830184905260a083019390935281526020810191909152600060405180608001604052808460018151811061270357612703612ff7565b0160209081015160f81c825285519101908590600290811061272757612727612ff7565b0160209081015160f81c825285519101908590600390811061274b5761274b612ff7565b0160209081015160f81c825285519101908590600490811061276f5761276f612ff7565b016020015160f81c905283519091506000908190600290612792906005906135ca565b61279c91906135b6565b6001600160401b038111156127b3576127b3612cd5565b6040519080825280602002602001820160405280156127f857816020015b60408051808201909152600080825260208201528152602001906001900390816127d15790505b50905060055b855181101561289757604051806040016040528087838151811061282457612824612ff7565b0160209081015160f81c8252018761283d846001613188565b8151811061284d5761284d612ff7565b016020015160f81c9052825183908590811061286b5761286b612ff7565b602002602001018190525082806128819061316f565b93506128909050600282613188565b90506127fe565b506040805180820190915292835260208301525092915050565b60608060005b8481101561297257818482601081106128d2576128d2612ff7565b6020020151856128e3846001613188565b601081106128f3576128f3612ff7565b602002015186612904856002613188565b6010811061291457612914612ff7565b602002015187612925866003613188565b6010811061293557612935612ff7565b602002015160405160200161294e9594939291906137b4565b60408051601f19818403018152919052915061296b600482613188565b90506128b7565b509392505050565b8280548282559060005260206000209081019282156129c0579160200282015b828111156129c057825182906129b09082613892565b509160200191906001019061299a565b506129cc9291506129f8565b5090565b6040518061020001604052806010905b60608152602001906001900390816129e05790505090565b808211156129cc576000612a0c8282612a15565b506001016129f8565b508054612a2190612fbd565b6000825580601f10612a31575050565b601f01602090049060005260206000209081019061166f91905b808211156129cc5760008155600101612a4b565b6001600160e01b03198116811461166f57600080fd5b600060208284031215612a8757600080fd5b813561195081612a5f565b600060208284031215612aa457600080fd5b5035919050565b60005b83811015612ac6578181015183820152602001612aae565b838111156114515750506000910152565b60008151808452612aef816020860160208601612aab565b601f01601f19169290920160200192915050565b6020815260006119506020830184612ad7565b80356001600160a01b0381168114612b2d57600080fd5b919050565b60008060408385031215612b4557600080fd5b612b4e83612b16565b946020939093013593505050565b60008083601f840112612b6e57600080fd5b5081356001600160401b03811115612b8557600080fd5b6020830191508360208260051b8501011115612ba057600080fd5b9250929050565b60008060208385031215612bba57600080fd5b82356001600160401b03811115612bd057600080fd5b612bdc85828601612b5c565b90969095509350505050565b60008060408385031215612bfb57600080fd5b50508035926020909101359150565b600080600060608486031215612c1f57600080fd5b612c2884612b16565b9250612c3660208501612b16565b9150604084013590509250925092565b60008060208385031215612c5957600080fd5b82356001600160401b0380821115612c7057600080fd5b818501915085601f830112612c8457600080fd5b813581811115612c9357600080fd5b8660208260061b8501011115612ca857600080fd5b60209290920196919550909350505050565b600060208284031215612ccc57600080fd5b61195082612b16565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612d1357612d13612cd5565b604052919050565b60006001600160401b03821115612d3457612d34612cd5565b5060051b60200190565b60006001600160401b03831115612d5757612d57612cd5565b612d6a601f8401601f1916602001612ceb565b9050828152838383011115612d7e57600080fd5b828260208301376000602084830101529392505050565b600060208284031215612da757600080fd5b6001600160401b038083351115612dbd57600080fd5b8235830184601f820112612dd057600080fd5b612de2612ddd8235612d1b565b612ceb565b81358082526020808301929160051b84010187811115612e0157600080fd5b602084015b81811015612ec6578581351115612e1c57600080fd5b8035850189603f820112612e2f57600080fd5b6020810135612e40612ddd82612d1b565b81815260059190911b82016040019060208101908c831115612e6157600080fd5b604084015b83811015612eb0578a81351115612e7c57600080fd5b803585018e605f820112612e8f57600080fd5b612ea18f604083013560608401612d3e565b84525060209283019201612e66565b5087525050602094850194919091019050612e06565b5090979650505050505050565b60008060408385031215612ee657600080fd5b612eef83612b16565b915060208301358015158114612f0457600080fd5b809150509250929050565b60008060008060808587031215612f2557600080fd5b612f2e85612b16565b9350612f3c60208601612b16565b92506040850135915060608501356001600160401b03811115612f5e57600080fd5b8501601f81018713612f6f57600080fd5b612f7e87823560208401612d3e565b91505092959194509250565b60008060408385031215612f9d57600080fd5b612fa683612b16565b9150612fb460208401612b16565b90509250929050565b600181811c90821680612fd157607f821691505b602082108103612ff157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e1984360301811261302457600080fd5b8301803591506001600160401b0382111561303e57600080fd5b602001915036819003821315612ba057600080fd5b601f821115610b8f57600081815260208120601f850160051c8101602086101561307a5750805b601f850160051c820191505b81811015610b5a57828155600101613086565b6001600160401b038311156130b0576130b0612cd5565b6130c4836130be8354612fbd565b83613053565b6000601f8411600181146130f857600085156130e05750838201355b600019600387901b1c1916600186901b178355613152565b600083815260209020601f19861690835b828110156131295786850135825560209485019460019092019101613109565b50868210156131465760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b634e487b7160e01b600052601160045260246000fd5b60006001820161318157613181613159565b5060010190565b6000821982111561319b5761319b613159565b500190565b600081516131b2818560208601612aab565b9290920192915050565b6b02834bc32b62834b3b2b7b7160a51b8152600082516131e381600c850160208701612aab565b91909101600c0192915050565b6b02834bc32b62834b3b2b7b7160a51b81526000825161321781600c850160208701612aab565b7f207468696e6b732045766572797468696e677320436f6f000000000000000000600c939091019283015250602301919050565b607b60f81b815267113730b6b2911d1160c11b60018201528551600090613279816009850160208b01612aab565b71111610113232b9b1b934b83a34b7b7111d1160711b60099184019182015286516132ab81601b840160208b01612aab565b7f222c20226261636b67726f756e645f636f6c6f72223a22000000000000000000601b929091019182015285516132e9816032840160208a01612aab565b7f222c2022696d616765223a2022646174613a696d6167652f7376672b786d6c3b603292909101918201526618985cd94d8d0b60ca1b60528201528451613337816059840160208901612aab565b6133af6133a061339a61336760598587010171222c202261747472696275746573223a205b60701b815260120190565b7f7b2274726169745f74797065223a202248656164222c202276616c7565223a208152601160f91b602082015260210190565b876131a0565b62089f4b60ea1b815260030190565b9998505050505050505050565b7f7b2274726169745f74797065223a202245796573222c202276616c7565223a2081526000601160f91b80602084015286516133ff816021860160208b01612aab565b62089f4b60ea1b60219185019182018190527f7b2274726169745f74797065223a20224265616b222c202276616c7565223a206024830152604482018390528751613451816045850160208c01612aab565b60459201918201527f7b2274726169745f74797065223a2022426f6479222c202276616c7565223a2060488201526068810182905261350c6134ff6134f26134e46134de6134a56133a0606988018d6131a0565b7f7b2274726169745f74797065223a20224261636b67726f756e64222c20227661815266363ab2911d101160c91b602082015260270190565b896131a0565b61227d60f01b815260020190565b605d60f81b815260010190565b607d60f81b815260010190565b98975050505050505050565b6000835161352a818460208801612aab565b83519083019061353e818360208801612aab565b01949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161357f81601d850160208701612aab565b91909101601d0192915050565b634e487b7160e01b600052601260045260246000fd5b6000826135b1576135b161358c565b500690565b6000826135c5576135c561358c565b500490565b6000828210156135dc576135dc613159565b500390565b7f3c7376672077696474683d2232303022206865696768743d223230302220766981527f6577426f783d2230203020323030203230302220786d6c6e733d22687474703a60208201527f2f2f7777772e77332e6f72672f323030302f737667222073686170652d72656e6040820152733232b934b7339e9131b934b9b822b233b2b9911f60611b60608201527f3c726563742077696474683d223130302522206865696768743d2231303025226074820152672066696c6c3d222360c01b6094820152600083516136b981609c850160208801612aab565b631110179f60e11b609c918401918201527f3c67207472616e73666f726d3d227472616e736c6174652834302c203235292260a0820152601f60f91b60c0820152835161370d8160c1840160208801612aab565b61373b61372960c183850101631e17b39f60e11b815260040190565b651e17b9bb339f60d11b815260060190565b9695505050505050565b600081600019048311821515161561375f5761375f613159565b500290565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061373b90830184612ad7565b6000602082840312156137a957600080fd5b815161195081612a5f565b600086516137c6818460208b01612aab565b6c1e3932b1ba103bb4b23a341e9160991b90830190815286516137f081600d840160208b01612aab565b7011103432b4b3b43a1e91189811103c1e9160791b600d9290910191820152855161382281601e840160208a01612aab565b6411103c9e9160d91b601e92909101918201528451613848816023840160208901612aab565b68222066696c6c3d222360b81b60239290910191820152835161387281602c840160208801612aab565b631110179f60e11b602c9290910191820152603001979650505050505050565b81516001600160401b038111156138ab576138ab612cd5565b6138bf816138b98454612fbd565b84613053565b602080601f8311600181146138f457600084156138dc5750858301515b600019600386901b1c1916600185901b178555610b5a565b600085815260208120601f198616915b8281101561392357888601518255948401946001909101908401613904565b50858210156139415787850151600019600388901b60f8161c191681555b5050505050600190811b0190555056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212201ba8deee80832ba8386b278e16a9d6859ea63365871f575225a365110308512a64736f6c634300080f003300000000000000000000000000000000000000000000000000000000000003e8

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102275760003560e01c8063715018a611610130578063a22cb465116100b8578063e985e9c51161007c578063e985e9c5146104ee578063ed14cc251461052a578063f1dc193a1461053d578063f2fde38b14610550578063fd1b21621461056357600080fd5b8063a22cb4651461049a578063b88d4fde146104ad578063c87b56dd146104c0578063d53fd858146104d3578063dc33e681146104db57600080fd5b80638ba4cc3c116100ff5780638ba4cc3c1461043b5780638da5cb5b1461044e57806394f75d391461045f57806395d89b41146104725780639adaebff1461047a57600080fd5b8063715018a6146104055780637642f2bf1461040d5780638456cb5914610420578063894b4c2e1461042857600080fd5b8063203ee78c116101b35780634e7b97da116101825780634e7b97da1461039357806350d0a919146103ba5780635c975abb146103cd5780636352211e146103df57806370a08231146103f257600080fd5b8063203ee78c1461035257806323b872dd146103655780633f4ba83a1461037857806342842e0e1461038057600080fd5b8063081812fc116101fa578063081812fc146102d6578063095ea7b31461030157806314a48eaa14610316578063164986201461032957806318160ddd1461033c57600080fd5b806301ffc9a71461022c578063035f0c871461025457806304bde4dd146102ae57806306fdde03146102ce575b600080fd5b61023f61023a366004612a75565b610576565b60405190151581526020015b60405180910390f35b61028a610262366004612a92565b600d6020526000908152604090205460ff808216916101008104821691620100009091041683565b6040805160ff9485168152928416602084015292169181019190915260600161024b565b6102c16102bc366004612a92565b6105c8565b60405161024b9190612b03565b6102c1610674565b6102e96102e4366004612a92565b610706565b6040516001600160a01b03909116815260200161024b565b61031461030f366004612b32565b61074a565b005b610314610324366004612ba7565b6107ea565b610314610337366004612ba7565b6108a0565b600254600154035b60405190815260200161024b565b610314610360366004612be8565b61094e565b610314610373366004612c0a565b6109c9565b610314610b62565b61031461038e366004612c0a565b610b74565b6103447f00000000000000000000000000000000000000000000000000000000000003e881565b6103146103c8366004612c46565b610b94565b600054600160a01b900460ff1661023f565b6102e96103ed366004612a92565b610c78565b610344610400366004612cba565b610c83565b610314610cd1565b61031461041b366004612d95565b610ce3565b610314610d98565b6102c1610436366004612a92565b610da8565b610314610449366004612b32565b6112ac565b6000546001600160a01b03166102e9565b6102c161046d366004612a92565b611359565b6102c1611369565b610344610488366004612cba565b60096020526000908152604090205481565b6103146104a8366004612ed3565b611378565b6103146104bb366004612f0f565b61140d565b6102c16104ce366004612a92565b611457565b610344601081565b6103446104e9366004612cba565b611488565b61023f6104fc366004612f8a565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b610314610538366004612c46565b6114b2565b6102c161054b366004612be8565b6115b0565b61031461055e366004612cba565b6115f4565b610314610571366004612cba565b611672565b60006301ffc9a760e01b6001600160e01b0319831614806105a757506380ac58cd60e01b6001600160e01b03198316145b806105c25750635b5e139f60e01b6001600160e01b03198316145b92915050565b600c81815481106105d857600080fd5b9060005260206000200160009150905080546105f390612fbd565b80601f016020809104026020016040519081016040528092919081815260200182805461061f90612fbd565b801561066c5780601f106106415761010080835404028352916020019161066c565b820191906000526020600020905b81548152906001019060200180831161064f57829003601f168201915b505050505081565b60606003805461068390612fbd565b80601f01602080910402602001604051908101604052809291908181526020018280546106af90612fbd565b80156106fc5780601f106106d1576101008083540402835291602001916106fc565b820191906000526020600020905b8154815290600101906020018083116106df57829003601f168201915b5050505050905090565b6000610711826117ae565b61072e576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b600061075582610c78565b9050336001600160a01b0382161461078e5761077181336104fc565b61078e576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6107f26117d6565b60005b8181101561085657600b83838381811061081157610811612ff7565b9050602002810190610823919061300d565b825460018101845560009384526020909320909201916108439183613099565b508061084e8161316f565b9150506107f5565b50600b5460408051838152602081019290925242908201527f9dd765a8ac0fdc842016b513cb9699edbc9ed0b279269f89d78eeda020001c4c906060015b60405180910390a15050565b6108a86117d6565b60005b8181101561090c57600c8383838181106108c7576108c7612ff7565b90506020028101906108d9919061300d565b825460018101845560009384526020909320909201916108f99183613099565b50806109048161316f565b9150506108ab565b50600c5460408051838152602081019290925242908201527fc71109b751c89ce3dcb6772c18ebe4f7e97dc4f49dc0bac1d196baadc03a576490606001610894565b6109566117d6565b60006109628382613188565b90505b818110156109885761097681611830565b806109808161316f565b915050610965565b50604080518381526020810183905242918101919091527f9fd3cccbe951f28b583bde667f720227c26636e9f81ec4112f59dfc1b2266da490606001610894565b60006109d482611904565b9050836001600160a01b0316816001600160a01b031614610a075760405162a1148160e81b815260040160405180910390fd5b60008281526007602052604090208054338082146001600160a01b03881690911417610a5457610a3786336104fc565b610a5457604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610a7b57604051633a954ecd60e21b815260040160405180910390fd5b8015610a8657600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040812091909155600160e11b84169003610b1857600184016000818152600560205260408120549003610b16576001548114610b165760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b610b6a6117d6565b610b72611972565b565b610b8f8383836040518060200160405280600081525061140d565b505050565b610b9c6117d6565b7f00000000000000000000000000000000000000000000000000000000000003e8811115610bdd5760405163078917bd60e21b815260040160405180910390fd5b60005b81811015610c425760096000848484818110610bfe57610bfe612ff7565b610c149260206040909202019081019150612cba565b6001600160a01b03168152602081019190915260400160009081205580610c3a8161316f565b915050610be0565b50604080518281524260208201527f73f009f6262198f793b14057cca3c741279238e575bf8802516e67d8fe24155b9101610894565b60006105c282611904565b60006001600160a01b038216610cac576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b610cd96117d6565b610b7260006119c7565b610ceb6117d6565b60005b8151811015610d5057600a828281518110610d0b57610d0b612ff7565b60209081029190910181015182546001810184556000938452928290208151610d3d949190910192919091019061297a565b5080610d488161316f565b915050610cee565b508051600a546040805192835260208301919091524282820152517f14177b24363314b8fc5106f9b248deb91b755cbaef42bbcc5167cd1a6a7bf2c59181900360600190a150565b610da06117d6565b610b72611a17565b60606000610db583611a5a565b604051602001610dc591906131bc565b60405160208183030381529060405290506000610de184611a5a565b604051602001610df191906131f0565b60408051601f198184030181529181526000868152600d60205290812054600b805493945060ff8083169461010084048216946201000090940490911692919084908110610e4157610e41612ff7565b906000526020600020018054610e5690612fbd565b80601f0160208091040260200160405190810160405280929190818152602001828054610e8290612fbd565b8015610ecf5780601f10610ea457610100808354040283529160200191610ecf565b820191906000526020600020905b815481529060010190602001808311610eb257829003601f168201915b505050505090506000600a8581548110610eeb57610eeb612ff7565b90600052602060002001805480602002602001604051908101604052809291908181526020016000905b82821015610fc1578382906000526020600020018054610f3490612fbd565b80601f0160208091040260200160405190810160405280929190818152602001828054610f6090612fbd565b8015610fad5780601f10610f8257610100808354040283529160200191610fad565b820191906000526020600020905b815481529060010190602001808311610f9057829003601f168201915b505050505081526020019060010190610f15565b5050505090506000600a8581548110610fdc57610fdc612ff7565b90600052602060002001805480602002602001604051908101604052809291908181526020016000905b828210156110b257838290600052602060002001805461102590612fbd565b80601f016020809104026020016040519081016040528092919081815260200182805461105190612fbd565b801561109e5780601f106110735761010080835404028352916020019161109e565b820191906000526020600020905b81548152906001019060200180831161108157829003601f168201915b505050505081526020019060010190611006565b5050505090506000600c85815481106110cd576110cd612ff7565b9060005260206000200180546110e290612fbd565b80601f016020809104026020016040519081016040528092919081815260200182805461110e90612fbd565b801561115b5780601f106111305761010080835404028352916020019161115b565b820191906000526020600020905b81548152906001019060200180831161113e57829003601f168201915b50505050509050600061117085858585611b62565b9050600061117d86611b9a565b905061127b8b8b8561118e86611c86565b89866000015160ff16815181106111a7576111a7612ff7565b60200260200101516040516020016111c395949392919061324b565b60405160208183030381529060405286836020015160ff16815181106111eb576111eb612ff7565b602002602001015187846040015160ff168151811061120c5761120c612ff7565b602002602001015187856060015160ff168151811061122d5761122d612ff7565b60200260200101518760405160200161124994939291906133bc565b60408051601f19818403018152908290526112679291602001613518565b604051602081830303815290604052611c86565b60405160200161128b9190613547565b6040516020818303038152906040529b505050505050505050505050919050565b6112b46117d6565b806000036112d5576040516347f9005360e01b815260040160405180910390fd5b60006112e060015490565b90505b81811015611306576112f481611830565b806112fe8161316f565b9150506112e3565b506113118282611dd8565b604080518281524260208201526001600160a01b038416917fada993ad066837289fe186cd37227aa338d27519a8a1547472ecb9831486d27291015b60405180910390a25050565b600b81815481106105d857600080fd5b60606004805461068390612fbd565b336001600160a01b038316036113a15760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6114188484846109c9565b6001600160a01b0383163b156114515761143484848484611eb8565b611451576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060611462826117ae565b61147f57604051630a14c4b560e41b815260040160405180910390fd5b6105c282610da8565b6001600160a01b038116600090815260066020526040808220546001600160401b03911c166105c2565b6114ba6117d6565b7f00000000000000000000000000000000000000000000000000000000000003e88111156114fb5760405163078917bd60e21b815260040160405180910390fd5b60005b8181101561157a5782828281811061151857611518612ff7565b905060400201602001356009600085858581811061153857611538612ff7565b61154e9260206040909202019081019150612cba565b6001600160a01b03168152602081019190915260400160002055806115728161316f565b9150506114fe565b50604080518281524260208201527fa1b5d2e58d3f904a81cec3be68ea1d5271414f1f593e3afcc64f771d19e3c2b09101610894565b600a82815481106115c057600080fd5b9060005260206000200181815481106115d857600080fd5b906000526020600020016000915091505080546105f390612fbd565b6115fc6117d6565b6001600160a01b0381166116665760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61166f816119c7565b50565b61167a611fa0565b32331461169a57604051639837371b60e01b815260040160405180910390fd5b6001600160a01b03811660009081526009602052604081205490036116d257604051634fee85f160e11b815260040160405180910390fd5b6001600160a01b038116600090815260066020526040808220546001600160401b03911c16111561171657604051632705194f60e21b815260040160405180910390fd5b600161172961172460015490565b611830565b6001600160a01b038216600090815260096020526040902054601010156117645750600261176461175960015490565b611724906001613188565b61176e8282611dd8565b604080518281524260208201526001600160a01b038416917f2748e05fa37880f2d3973dfefec9324550ae744c1e90632532f10c0e31c4b8cb910161134d565b6000600154821080156105c2575050600090815260056020526040902054600160e01b161590565b6000546001600160a01b03163314610b725760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161165d565b600a54600b5480821461186057604051630114336760e11b8152600481018390526024810182905260440161165d565b61186b838342611fed565b6000848152600d60205260409020805460ff191660ff9290921691909117905561189582846135a2565b6000848152600d60205260409020805460ff929092166101000261ff0019909216919091179055600c546118d59084906118d0426001613188565b611fed565b6000938452600d6020526040909320805460ff94909416620100000262ff000019909416939093179092555050565b6000816001548110156119595760008181526005602052604081205490600160e01b82169003611957575b8060000361195057506000190160008181526005602052604090205461192f565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b61197a61202f565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b611a1f611fa0565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586119aa3390565b606081600003611a815750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611aab5780611a958161316f565b9150611aa49050600a836135b6565b9150611a85565b6000816001600160401b03811115611ac557611ac5612cd5565b6040519080825280601f01601f191660200182016040528015611aef576020820181803683370190505b5090505b8415611b5a57611b046001836135ca565b9150611b11600a866135a2565b611b1c906030613188565b60f81b818381518110611b3157611b31612ff7565b60200101906001600160f81b031916908160001a905350611b53600a866135b6565b9450611af3565b949350505050565b606081611b7086868661207f565b604051602001611b819291906135e1565b6040516020818303038152906040529050949350505050565b604080516080810182526000808252602082018190529181018290526060810182905290611bc7836126b0565b905060405180608001604052808260200151600481518110611beb57611beb612ff7565b60200260200101516020015160ff1681526020018260200151600981518110611c1657611c16612ff7565b60200260200101516020015160ff1681526020018260200151601881518110611c4157611c41612ff7565b60200260200101516020015160ff1681526020018260200151602381518110611c6c57611c6c612ff7565b60200260200101516020015160ff16815250915050919050565b60608151600003611ca557505060408051602081019091526000815290565b60006040518060600160405280604081526020016139526040913990506000600384516002611cd49190613188565b611cde91906135b6565b611ce9906004613745565b6001600160401b03811115611d0057611d00612cd5565b6040519080825280601f01601f191660200182016040528015611d2a576020820181803683370190505b509050600182016020820185865187015b80821015611d96576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250611d3b565b5050600386510660018114611db25760028114611dc557611dcd565b603d6001830353603d6002830353611dcd565b603d60018303535b509195945050505050565b6001546001600160a01b038316611e0157604051622e076360e81b815260040160405180910390fd5b81600003611e225760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260066020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260056020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210611e6c5760015550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611eed903390899088908890600401613764565b6020604051808303816000875af1925050508015611f28575060408051601f3d908101601f19168201909252611f2591810190613797565b60015b611f86573d808015611f56576040519150601f19603f3d011682016040523d82523d6000602084013e611f5b565b606091505b508051600003611f7e576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611b5a565b600054600160a01b900460ff1615610b725760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161165d565b600082848360405160200161200c929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c611b5a91906135a2565b600054600160a01b900460ff16610b725760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161165d565b604080516104608101825260016104208201908152600360fc1b610440830152815281518083018352600280825261031360f41b602083810191909152808401929092528351808501855281815261032360f41b81840152838501528351808501855281815261033360f41b818401526060848101919091528451808601865282815261034360f41b8185015260808501528451808601865282815261035360f41b8185015260a08501528451808601865282815261036360f41b8185015260c08501528451808601865282815261037360f41b8185015260e08501528451808601865282815261038360f41b818501526101008501528451808601865291825261039360f41b828401526101208401919091528351808501855260038082526203130360ec1b82850152610140850191909152845180860186528181526203131360ec1b81850152610160850152845180860186528181526203132360ec1b81850152610180850152845180860186528181526203133360ec1b818501526101a0850152845180860186528181526203134360ec1b818501526101c0850152845180860186528181526203135360ec1b818501526101e0850152845180860186528181526203136360ec1b81850152610200850152845180860186528181526203137360ec1b81850152610220850152845180860186528181526203138360ec1b81850152610240850152845180860186528181526203139360ec1b81850152610260850152845180860186528181526203230360ec1b81850152610280850152845180860186528181526203231360ec1b818501526102a0850152845180860186528181526203232360ec1b818501526102c0850152845180860186528181526203233360ec1b818501526102e0850152845180860186528181526203234360ec1b81850152610300850152845180860186528181526203235360ec1b81850152610320850152845180860186528181526203236360ec1b81850152610340850152845180860186528181526203237360ec1b81850152610360850152845180860186528181526203238360ec1b81850152610380850152845180860186528181526203239360ec1b818501526103a0850152845180860186528181526203330360ec1b818501526103c0850152845180860186528181526203331360ec1b818501526103e0850152845180860190955284526203332360ec1b918401919091526104008201929092526000612416866126b0565b80516060810151905191925060ff908116911660006124336129d0565b60608060005b8760200151518110156126485760008860200151828151811061245e5761245e612ff7565b60200260200101519050806020015160ff166000146125fb5780518a9060ff166021811061248e5761248e612ff7565b60200201518587601081106124a5576124a5612ff7565b60200201528988602181106124bc576124bc612ff7565b6020020151856124cd886001613188565b601081106124dd576124dd612ff7565b60200201528987602181106124f4576124f4612ff7565b602002015185612505886002613188565b6010811061251557612515612ff7565b60200201819052506000816020015190508c8160ff168151811061253b5761253b612ff7565b6020026020010151868860036125519190613188565b6010811061256157612561612ff7565b6020020152600660ff8216116125b2578d8160ff168151811061258657612586612ff7565b60200260200101518688600361259c9190613188565b601081106125ac576125ac612ff7565b60200201525b6125bd600488613188565b9650601087106125f957846125d288886128b1565b6040516020016125e3929190613518565b6040516020818303038152906040529450600096505b505b805161260a9060ff1689613188565b89516020015190985060ff1688036126355788516060015160ff169750866126318161316f565b9750505b50806126408161316f565b915050612439565b50831561267d578161265a85856128b1565b60405160200161266b929190613518565b60405160208183030381529060405291505b8082604051602001612690929190613518565b60408051808303601f190181529190529c9b505050505050505050505050565b6040805160c081018252600091810182815260608083018490526080830184905260a083019390935281526020810191909152600060405180608001604052808460018151811061270357612703612ff7565b0160209081015160f81c825285519101908590600290811061272757612727612ff7565b0160209081015160f81c825285519101908590600390811061274b5761274b612ff7565b0160209081015160f81c825285519101908590600490811061276f5761276f612ff7565b016020015160f81c905283519091506000908190600290612792906005906135ca565b61279c91906135b6565b6001600160401b038111156127b3576127b3612cd5565b6040519080825280602002602001820160405280156127f857816020015b60408051808201909152600080825260208201528152602001906001900390816127d15790505b50905060055b855181101561289757604051806040016040528087838151811061282457612824612ff7565b0160209081015160f81c8252018761283d846001613188565b8151811061284d5761284d612ff7565b016020015160f81c9052825183908590811061286b5761286b612ff7565b602002602001018190525082806128819061316f565b93506128909050600282613188565b90506127fe565b506040805180820190915292835260208301525092915050565b60608060005b8481101561297257818482601081106128d2576128d2612ff7565b6020020151856128e3846001613188565b601081106128f3576128f3612ff7565b602002015186612904856002613188565b6010811061291457612914612ff7565b602002015187612925866003613188565b6010811061293557612935612ff7565b602002015160405160200161294e9594939291906137b4565b60408051601f19818403018152919052915061296b600482613188565b90506128b7565b509392505050565b8280548282559060005260206000209081019282156129c0579160200282015b828111156129c057825182906129b09082613892565b509160200191906001019061299a565b506129cc9291506129f8565b5090565b6040518061020001604052806010905b60608152602001906001900390816129e05790505090565b808211156129cc576000612a0c8282612a15565b506001016129f8565b508054612a2190612fbd565b6000825580601f10612a31575050565b601f01602090049060005260206000209081019061166f91905b808211156129cc5760008155600101612a4b565b6001600160e01b03198116811461166f57600080fd5b600060208284031215612a8757600080fd5b813561195081612a5f565b600060208284031215612aa457600080fd5b5035919050565b60005b83811015612ac6578181015183820152602001612aae565b838111156114515750506000910152565b60008151808452612aef816020860160208601612aab565b601f01601f19169290920160200192915050565b6020815260006119506020830184612ad7565b80356001600160a01b0381168114612b2d57600080fd5b919050565b60008060408385031215612b4557600080fd5b612b4e83612b16565b946020939093013593505050565b60008083601f840112612b6e57600080fd5b5081356001600160401b03811115612b8557600080fd5b6020830191508360208260051b8501011115612ba057600080fd5b9250929050565b60008060208385031215612bba57600080fd5b82356001600160401b03811115612bd057600080fd5b612bdc85828601612b5c565b90969095509350505050565b60008060408385031215612bfb57600080fd5b50508035926020909101359150565b600080600060608486031215612c1f57600080fd5b612c2884612b16565b9250612c3660208501612b16565b9150604084013590509250925092565b60008060208385031215612c5957600080fd5b82356001600160401b0380821115612c7057600080fd5b818501915085601f830112612c8457600080fd5b813581811115612c9357600080fd5b8660208260061b8501011115612ca857600080fd5b60209290920196919550909350505050565b600060208284031215612ccc57600080fd5b61195082612b16565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612d1357612d13612cd5565b604052919050565b60006001600160401b03821115612d3457612d34612cd5565b5060051b60200190565b60006001600160401b03831115612d5757612d57612cd5565b612d6a601f8401601f1916602001612ceb565b9050828152838383011115612d7e57600080fd5b828260208301376000602084830101529392505050565b600060208284031215612da757600080fd5b6001600160401b038083351115612dbd57600080fd5b8235830184601f820112612dd057600080fd5b612de2612ddd8235612d1b565b612ceb565b81358082526020808301929160051b84010187811115612e0157600080fd5b602084015b81811015612ec6578581351115612e1c57600080fd5b8035850189603f820112612e2f57600080fd5b6020810135612e40612ddd82612d1b565b81815260059190911b82016040019060208101908c831115612e6157600080fd5b604084015b83811015612eb0578a81351115612e7c57600080fd5b803585018e605f820112612e8f57600080fd5b612ea18f604083013560608401612d3e565b84525060209283019201612e66565b5087525050602094850194919091019050612e06565b5090979650505050505050565b60008060408385031215612ee657600080fd5b612eef83612b16565b915060208301358015158114612f0457600080fd5b809150509250929050565b60008060008060808587031215612f2557600080fd5b612f2e85612b16565b9350612f3c60208601612b16565b92506040850135915060608501356001600160401b03811115612f5e57600080fd5b8501601f81018713612f6f57600080fd5b612f7e87823560208401612d3e565b91505092959194509250565b60008060408385031215612f9d57600080fd5b612fa683612b16565b9150612fb460208401612b16565b90509250929050565b600181811c90821680612fd157607f821691505b602082108103612ff157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e1984360301811261302457600080fd5b8301803591506001600160401b0382111561303e57600080fd5b602001915036819003821315612ba057600080fd5b601f821115610b8f57600081815260208120601f850160051c8101602086101561307a5750805b601f850160051c820191505b81811015610b5a57828155600101613086565b6001600160401b038311156130b0576130b0612cd5565b6130c4836130be8354612fbd565b83613053565b6000601f8411600181146130f857600085156130e05750838201355b600019600387901b1c1916600186901b178355613152565b600083815260209020601f19861690835b828110156131295786850135825560209485019460019092019101613109565b50868210156131465760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b634e487b7160e01b600052601160045260246000fd5b60006001820161318157613181613159565b5060010190565b6000821982111561319b5761319b613159565b500190565b600081516131b2818560208601612aab565b9290920192915050565b6b02834bc32b62834b3b2b7b7160a51b8152600082516131e381600c850160208701612aab565b91909101600c0192915050565b6b02834bc32b62834b3b2b7b7160a51b81526000825161321781600c850160208701612aab565b7f207468696e6b732045766572797468696e677320436f6f000000000000000000600c939091019283015250602301919050565b607b60f81b815267113730b6b2911d1160c11b60018201528551600090613279816009850160208b01612aab565b71111610113232b9b1b934b83a34b7b7111d1160711b60099184019182015286516132ab81601b840160208b01612aab565b7f222c20226261636b67726f756e645f636f6c6f72223a22000000000000000000601b929091019182015285516132e9816032840160208a01612aab565b7f222c2022696d616765223a2022646174613a696d6167652f7376672b786d6c3b603292909101918201526618985cd94d8d0b60ca1b60528201528451613337816059840160208901612aab565b6133af6133a061339a61336760598587010171222c202261747472696275746573223a205b60701b815260120190565b7f7b2274726169745f74797065223a202248656164222c202276616c7565223a208152601160f91b602082015260210190565b876131a0565b62089f4b60ea1b815260030190565b9998505050505050505050565b7f7b2274726169745f74797065223a202245796573222c202276616c7565223a2081526000601160f91b80602084015286516133ff816021860160208b01612aab565b62089f4b60ea1b60219185019182018190527f7b2274726169745f74797065223a20224265616b222c202276616c7565223a206024830152604482018390528751613451816045850160208c01612aab565b60459201918201527f7b2274726169745f74797065223a2022426f6479222c202276616c7565223a2060488201526068810182905261350c6134ff6134f26134e46134de6134a56133a0606988018d6131a0565b7f7b2274726169745f74797065223a20224261636b67726f756e64222c20227661815266363ab2911d101160c91b602082015260270190565b896131a0565b61227d60f01b815260020190565b605d60f81b815260010190565b607d60f81b815260010190565b98975050505050505050565b6000835161352a818460208801612aab565b83519083019061353e818360208801612aab565b01949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161357f81601d850160208701612aab565b91909101601d0192915050565b634e487b7160e01b600052601260045260246000fd5b6000826135b1576135b161358c565b500690565b6000826135c5576135c561358c565b500490565b6000828210156135dc576135dc613159565b500390565b7f3c7376672077696474683d2232303022206865696768743d223230302220766981527f6577426f783d2230203020323030203230302220786d6c6e733d22687474703a60208201527f2f2f7777772e77332e6f72672f323030302f737667222073686170652d72656e6040820152733232b934b7339e9131b934b9b822b233b2b9911f60611b60608201527f3c726563742077696474683d223130302522206865696768743d2231303025226074820152672066696c6c3d222360c01b6094820152600083516136b981609c850160208801612aab565b631110179f60e11b609c918401918201527f3c67207472616e73666f726d3d227472616e736c6174652834302c203235292260a0820152601f60f91b60c0820152835161370d8160c1840160208801612aab565b61373b61372960c183850101631e17b39f60e11b815260040190565b651e17b9bb339f60d11b815260060190565b9695505050505050565b600081600019048311821515161561375f5761375f613159565b500290565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061373b90830184612ad7565b6000602082840312156137a957600080fd5b815161195081612a5f565b600086516137c6818460208b01612aab565b6c1e3932b1ba103bb4b23a341e9160991b90830190815286516137f081600d840160208b01612aab565b7011103432b4b3b43a1e91189811103c1e9160791b600d9290910191820152855161382281601e840160208a01612aab565b6411103c9e9160d91b601e92909101918201528451613848816023840160208901612aab565b68222066696c6c3d222360b81b60239290910191820152835161387281602c840160208801612aab565b631110179f60e11b602c9290910191820152603001979650505050505050565b81516001600160401b038111156138ab576138ab612cd5565b6138bf816138b98454612fbd565b84613053565b602080601f8311600181146138f457600084156138dc5750858301515b600019600386901b1c1916600185901b178555610b5a565b600085815260208120601f198616915b8281101561392357888601518255948401946001909101908401613904565b50858210156139415787850151600019600388901b60f8161c191681555b5050505050600190811b0190555056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212201ba8deee80832ba8386b278e16a9d6859ea63365871f575225a365110308512a64736f6c634300080f0033

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

00000000000000000000000000000000000000000000000000000000000003e8

-----Decoded View---------------
Arg [0] : updateHoldersBatchMax_ (uint256): 1000

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000003e8


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

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