ETH Price: $2,438.25 (-0.71%)
Gas: 6.34 Gwei
 

Overview

Max Total Supply

10,021 SHDW

Holders

160

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
hoodiemfer.eth
Balance
0 SHDW
0x646ef8e3c8e79a10daf8f32621a3e468501cc3e4
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:
OnChainMfers

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 8 : Phase3_OnChainMfers.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

/*

                   ██ 
     ██████       ██
    ██    ██       ██
    ██    ██ █████ 
    ██    ██       
     ██████


     ██████  ███    ██                         
    ██    ██ ████   ██                         
    ██    ██ ██ ██  ██                         
    ██    ██ ██  ██ ██                         
     ██████  ██   ████                         
                                            
                                            
     ██████ ██   ██  █████  ██ ███    ██       
    ██      ██   ██ ██   ██ ██ ████   ██       
    ██      ███████ ███████ ██ ██ ██  ██       
    ██      ██   ██ ██   ██ ██ ██  ██ ██       
     ██████ ██   ██ ██   ██ ██ ██   ████       
                                            
                                            
    ███    ███ ███████ ███████ ██████  ███████ 
    ████  ████ ██      ██      ██   ██ ██      
    ██ ████ ██ █████   █████   ██████  ███████ 
    ██  ██  ██ ██      ██      ██   ██      ██ 
    ██      ██ ██      ███████ ██   ██ ███████

    (phase 3)
    
    vision: @DadMod_xyz & @galtoshi
    art: @thompsonNFT
    devs: @JofaMcBender & @0xSomeGuy

    with the support of:
    sartoshi: 0xF95752fD023fD8802Abdd9cbe8e9965F623F8A84
    mfer community: 0x79FCDEF22feeD20eDDacbB2587640e45491b757f

*/


/*
    Note - Some modificaitons made to ERC721:
        updated _currentIndex
            uint256 private _currentIndex = 10021;
        remove currentIndex from constructor
            //_currentIndex = _startTokenId();
        blocked setApprovalForAll function
        blocked Approve function
*/
import "./ERC721A-OCMfers.sol";
import "./extras/SSTORE2.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";


error ReallyWantToClaimThisForYouButTheFundsArentRight();
error WhoaFriendCantUpdateGoodiesForTokensYouDontOwn();
error WhyYouTryingToClaimOtherPeoplesTokens();
error YouWereTheLastToClaimThisTokenAlready();
error SorryCouldntWithdrawYourFundsDude();
error UmmDontThinkThisIsAnOgTokenId();
error WeDontDoThatAroundHere();
error WeSoulBoundFam();

// all tokens in this contract are soul-bound, non-tradeable tokens
// they map back to the original mfer contract

contract OnChainMfers is ERC721A, Ownable, ReentrancyGuard
{

    //-------------------------------------------------------------------------
    //
    //      contract shiz
    //
    //-------------------------------------------------------------------------

    constructor() ERC721A("OnChainMfers", "SHDW")
    {
        JeffFromAccounting = msg.sender;
        // nothing else to see here folks 👇
    }

    // claim price
    uint256 public ClaimPrice;
    // update claim price, will attempt to always keep claim price at ~$69 USD
    function updateClaimPrice(uint256 _newPrice) external onlyOwner
    {
        ClaimPrice = _newPrice;
    }
    
    // maps token index to its mfer dna
    mapping (uint256 => uint256) public TokenToDnaMap;
    // maps dna to bool if claimed to avoid duplicates
    mapping (uint256 => bool) public DnaToClaimedMap;
    // maps og token to claimed status
    mapping (uint256 => bool) public OgTokenToClaimedMap;
    // maps last claim address to token
    mapping (uint256 => address) public OgTokenToLastClaimedMap;
    
    // original mfer contract
    IOgMferContract private OgMferContract;
    // update mfer contract address
    function setOgMferContractAddress(address _newAddress) external onlyOwner
    {
        OgMferContract = IOgMferContract(address(_newAddress));
    }
    // contract address for the layer contract to pull/read trait assets
    IMferLayers private MferLayerContract;
    // update layer contract address
    function setLayerContractAddress(address _newAddress) external onlyOwner
    {
        MferLayerContract = IMferLayers(address(_newAddress));
    } 



    //-------------------------------------------------------------------------
    //
    //      erc721-ish functions
    //
    //-------------------------------------------------------------------------

    // claim og mfer (transfers token to current og mfer owner)
    function claimOgMfer(uint256 _tokenId) public payable
    {
        // check if token exists
        if(!_exists(_tokenId)) revert UmmDontThinkThisIsAnOgTokenId();

        // get og owner
        address ogOwner = OgMferContract.ownerOf(_tokenId);

        // check if sender is not contract owner
        if(msg.sender != owner())
        {
            // check if sender is og owner
            if(msg.sender != ogOwner) revert WhyYouTryingToClaimOtherPeoplesTokens();
            
            // check payment
            if(!OgTokenToClaimedMap[_tokenId] && msg.value != ClaimPrice) revert ReallyWantToClaimThisForYouButTheFundsArentRight();
        }

        // check if already claimed, set to claimed
        if(!OgTokenToClaimedMap[_tokenId])
        {   
            // update claimed map
            OgTokenToClaimedMap[_tokenId] = true;
        } 

        // get last claimed address
        address originAddress = OgTokenToLastClaimedMap[_tokenId];

        // update last claimed address
        OgTokenToLastClaimedMap[_tokenId] = ogOwner;

        // revert if last claimed is same as current owner
        if(originAddress == ogOwner) revert YouWereTheLastToClaimThisTokenAlready();
        
        // claim token
        emit Transfer(originAddress, ogOwner, _tokenId);   
    }

    // onwer of override
    function ownerOf(uint256 _tokenId) public view override returns (address)
    {
        // check if token exists
        if(!_exists(_tokenId)) revert UmmDontThinkThisIsAnOgTokenId();

        // return og owner
        return OgMferContract.ownerOf(_tokenId);
    }

    // dont allow OG transfers
    function transferFrom(address from, address to, uint256 tokenId) public payable override
    {
        revert WeSoulBoundFam();
    }

    // dont allow approvals
    function approve(address to, uint256 tokenId) public payable override
    {
        revert WeDontDoThatAroundHere();
    }

    // dont allow operator approvals
    function setApprovalForAll(address operator, bool approved) public override
    {
        revert WeDontDoThatAroundHere();
    }

    function _exists(uint256 tokenId) internal view override returns (bool)
    {
        return tokenId < 10021;
    }
    

    

    //-------------------------------------------------------------------------
    //
    //      erc721 metadata functions
    //
    //-------------------------------------------------------------------------


    function tokenURI(uint256 _tokenId) public view override returns(string memory)
    {
        // check token exists
        if(!_exists(_tokenId)) revert UmmDontThinkThisIsAnOgTokenId();

        // check if og token and has not been claimed
        if(!OgTokenToClaimedMap[_tokenId])
        {
            // return unclaimed metadata
            return string.concat(UnclaimedMetadata[0], _toString(_tokenId), UnclaimedMetadata[1], MferLayerContract.readLayerString(UnclaimedLayerData[0], UnclaimedLayerData[1]), UnclaimedMetadata[2]);
        }

        // get dna
        uint256 tokenDNA = TokenToDnaMap[_tokenId];

        // check for goodies
        bool GoodiesAreOn = (GoodiesEnabled && TokenToGoodiesMap[_tokenId]);

        // get temporary variables
        IMferLayers.Trait memory trait;
        IMferLayers.Layer memory layer;
        uint256 attIndex;
        bool firstTraitFound;
        bool surpriseFound;

        // metadata
        string memory metadata = string.concat(
            MetadataStrings[0],
            _toString(_tokenId),
            MetadataStrings[1]
        );

        // start the svg image
        string memory svg = SvgStrings[0];

        // loopty loop
        for(uint256 i=0; i<15; i++)
        {
            
            // check if goodies should be added
            if(i == GoodiesPosition && GoodiesAreOn)
            {
                // add goodies
                svg = string.concat(
                    svg,
                    DaGoodies[0]
                );
            }

            // get attribute index
            attIndex = getTraitIndex(tokenDNA, 14-i);

            // check if trait is blank
            if(attIndex == 0)
            {
                // blank trait, keep it moving
                continue;
            }

            // get trait from layer contract
            trait = MferLayerContract.getTrait(i);
            // get the attribute index
            attIndex = attIndex-1;
            // get layer from trait
            layer = trait.layers[attIndex];
            // append layer to svg
            svg = string.concat(
                svg,
                getLayerSvg(layer)
            );

            // check for surprise
            if(i == 2)
            {
                if(attIndex == 6)
                {
                    svg = string.concat(
                        svg,
                        getSurpriseString(0)
                    );
                    surpriseFound = true;
                } else if(attIndex == 2)
                {
                    svg = string.concat(
                        svg,
                        getSurpriseString(1)
                    );
                    surpriseFound = true;
                }
            }

            // check if goodies should be added
            if(i == GoodiesPosition && GoodiesAreOn)
            {
                // add goodies
                svg = string.concat(
                    svg,
                    DaGoodies[1]
                );
            }

            // update metadata
            metadata = string.concat(
                metadata,
                firstTraitFound ? MetadataStrings[2] : MetadataStrings[3],
                trait.name,
                MetadataStrings[4],
                layer.name,
                MetadataStrings[5]
            );
            // update trait exists for correct metadata
            firstTraitFound = true;
        }

        // complete the svg
        svg = string.concat(
            svg,
            surpriseFound ? SurpriseStuff : '',
            SvgStrings[6]);

        // complete the metadata
        metadata = string.concat(
            metadata,
            MetadataStrings[6],
            svg,
            MetadataStrings[7]
        );
        
        // return that shizzle!
        return metadata;
    }

    function getLayerSvg(IMferLayers.Layer memory _layer) private view returns(string memory)
    {
        return string.concat(
            SvgStrings[1],
            _layer.name,
            SvgStrings[2],
            _toString(_layer.x),
            SvgStrings[3], 
            _toString(_layer.y),
            SvgStrings[4],
            readPointerArray(_layer.pointers),
            SvgStrings[5]
        );
    }

    string[7] private SvgStrings;
    function updateSvgStrings(uint256 _index, string memory _newString) external onlyOwner
    {
        SvgStrings[_index] = _newString;
    }

    string[8] private MetadataStrings;
    function updateMetadataStrings(uint256 _index, string memory _newString) external onlyOwner
    {
        MetadataStrings[_index] = _newString;
    }

    uint256[2] private UnclaimedLayerData;
    function updateUnclaimedLayerData(uint256 _traitIndex, uint256 _layerIndex) external onlyOwner
    {
        UnclaimedLayerData[0] = _traitIndex;
        UnclaimedLayerData[1] = _layerIndex;
    }

    string[3] private UnclaimedMetadata;
    // update unlciamed metadata
    function updateUnclaimedMetadata(uint256 _index, string memory _newString) external onlyOwner
    {
        UnclaimedMetadata[_index] = _newString;
    }

    string private SurpriseStuff;
    function updateSurpriseStuff(string memory _newString) external onlyOwner
    {
        SurpriseStuff = _newString;
    }
    function getSurpriseString(uint256 _index) private view returns(string memory)
    {
        IMferLayers.Layer memory tempLayer;
        if(_index == 0)
        {
            tempLayer = MferLayerContract.getLayer(2, 2);
            return string.concat(
                    SvgStrings[1],
                    tempLayer.name,
                    SvgStrings[2],
                    _toString(tempLayer.x),
                    SvgStrings[3], 
                    _toString(tempLayer.y),
                    "' visibility='hidden' href='data:image/png;charset=utf-8;base64,",
                    readPointerArray(tempLayer.pointers),
                    SvgStrings[5]
                );
        }

        tempLayer = MferLayerContract.getLayer(2, 6);
        return string.concat(
                SvgStrings[1],
                tempLayer.name,
                SvgStrings[2],
                _toString(tempLayer.x),
                SvgStrings[3], 
                _toString(tempLayer.y),
                "' visibility='hidden' href='data:image/png;charset=utf-8;base64,",
                readPointerArray(tempLayer.pointers),
                SvgStrings[5]
            );
    }

    function readPointerArray(address[] memory _pointers) public view returns(string memory)
    {
        // if complex shape not loaded, return empty string
        if(_pointers.length == 0)
        {
            return "";
        }

        // return layer string
        uint256 i;
        string memory output;
        unchecked
        {
            do
            {
                output = string.concat(output, string(SSTORE2.read(_pointers[i])));
                ++i;
            } while(i<_pointers.length);
        }
        return output;
    }



    //-------------------------------------------------------------------------
    //
    //      more functions
    //
    //-------------------------------------------------------------------------    

    // get mapped trait from dna
    function getTraitIndex(uint256 _intDna, uint256 _traitIndex) private pure returns(uint256)
    {
        uint256 bitMask = 255 << (8 * _traitIndex);
        uint256 value = (_intDna & bitMask) >> (8 * _traitIndex);
        return value;
    }
    
    // goodies go before this trait index
    uint256 public GoodiesPosition;
    // update goodies position
    function updateGoodiesPosition(uint256 _index) external onlyOwner
    {
        GoodiesPosition = _index;
    }
    // goodie string
    string[2] public DaGoodies;
    // update the goodies string
    function updateTheGoodies(uint256 _index, string memory _newString) external onlyOwner
    {
        DaGoodies[_index] = _newString;
    }
    // bool to enable or disable goodies in contract
    bool public GoodiesEnabled;
    // toggle goodies enabled for contract
    function toggleGoodiesEnabled() external onlyOwner
    {
        GoodiesEnabled = !GoodiesEnabled;
    }
    
    // maps token index to goodies enabled for individual tokens
    mapping(uint256 => bool) public TokenToGoodiesMap;
    // allows token owners to decide if they want goodies in their image
    function toggleTokenGoodies(uint256 _tokenId) public
    {
        // check if token exists
        if(!_exists(_tokenId)) revert UmmDontThinkThisIsAnOgTokenId();

        // ensure that msg.sender is token owner
        if(msg.sender != ownerOf(_tokenId)) revert WhoaFriendCantUpdateGoodiesForTokensYouDontOwn();

        // update goodies
        TokenToGoodiesMap[_tokenId] = !TokenToGoodiesMap[_tokenId];
    }



    //-------------------------------------------------------------------------
    //
    //      other functions
    //
    //-------------------------------------------------------------------------

    // function to set og dnas
    function setOgDna(uint256 _tokenId, uint256 _dna) external onlyOwner
    {
        // map token index to dna
        TokenToDnaMap[_tokenId] = _dna;
        // set dna claimed to true
        DnaToClaimedMap[_dna] = true;
    }



    //-------------------------------------------------------------------------
    //
    //      custom functions
    //
    //-------------------------------------------------------------------------

    // withdraw address
    address private JeffFromAccounting;

    // update withdraw address
    function updateAccountant(address _newAddress) external onlyOwner
    {
        JeffFromAccounting = _newAddress;
    }

    // withdraw contract eth
    function moveThatGuap() public
    {
        (bool success, ) = JeffFromAccounting.call{value: address(this).balance}("");
        if(!success) revert SorryCouldntWithdrawYourFundsDude();
    }

}


// interface for the goodblocks contract
interface IMferLayers
{
    // trait data struct
    struct Trait
    {
        string name;            // trait name
        Layer[] layers;         // array of layer structs
    }

    // layer data struct
    struct Layer
    {
        uint256 x;              // x-coordinate on 1000x1000 image
        uint256 y;              // y-coordinate on 1000x1000 image
        uint256 width;          // layer width
        uint256 height;         // layer height
        string name;            // layer name
        string traitName;       // trait name (more accessibility)
        address[] pointers;     // array of addresses in sequential order that retrieve base64 strings
    }

    function getTrait(uint256 _traitIndex) external view returns(Trait memory);
    function getLayer(uint256 _traitIndex, uint256 _layerIndex) external view returns(Layer memory);
    function readLayerString(uint256 _traitIndex, uint256 _layerIndex) external view returns(string memory);
    function ownerOf(uint256) external view returns(address);
}


interface IOgMferContract
{
    function ownerOf(uint256) external view returns(address);
}

File 2 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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 8 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

File 4 of 8 : 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 5 of 8 : ERC721A-OCMfers.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

/*
    IMPORTANT: this contract was edited in the following manner:

    updated _currentIndex (line 109)
        uint256 private _currentIndex = 10021;
    remove currentIndex from constructor (line 154)
        //_currentIndex = _startTokenId();
*/



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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return _tokenApprovals[tokenId].value;
    }

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

            // Use assembly to loop and emit the `Transfer` event for gas savings.
            // The duplicated `log4` removes an extra check and reduces stack juggling.
            // The assembly, together with the surrounding Solidity code, have been
            // delicately arranged to nudge the compiler into producing optimized opcodes.
            assembly {
                // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
                toMasked := and(to, _BITMASK_ADDRESS)
                // Emit the `Transfer` event.
                log4(
                    0, // Start of data (0, since no data).
                    0, // End of data (0, since no data).
                    _TRANSFER_EVENT_SIGNATURE, // Signature.
                    0, // `address(0)`.
                    toMasked, // `to`.
                    startTokenId // `tokenId`.
                )

                // The `iszero(eq(,))` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
                // The compiler will optimize the `iszero` away for performance.
                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

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

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

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

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

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

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

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

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Converts a uint256 to its ASCII string decimal representation.
     */
    function _toString(uint256 value) internal pure virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), but
            // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

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

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

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

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


library Bytecode {
  error InvalidCodeAtRange(uint256 _size, uint256 _start, uint256 _end);

  /**
    @notice Generate a creation code that results on a contract with `_code` as bytecode
    @param _code The returning value of the resulting `creationCode`
    @return creationCode (constructor) for new contract
  */
  function creationCodeFor(bytes memory _code) internal pure returns (bytes memory) {
    /*
      0x00    0x63         0x63XXXXXX  PUSH4 _code.length  size
      0x01    0x80         0x80        DUP1                size size
      0x02    0x60         0x600e      PUSH1 14            14 size size
      0x03    0x60         0x6000      PUSH1 00            0 14 size size
      0x04    0x39         0x39        CODECOPY            size
      0x05    0x60         0x6000      PUSH1 00            0 size
      0x06    0xf3         0xf3        RETURN
      <CODE>
    */

    return abi.encodePacked(
      hex"63",
      uint32(_code.length),
      hex"80_60_0E_60_00_39_60_00_F3",
      _code
    );
  }

  /**
    @notice Returns the size of the code on a given address
    @param _addr Address that may or may not contain code
    @return size of the code on the given `_addr`
  */
  function codeSize(address _addr) internal view returns (uint256 size) {
    assembly { size := extcodesize(_addr) }
  }

  /**
    @notice Returns the code of a given address
    @dev It will fail if `_end < _start`
    @param _addr Address that may or may not contain code
    @param _start number of bytes of code to skip on read
    @param _end index before which to end extraction
    @return oCode read from `_addr` deployed bytecode

    Forked from: https://gist.github.com/KardanovIR/fe98661df9338c842b4a30306d507fbd
  */
  function codeAt(address _addr, uint256 _start, uint256 _end) internal view returns (bytes memory oCode) {
    uint256 csize = codeSize(_addr);
    if (csize == 0) return bytes("");

    if (_start > csize) return bytes("");
    if (_end < _start) revert InvalidCodeAtRange(csize, _start, _end); 

    unchecked {
      uint256 reqSize = _end - _start;
      uint256 maxSize = csize - _start;

      uint256 size = maxSize < reqSize ? maxSize : reqSize;

      assembly {
        // allocate output byte array - this could also be done without assembly
        // by using o_code = new bytes(size)
        oCode := mload(0x40)
        // new "memory end" including padding
        mstore(0x40, add(oCode, and(add(add(size, 0x20), 0x1f), not(0x1f))))
        // store length in memory
        mstore(oCode, size)
        // actually retrieve the code, this needs assembly
        extcodecopy(_addr, add(oCode, 0x20), _start, size)
      }
    }
  }
}

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

import "./Bytecode.sol";

/**
  @title A key-value storage with auto-generated keys for storing chunks of data with a lower write & read cost.
  @author Agustin Aguilar <[email protected]>

  Readme: https://github.com/0xsequence/sstore2#readme
*/
library SSTORE2 {
  error WriteError();

  /**
    @notice Stores `_data` and returns `pointer` as key for later retrieval
    @dev The pointer is a contract address with `_data` as code
    @param _data to be written
    @return pointer Pointer to the written `_data`
  */
  function write(bytes memory _data) internal returns (address pointer) {
    // Append 00 to _data so contract can't be called
    // Build init code
    bytes memory code = Bytecode.creationCodeFor(
      abi.encodePacked(
        hex'00',
        _data
      )
    );

    // Deploy contract using create
    assembly { pointer := create(0, add(code, 32), mload(code)) }

    // Address MUST be non-zero
    if (pointer == address(0)) revert WriteError();
  }

  /**
    @notice Reads the contents of the `_pointer` code as data, skips the first byte 
    @dev The function is intended for reading pointers generated by `write`
    @param _pointer to be read
    @return data read from `_pointer` contract
  */
  function read(address _pointer) internal view returns (bytes memory) {
    return Bytecode.codeAt(_pointer, 1, type(uint256).max);
  }

  /**
    @notice Reads the contents of the `_pointer` code as data, skips the first byte 
    @dev The function is intended for reading pointers generated by `write`
    @param _pointer to be read
    @param _start number of bytes to skip
    @return data read from `_pointer` contract
  */
  function read(address _pointer, uint256 _start) internal view returns (bytes memory) {
    return Bytecode.codeAt(_pointer, _start + 1, type(uint256).max);
  }

  /**
    @notice Reads the contents of the `_pointer` code as data, skips the first byte 
    @dev The function is intended for reading pointers generated by `write`
    @param _pointer to be read
    @param _start number of bytes to skip
    @param _end index before which to end extraction
    @return data read from `_pointer` contract
  */
  function read(address _pointer, uint256 _start, uint256 _end) internal view returns (bytes memory) {
    return Bytecode.codeAt(_pointer, _start + 1, _end + 1);
  }
}

File 8 of 8 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[{"internalType":"uint256","name":"_size","type":"uint256"},{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_end","type":"uint256"}],"name":"InvalidCodeAtRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"ReallyWantToClaimThisForYouButTheFundsArentRight","type":"error"},{"inputs":[],"name":"SorryCouldntWithdrawYourFundsDude","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"UmmDontThinkThisIsAnOgTokenId","type":"error"},{"inputs":[],"name":"WeDontDoThatAroundHere","type":"error"},{"inputs":[],"name":"WeSoulBoundFam","type":"error"},{"inputs":[],"name":"WhoaFriendCantUpdateGoodiesForTokensYouDontOwn","type":"error"},{"inputs":[],"name":"WhyYouTryingToClaimOtherPeoplesTokens","type":"error"},{"inputs":[],"name":"YouWereTheLastToClaimThisTokenAlready","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"ClaimPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"DaGoodies","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"DnaToClaimedMap","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GoodiesEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GoodiesPosition","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"OgTokenToClaimedMap","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"OgTokenToLastClaimedMap","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"TokenToDnaMap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"TokenToGoodiesMap","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"claimOgMfer","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"moveThatGuap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_pointers","type":"address[]"}],"name":"readPointerArray","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newAddress","type":"address"}],"name":"setLayerContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_dna","type":"uint256"}],"name":"setOgDna","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newAddress","type":"address"}],"name":"setOgMferContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleGoodiesEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"toggleTokenGoodies","outputs":[],"stateMutability":"nonpayable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newAddress","type":"address"}],"name":"updateAccountant","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"updateClaimPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"updateGoodiesPosition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"},{"internalType":"string","name":"_newString","type":"string"}],"name":"updateMetadataStrings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newString","type":"string"}],"name":"updateSurpriseStuff","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"},{"internalType":"string","name":"_newString","type":"string"}],"name":"updateSvgStrings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"},{"internalType":"string","name":"_newString","type":"string"}],"name":"updateTheGoodies","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_traitIndex","type":"uint256"},{"internalType":"uint256","name":"_layerIndex","type":"uint256"}],"name":"updateUnclaimedLayerData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"},{"internalType":"string","name":"_newString","type":"string"}],"name":"updateUnclaimedMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526127256000553480156200001757600080fd5b506040518060400160405280600c81526020016b4f6e436861696e4d6665727360a01b815250604051806040016040528060048152602001635348445760e01b81525081600290816200006b9190620001af565b5060036200007a8282620001af565b5050506200009762000091620000b460201b60201c565b620000b8565b6001600955602b80546001600160a01b031916331790556200027b565b3390565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200013557607f821691505b6020821081036200015657634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001aa57600081815260208120601f850160051c81016020861015620001855750805b601f850160051c820191505b81811015620001a65782815560010162000191565b5050505b505050565b81516001600160401b03811115620001cb57620001cb6200010a565b620001e381620001dc845462000120565b846200015c565b602080601f8311600181146200021b5760008415620002025750858301515b600019600386901b1c1916600185901b178555620001a6565b600085815260208120601f198616915b828110156200024c578886015182559484019460019091019084016200022b565b50858210156200026b5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b612843806200028b6000396000f3fe60806040526004361061025c5760003560e01c80635c0f4cd71161014457806395d89b41116100b6578063c87b56dd1161007a578063c87b56dd146106f7578063cb11ac3714610717578063d2a8fb511461072a578063e25e69651461074a578063e985e9c51461077a578063f2fde38b146107c357600080fd5b806395d89b41146106725780639ce4b68014610687578063a22cb4651461069c578063b69c9625146106b7578063b88d4fde146106e457600080fd5b8063715018a611610108578063715018a6146105af578063833eb9b8146105c457806385e62a0e146105e45780638da5cb5b1461060457806390ecdd9d14610622578063919e07631461064257600080fd5b80635c0f4cd71461050f5780636352211e1461052f5780636767af981461054f5780636c222b171461056f57806370a082311461058f57600080fd5b8063203b3477116101dd5780633d14d87d116101a15780633d14d87d14610477578063406c1f6b1461049757806342842e0e146104b157806343dc27a2146104c457806352c9188f146104e457806353455f4e146104f957600080fd5b8063203b3477146103d857806321d12dd3146103f857806323b872dd1461040e578063277eebd0146104215780633853611f1461044157600080fd5b80630c1366ee116102245780630c1366ee146103255780630cb62f011461035557806310ed521914610375578063137c6dee1461039557806318160ddd146103b557600080fd5b806301ffc9a71461026157806306fdde0314610296578063081812fc146102b8578063095ea7b3146102f05780630ab46fcf14610305575b600080fd5b34801561026d57600080fd5b5061028161027c366004611aea565b6107e3565b60405190151581526020015b60405180910390f35b3480156102a257600080fd5b506102ab610835565b60405161028d9190611b57565b3480156102c457600080fd5b506102d86102d3366004611b6a565b6108c7565b6040516001600160a01b03909116815260200161028d565b6103036102fe366004611b98565b61090d565b005b34801561031157600080fd5b50610303610320366004611cd9565b610926565b34801561033157600080fd5b50610281610340366004611b6a565b600c6020526000908152604090205460ff1681565b34801561036157600080fd5b50610303610370366004611d1f565b610953565b34801561038157600080fd5b50610303610390366004611d1f565b610985565b3480156103a157600080fd5b506102ab6103b0366004611b6a565b610998565b3480156103c157600080fd5b50600154600054035b60405190815260200161028d565b3480156103e457600080fd5b506103036103f3366004611cd9565b610a38565b34801561040457600080fd5b506103ca600a5481565b61030361041c366004611d41565b610a54565b34801561042d57600080fd5b506102ab61043c366004611da5565b610a6d565b34801561044d57600080fd5b506102d861045c366004611b6a565b600e602052600090815260409020546001600160a01b031681565b34801561048357600080fd5b50610303610492366004611b6a565b610aeb565b3480156104a357600080fd5b506029546102819060ff1681565b6103036104bf366004611d41565b610af8565b3480156104d057600080fd5b506103036104df366004611e3e565b610b13565b3480156104f057600080fd5b50610303610b2b565b34801561050557600080fd5b506103ca60265481565b34801561051b57600080fd5b5061030361052a366004611b6a565b610ba2565b34801561053b57600080fd5b506102d861054a366004611b6a565b610baf565b34801561055b57600080fd5b5061030361056a366004611cd9565b610c46565b34801561057b57600080fd5b5061030361058a366004611e72565b610c62565b34801561059b57600080fd5b506103ca6105aa366004611e72565b610c8c565b3480156105bb57600080fd5b50610303610cda565b3480156105d057600080fd5b506103036105df366004611e72565b610cee565b3480156105f057600080fd5b506103036105ff366004611cd9565b610d18565b34801561061057600080fd5b506008546001600160a01b03166102d8565b34801561062e57600080fd5b5061030361063d366004611b6a565b610d34565b34801561064e57600080fd5b5061028161065d366004611b6a565b602a6020526000908152604090205460ff1681565b34801561067e57600080fd5b506102ab610db6565b34801561069357600080fd5b50610303610dc5565b3480156106a857600080fd5b506103036102fe366004611e8f565b3480156106c357600080fd5b506103ca6106d2366004611b6a565b600b6020526000908152604090205481565b6103036106f2366004611ecd565b610de1565b34801561070357600080fd5b506102ab610712366004611b6a565b610e2b565b610303610725366004611b6a565b6113b9565b34801561073657600080fd5b50610303610745366004611e72565b6115a5565b34801561075657600080fd5b50610281610765366004611b6a565b600d6020526000908152604090205460ff1681565b34801561078657600080fd5b50610281610795366004611f4c565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156107cf57600080fd5b506103036107de366004611e72565b6115cf565b60006301ffc9a760e01b6001600160e01b03198316148061081457506380ac58cd60e01b6001600160e01b03198316145b8061082f5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461084490611f7a565b80601f016020809104026020016040519081016040528092919081815260200182805461087090611f7a565b80156108bd5780601f10610892576101008083540402835291602001916108bd565b820191906000526020600020905b8154815290600101906020018083116108a057829003601f168201915b5050505050905090565b60006108d4826127251190565b6108f1576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b604051636bb7af3160e01b815260040160405180910390fd5b61092e61164a565b806018836008811061094257610942611fb4565b019061094e9082612018565b505050565b61095b61164a565b6000918252600b60209081526040808420839055918352600c90529020805460ff19166001179055565b61098d61164a565b602091909155602155565b602781600281106109a857600080fd5b0180549091506109b790611f7a565b80601f01602080910402602001604051908101604052809291908181526020018280546109e390611f7a565b8015610a305780601f10610a0557610100808354040283529160200191610a30565b820191906000526020600020905b815481529060010190602001808311610a1357829003601f168201915b505050505081565b610a4061164a565b806022836003811061094257610942611fb4565b604051630b577c9960e41b815260040160405180910390fd5b60608151600003610a8c57505060408051602081019091526000815290565b600060605b80610ab4858481518110610aa757610aa7611fb4565b60200260200101516116a4565b604051602001610ac59291906120d7565b604051602081830303815290604052905081600101915083518210610a91579392505050565b610af361164a565b600a55565b61094e83838360405180602001604052806000815250610de1565b610b1b61164a565b6025610b278282612018565b5050565b602b546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610b78576040519150601f19603f3d011682016040523d82523d6000602084013e610b7d565b606091505b5050905080610b9f5760405163c79988b360e01b815260040160405180910390fd5b50565b610baa61164a565b602655565b6000610bbc826127251190565b610bd957604051633f1a133d60e21b815260040160405180910390fd5b600f546040516331a9108f60e11b8152600481018490526001600160a01b0390911690636352211e90602401602060405180830381865afa158015610c22573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082f9190612106565b610c4e61164a565b806027836002811061094257610942611fb4565b610c6a61164a565b602b80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b038216610cb5576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b610ce261164a565b610cec60006116b4565b565b610cf661164a565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b610d2061164a565b806011836007811061094257610942611fb4565b610d3f816127251190565b610d5c57604051633f1a133d60e21b815260040160405180910390fd5b610d6581610baf565b6001600160a01b0316336001600160a01b031614610d9657604051637bf8404d60e11b815260040160405180910390fd5b6000908152602a60205260409020805460ff19811660ff90911615179055565b60606003805461084490611f7a565b610dcd61164a565b6029805460ff19811660ff90911615179055565b610dec848484610a54565b6001600160a01b0383163b15610e2557610e0884848484611706565b610e25576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610e38826127251190565b610e5557604051633f1a133d60e21b815260040160405180910390fd5b6000828152600d602052604090205460ff16610f20576022610e76836117f2565b601054602054602154604051635cec865360e01b8152600481019290925260248201526023916001600160a01b031690635cec865390604401600060405180830381865afa158015610ecc573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610ef49190810190612168565b604051610f0a949392919060249060200161220f565b6040516020818303038152906040529050919050565b6000828152600b602052604081205460295490919060ff168015610f5257506000848152602a602052604090205460ff165b9050610f71604051806040016040528060608152602001606081525090565b610fb16040518060e00160405280600081526020016000815260200160008152602001600081526020016060815260200160608152602001606081525090565b60008080806018610fc18b6117f2565b604051610fd5929190601990602001612263565b60408051601f1981840301815291905290506000601181018054610ff890611f7a565b80601f016020809104026020016040519081016040528092919081815260200182805461102490611f7a565b80156110715780601f1061104657610100808354040283529160200191611071565b820191906000526020600020905b81548152906001019060200180831161105457829003601f168201915b5050505050905060005b600f8110156112b557602654811480156110925750885b156110bd576040516110ab90839060279060200161228b565b60405160208183030381529060405291505b6110d18a6110cc83600e6122c8565b611836565b955085156112a35760105460405163acb586df60e01b8152600481018390526001600160a01b039091169063acb586df90602401600060405180830381865afa158015611122573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261114a9190810190612405565b97506111576001876122c8565b95508760200151868151811061116f5761116f611fb4565b602002602001015196508161118388611864565b6040516020016111949291906120d7565b60405160208183030381529060405291508060020361122557856006036111eb57816111c060006118bb565b6040516020016111d19291906120d7565b604051602081830303815290604052915060019350611225565b8560020361122557816111fe60016118bb565b60405160200161120f9291906120d7565b6040516020818303038152906040529150600193505b602654811480156112335750885b1561125e5760405161124c90839060289060200161228b565b60405160208183030381529060405291505b828561126b57601b61126e565b601a5b895160808a015160405161128d94939291601c91601d90602001612507565b6040516020818303038152906040529250600194505b806112ad81612570565b91505061107b565b5080836112d1576040518060200160405280600081525061135d565b602580546112de90611f7a565b80601f016020809104026020016040519081016040528092919081815260200182805461130a90611f7a565b80156113575780601f1061132c57610100808354040283529160200191611357565b820191906000526020600020905b81548152906001019060200180831161133a57829003601f168201915b50505050505b604051611371929190601790602001612589565b60408051808303601f1901815290829052915061139a908390601e908490601f906020016125af565b60408051601f198184030181529190529b9a5050505050505050505050565b6113c4816127251190565b6113e157604051633f1a133d60e21b815260040160405180910390fd5b600f546040516331a9108f60e11b8152600481018390526000916001600160a01b031690636352211e90602401602060405180830381865afa15801561142b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061144f9190612106565b90506114636008546001600160a01b031690565b6001600160a01b0316336001600160a01b0316146114e357336001600160a01b038216146114a4576040516306e845ff60e31b815260040160405180910390fd5b6000828152600d602052604090205460ff161580156114c55750600a543414155b156114e3576040516339a3460f60e01b815260040160405180910390fd5b6000828152600d602052604090205460ff16611513576000828152600d60205260409020805460ff191660011790555b6000828152600e6020526040902080546001600160a01b038381166001600160a01b0319831681179093551690810361155f576040516302bd2ebb60e31b815260040160405180910390fd5b82826001600160a01b0316826001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6115ad61164a565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b6115d761164a565b6001600160a01b0381166116415760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610b9f816116b4565b6008546001600160a01b03163314610cec5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611638565b606061082f826001600019611a1e565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061173b9033908990889088906004016125f7565b6020604051808303816000875af1925050508015611776575060408051601f3d908101601f1916820190925261177391810190612634565b60015b6117d4573d8080156117a4576040519150601f19603f3d011682016040523d82523d6000602084013e6117a9565b606091505b5080516000036117cc576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a90048061180c5750819003601f19909101908152919050565b600080611844836008612651565b60ff901b90506000611857846008612651565b91909416901c9392505050565b6080810151815160609160129160139061187d906117f2565b601160030161188f87602001516117f2565b60116004016118a18960c00151610a6d565b604051610f0a989796959493929190601690602001612668565b60606118fd6040518060e00160405280600081526020016000815260200160008152602001600081526020016060815260200160608152602001606081525090565b826000036119e65760105460405163a3f62f3960e01b815260026004820181905260248201526001600160a01b039091169063a3f62f39906044015b600060405180830381865afa158015611956573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261197e91908101906126fe565b60808101518151919250601291601390611997906117f2565b60116003016119a986602001516117f2565b6119b68760c00151610a6d565b6040516119cf9796959493929190601690602001612732565b604051602081830303815290604052915050919050565b60105460405163a3f62f3960e01b815260026004820152600660248201526001600160a01b039091169063a3f62f3990604401611939565b6060833b6000819003611a41575050604080516020810190915260008152611acd565b80841115611a5f575050604080516020810190915260008152611acd565b83831015611a915760405163162544fd60e11b8152600481018290526024810185905260448101849052606401611638565b8383038482036000828210611aa65782611aa8565b815b60408051603f8301601f19168101909152818152955090508087602087018a3c505050505b9392505050565b6001600160e01b031981168114610b9f57600080fd5b600060208284031215611afc57600080fd5b8135611acd81611ad4565b60005b83811015611b22578181015183820152602001611b0a565b50506000910152565b60008151808452611b43816020860160208601611b07565b601f01601f19169290920160200192915050565b602081526000611acd6020830184611b2b565b600060208284031215611b7c57600080fd5b5035919050565b6001600160a01b0381168114610b9f57600080fd5b60008060408385031215611bab57600080fd5b8235611bb681611b83565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b0381118282101715611bfc57611bfc611bc4565b60405290565b604080519081016001600160401b0381118282101715611bfc57611bfc611bc4565b604051601f8201601f191681016001600160401b0381118282101715611c4c57611c4c611bc4565b604052919050565b60006001600160401b03821115611c6d57611c6d611bc4565b50601f01601f191660200190565b6000611c8e611c8984611c54565b611c24565b9050828152838383011115611ca257600080fd5b828260208301376000602084830101529392505050565b600082601f830112611cca57600080fd5b611acd83833560208501611c7b565b60008060408385031215611cec57600080fd5b8235915060208301356001600160401b03811115611d0957600080fd5b611d1585828601611cb9565b9150509250929050565b60008060408385031215611d3257600080fd5b50508035926020909101359150565b600080600060608486031215611d5657600080fd5b8335611d6181611b83565b92506020840135611d7181611b83565b929592945050506040919091013590565b60006001600160401b03821115611d9b57611d9b611bc4565b5060051b60200190565b60006020808385031215611db857600080fd5b82356001600160401b03811115611dce57600080fd5b8301601f81018513611ddf57600080fd5b8035611ded611c8982611d82565b81815260059190911b82018301908381019087831115611e0c57600080fd5b928401925b82841015611e33578335611e2481611b83565b82529284019290840190611e11565b979650505050505050565b600060208284031215611e5057600080fd5b81356001600160401b03811115611e6657600080fd5b6117ea84828501611cb9565b600060208284031215611e8457600080fd5b8135611acd81611b83565b60008060408385031215611ea257600080fd5b8235611ead81611b83565b915060208301358015158114611ec257600080fd5b809150509250929050565b60008060008060808587031215611ee357600080fd5b8435611eee81611b83565b93506020850135611efe81611b83565b92506040850135915060608501356001600160401b03811115611f2057600080fd5b8501601f81018713611f3157600080fd5b611f4087823560208401611c7b565b91505092959194509250565b60008060408385031215611f5f57600080fd5b8235611f6a81611b83565b91506020830135611ec281611b83565b600181811c90821680611f8e57607f821691505b602082108103611fae57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b601f82111561094e57600081815260208120601f850160051c81016020861015611ff15750805b601f850160051c820191505b8181101561201057828155600101611ffd565b505050505050565b81516001600160401b0381111561203157612031611bc4565b6120458161203f8454611f7a565b84611fca565b602080601f83116001811461207a57600084156120625750858301515b600019600386901b1c1916600185901b178555612010565b600085815260208120601f198616915b828110156120a95788860151825594840194600190910190840161208a565b50858210156120c75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600083516120e9818460208801611b07565b8351908301906120fd818360208801611b07565b01949350505050565b60006020828403121561211857600080fd5b8151611acd81611b83565b600082601f83011261213457600080fd5b8151612142611c8982611c54565b81815284602083860101111561215757600080fd5b6117ea826020830160208701611b07565b60006020828403121561217a57600080fd5b81516001600160401b0381111561219057600080fd5b6117ea84828501612123565b600081546121a981611f7a565b600182811680156121c157600181146121d657612205565b60ff1984168752821515830287019450612205565b8560005260208060002060005b858110156121fc5781548a8201529084019082016121e3565b50505082870194505b5050505092915050565b600061221b828861219c565b865161222b818360208b01611b07565b6122378183018861219c565b915050845161224a818360208901611b07565b6122568183018661219c565b9998505050505050505050565b600061226f828661219c565b845161227f818360208901611b07565b611e338183018661219c565b6000835161229d818460208801611b07565b6122a98184018561219c565b95945050505050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561082f5761082f6122b2565b600082601f8301126122ec57600080fd5b815160206122fc611c8983611d82565b82815260059290921b8401810191818101908684111561231b57600080fd5b8286015b8481101561233f57805161233281611b83565b835291830191830161231f565b509695505050505050565b600060e0828403121561235c57600080fd5b612364611bda565b90508151815260208201516020820152604082015160408201526060820151606082015260808201516001600160401b03808211156123a257600080fd5b6123ae85838601612123565b608084015260a08401519150808211156123c757600080fd5b6123d385838601612123565b60a084015260c08401519150808211156123ec57600080fd5b506123f9848285016122db565b60c08301525092915050565b6000602080838503121561241857600080fd5b82516001600160401b038082111561242f57600080fd5b908401906040828703121561244357600080fd5b61244b611c02565b82518281111561245a57600080fd5b61246688828601612123565b825250838301518281111561247a57600080fd5b80840193505086601f84011261248f57600080fd5b825161249d611c8982611d82565b81815260059190911b840185019085810190898311156124bc57600080fd5b8686015b838110156124f4578051868111156124d85760008081fd5b6124e68c8a838b010161234a565b8452509187019187016124c0565b5095830195909552509695505050505050565b60008751612519818460208c01611b07565b6125258184018961219c565b90508651612537818360208b01611b07565b6125438183018861219c565b9150508451612556818360208901611b07565b6125628183018661219c565b9a9950505050505050505050565b600060018201612582576125826122b2565b5060010190565b6000845161259b818460208901611b07565b84519083019061227f818360208901611b07565b600085516125c1818460208a01611b07565b6125cd8184018761219c565b905084516125df818360208901611b07565b6125eb8183018661219c565b98975050505050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061262a90830184611b2b565b9695505050505050565b60006020828403121561264657600080fd5b8151611acd81611ad4565b808202811582820484141761082f5761082f6122b2565b6000612674828c61219c565b8a51612684818360208f01611b07565b6126908183018c61219c565b91505088516126a3818360208d01611b07565b6126af8183018a61219c565b91505086516126c2818360208b01611b07565b6126ce8183018861219c565b91505084516126e1818360208901611b07565b6126ed8183018661219c565b9d9c50505050505050505050505050565b60006020828403121561271057600080fd5b81516001600160401b0381111561272657600080fd5b6117ea8482850161234a565b600061273e828b61219c565b895161274e818360208e01611b07565b61275a8183018b61219c565b915050875161276d818360208c01611b07565b6127798183018961219c565b915050855161278c818360208a01611b07565b8082019150507f27207669736962696c6974793d2768696464656e2720687265663d276461746181527f3a696d6167652f706e673b636861727365743d7574662d383b6261736536342c602082015284516127ee816040840160208901611b07565b6127fd6040828401018661219c565b9c9b50505050505050505050505056fea26469706673582212206cc7727e9e475bfde22bf80e19fe84b6ebd3da3fc7280275f05951f2a74f97be64736f6c63430008130033

Deployed Bytecode

0x60806040526004361061025c5760003560e01c80635c0f4cd71161014457806395d89b41116100b6578063c87b56dd1161007a578063c87b56dd146106f7578063cb11ac3714610717578063d2a8fb511461072a578063e25e69651461074a578063e985e9c51461077a578063f2fde38b146107c357600080fd5b806395d89b41146106725780639ce4b68014610687578063a22cb4651461069c578063b69c9625146106b7578063b88d4fde146106e457600080fd5b8063715018a611610108578063715018a6146105af578063833eb9b8146105c457806385e62a0e146105e45780638da5cb5b1461060457806390ecdd9d14610622578063919e07631461064257600080fd5b80635c0f4cd71461050f5780636352211e1461052f5780636767af981461054f5780636c222b171461056f57806370a082311461058f57600080fd5b8063203b3477116101dd5780633d14d87d116101a15780633d14d87d14610477578063406c1f6b1461049757806342842e0e146104b157806343dc27a2146104c457806352c9188f146104e457806353455f4e146104f957600080fd5b8063203b3477146103d857806321d12dd3146103f857806323b872dd1461040e578063277eebd0146104215780633853611f1461044157600080fd5b80630c1366ee116102245780630c1366ee146103255780630cb62f011461035557806310ed521914610375578063137c6dee1461039557806318160ddd146103b557600080fd5b806301ffc9a71461026157806306fdde0314610296578063081812fc146102b8578063095ea7b3146102f05780630ab46fcf14610305575b600080fd5b34801561026d57600080fd5b5061028161027c366004611aea565b6107e3565b60405190151581526020015b60405180910390f35b3480156102a257600080fd5b506102ab610835565b60405161028d9190611b57565b3480156102c457600080fd5b506102d86102d3366004611b6a565b6108c7565b6040516001600160a01b03909116815260200161028d565b6103036102fe366004611b98565b61090d565b005b34801561031157600080fd5b50610303610320366004611cd9565b610926565b34801561033157600080fd5b50610281610340366004611b6a565b600c6020526000908152604090205460ff1681565b34801561036157600080fd5b50610303610370366004611d1f565b610953565b34801561038157600080fd5b50610303610390366004611d1f565b610985565b3480156103a157600080fd5b506102ab6103b0366004611b6a565b610998565b3480156103c157600080fd5b50600154600054035b60405190815260200161028d565b3480156103e457600080fd5b506103036103f3366004611cd9565b610a38565b34801561040457600080fd5b506103ca600a5481565b61030361041c366004611d41565b610a54565b34801561042d57600080fd5b506102ab61043c366004611da5565b610a6d565b34801561044d57600080fd5b506102d861045c366004611b6a565b600e602052600090815260409020546001600160a01b031681565b34801561048357600080fd5b50610303610492366004611b6a565b610aeb565b3480156104a357600080fd5b506029546102819060ff1681565b6103036104bf366004611d41565b610af8565b3480156104d057600080fd5b506103036104df366004611e3e565b610b13565b3480156104f057600080fd5b50610303610b2b565b34801561050557600080fd5b506103ca60265481565b34801561051b57600080fd5b5061030361052a366004611b6a565b610ba2565b34801561053b57600080fd5b506102d861054a366004611b6a565b610baf565b34801561055b57600080fd5b5061030361056a366004611cd9565b610c46565b34801561057b57600080fd5b5061030361058a366004611e72565b610c62565b34801561059b57600080fd5b506103ca6105aa366004611e72565b610c8c565b3480156105bb57600080fd5b50610303610cda565b3480156105d057600080fd5b506103036105df366004611e72565b610cee565b3480156105f057600080fd5b506103036105ff366004611cd9565b610d18565b34801561061057600080fd5b506008546001600160a01b03166102d8565b34801561062e57600080fd5b5061030361063d366004611b6a565b610d34565b34801561064e57600080fd5b5061028161065d366004611b6a565b602a6020526000908152604090205460ff1681565b34801561067e57600080fd5b506102ab610db6565b34801561069357600080fd5b50610303610dc5565b3480156106a857600080fd5b506103036102fe366004611e8f565b3480156106c357600080fd5b506103ca6106d2366004611b6a565b600b6020526000908152604090205481565b6103036106f2366004611ecd565b610de1565b34801561070357600080fd5b506102ab610712366004611b6a565b610e2b565b610303610725366004611b6a565b6113b9565b34801561073657600080fd5b50610303610745366004611e72565b6115a5565b34801561075657600080fd5b50610281610765366004611b6a565b600d6020526000908152604090205460ff1681565b34801561078657600080fd5b50610281610795366004611f4c565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156107cf57600080fd5b506103036107de366004611e72565b6115cf565b60006301ffc9a760e01b6001600160e01b03198316148061081457506380ac58cd60e01b6001600160e01b03198316145b8061082f5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461084490611f7a565b80601f016020809104026020016040519081016040528092919081815260200182805461087090611f7a565b80156108bd5780601f10610892576101008083540402835291602001916108bd565b820191906000526020600020905b8154815290600101906020018083116108a057829003601f168201915b5050505050905090565b60006108d4826127251190565b6108f1576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b604051636bb7af3160e01b815260040160405180910390fd5b61092e61164a565b806018836008811061094257610942611fb4565b019061094e9082612018565b505050565b61095b61164a565b6000918252600b60209081526040808420839055918352600c90529020805460ff19166001179055565b61098d61164a565b602091909155602155565b602781600281106109a857600080fd5b0180549091506109b790611f7a565b80601f01602080910402602001604051908101604052809291908181526020018280546109e390611f7a565b8015610a305780601f10610a0557610100808354040283529160200191610a30565b820191906000526020600020905b815481529060010190602001808311610a1357829003601f168201915b505050505081565b610a4061164a565b806022836003811061094257610942611fb4565b604051630b577c9960e41b815260040160405180910390fd5b60608151600003610a8c57505060408051602081019091526000815290565b600060605b80610ab4858481518110610aa757610aa7611fb4565b60200260200101516116a4565b604051602001610ac59291906120d7565b604051602081830303815290604052905081600101915083518210610a91579392505050565b610af361164a565b600a55565b61094e83838360405180602001604052806000815250610de1565b610b1b61164a565b6025610b278282612018565b5050565b602b546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610b78576040519150601f19603f3d011682016040523d82523d6000602084013e610b7d565b606091505b5050905080610b9f5760405163c79988b360e01b815260040160405180910390fd5b50565b610baa61164a565b602655565b6000610bbc826127251190565b610bd957604051633f1a133d60e21b815260040160405180910390fd5b600f546040516331a9108f60e11b8152600481018490526001600160a01b0390911690636352211e90602401602060405180830381865afa158015610c22573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082f9190612106565b610c4e61164a565b806027836002811061094257610942611fb4565b610c6a61164a565b602b80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b038216610cb5576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b610ce261164a565b610cec60006116b4565b565b610cf661164a565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b610d2061164a565b806011836007811061094257610942611fb4565b610d3f816127251190565b610d5c57604051633f1a133d60e21b815260040160405180910390fd5b610d6581610baf565b6001600160a01b0316336001600160a01b031614610d9657604051637bf8404d60e11b815260040160405180910390fd5b6000908152602a60205260409020805460ff19811660ff90911615179055565b60606003805461084490611f7a565b610dcd61164a565b6029805460ff19811660ff90911615179055565b610dec848484610a54565b6001600160a01b0383163b15610e2557610e0884848484611706565b610e25576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610e38826127251190565b610e5557604051633f1a133d60e21b815260040160405180910390fd5b6000828152600d602052604090205460ff16610f20576022610e76836117f2565b601054602054602154604051635cec865360e01b8152600481019290925260248201526023916001600160a01b031690635cec865390604401600060405180830381865afa158015610ecc573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610ef49190810190612168565b604051610f0a949392919060249060200161220f565b6040516020818303038152906040529050919050565b6000828152600b602052604081205460295490919060ff168015610f5257506000848152602a602052604090205460ff165b9050610f71604051806040016040528060608152602001606081525090565b610fb16040518060e00160405280600081526020016000815260200160008152602001600081526020016060815260200160608152602001606081525090565b60008080806018610fc18b6117f2565b604051610fd5929190601990602001612263565b60408051601f1981840301815291905290506000601181018054610ff890611f7a565b80601f016020809104026020016040519081016040528092919081815260200182805461102490611f7a565b80156110715780601f1061104657610100808354040283529160200191611071565b820191906000526020600020905b81548152906001019060200180831161105457829003601f168201915b5050505050905060005b600f8110156112b557602654811480156110925750885b156110bd576040516110ab90839060279060200161228b565b60405160208183030381529060405291505b6110d18a6110cc83600e6122c8565b611836565b955085156112a35760105460405163acb586df60e01b8152600481018390526001600160a01b039091169063acb586df90602401600060405180830381865afa158015611122573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261114a9190810190612405565b97506111576001876122c8565b95508760200151868151811061116f5761116f611fb4565b602002602001015196508161118388611864565b6040516020016111949291906120d7565b60405160208183030381529060405291508060020361122557856006036111eb57816111c060006118bb565b6040516020016111d19291906120d7565b604051602081830303815290604052915060019350611225565b8560020361122557816111fe60016118bb565b60405160200161120f9291906120d7565b6040516020818303038152906040529150600193505b602654811480156112335750885b1561125e5760405161124c90839060289060200161228b565b60405160208183030381529060405291505b828561126b57601b61126e565b601a5b895160808a015160405161128d94939291601c91601d90602001612507565b6040516020818303038152906040529250600194505b806112ad81612570565b91505061107b565b5080836112d1576040518060200160405280600081525061135d565b602580546112de90611f7a565b80601f016020809104026020016040519081016040528092919081815260200182805461130a90611f7a565b80156113575780601f1061132c57610100808354040283529160200191611357565b820191906000526020600020905b81548152906001019060200180831161133a57829003601f168201915b50505050505b604051611371929190601790602001612589565b60408051808303601f1901815290829052915061139a908390601e908490601f906020016125af565b60408051601f198184030181529190529b9a5050505050505050505050565b6113c4816127251190565b6113e157604051633f1a133d60e21b815260040160405180910390fd5b600f546040516331a9108f60e11b8152600481018390526000916001600160a01b031690636352211e90602401602060405180830381865afa15801561142b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061144f9190612106565b90506114636008546001600160a01b031690565b6001600160a01b0316336001600160a01b0316146114e357336001600160a01b038216146114a4576040516306e845ff60e31b815260040160405180910390fd5b6000828152600d602052604090205460ff161580156114c55750600a543414155b156114e3576040516339a3460f60e01b815260040160405180910390fd5b6000828152600d602052604090205460ff16611513576000828152600d60205260409020805460ff191660011790555b6000828152600e6020526040902080546001600160a01b038381166001600160a01b0319831681179093551690810361155f576040516302bd2ebb60e31b815260040160405180910390fd5b82826001600160a01b0316826001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6115ad61164a565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b6115d761164a565b6001600160a01b0381166116415760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610b9f816116b4565b6008546001600160a01b03163314610cec5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611638565b606061082f826001600019611a1e565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061173b9033908990889088906004016125f7565b6020604051808303816000875af1925050508015611776575060408051601f3d908101601f1916820190925261177391810190612634565b60015b6117d4573d8080156117a4576040519150601f19603f3d011682016040523d82523d6000602084013e6117a9565b606091505b5080516000036117cc576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a90048061180c5750819003601f19909101908152919050565b600080611844836008612651565b60ff901b90506000611857846008612651565b91909416901c9392505050565b6080810151815160609160129160139061187d906117f2565b601160030161188f87602001516117f2565b60116004016118a18960c00151610a6d565b604051610f0a989796959493929190601690602001612668565b60606118fd6040518060e00160405280600081526020016000815260200160008152602001600081526020016060815260200160608152602001606081525090565b826000036119e65760105460405163a3f62f3960e01b815260026004820181905260248201526001600160a01b039091169063a3f62f39906044015b600060405180830381865afa158015611956573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261197e91908101906126fe565b60808101518151919250601291601390611997906117f2565b60116003016119a986602001516117f2565b6119b68760c00151610a6d565b6040516119cf9796959493929190601690602001612732565b604051602081830303815290604052915050919050565b60105460405163a3f62f3960e01b815260026004820152600660248201526001600160a01b039091169063a3f62f3990604401611939565b6060833b6000819003611a41575050604080516020810190915260008152611acd565b80841115611a5f575050604080516020810190915260008152611acd565b83831015611a915760405163162544fd60e11b8152600481018290526024810185905260448101849052606401611638565b8383038482036000828210611aa65782611aa8565b815b60408051603f8301601f19168101909152818152955090508087602087018a3c505050505b9392505050565b6001600160e01b031981168114610b9f57600080fd5b600060208284031215611afc57600080fd5b8135611acd81611ad4565b60005b83811015611b22578181015183820152602001611b0a565b50506000910152565b60008151808452611b43816020860160208601611b07565b601f01601f19169290920160200192915050565b602081526000611acd6020830184611b2b565b600060208284031215611b7c57600080fd5b5035919050565b6001600160a01b0381168114610b9f57600080fd5b60008060408385031215611bab57600080fd5b8235611bb681611b83565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b0381118282101715611bfc57611bfc611bc4565b60405290565b604080519081016001600160401b0381118282101715611bfc57611bfc611bc4565b604051601f8201601f191681016001600160401b0381118282101715611c4c57611c4c611bc4565b604052919050565b60006001600160401b03821115611c6d57611c6d611bc4565b50601f01601f191660200190565b6000611c8e611c8984611c54565b611c24565b9050828152838383011115611ca257600080fd5b828260208301376000602084830101529392505050565b600082601f830112611cca57600080fd5b611acd83833560208501611c7b565b60008060408385031215611cec57600080fd5b8235915060208301356001600160401b03811115611d0957600080fd5b611d1585828601611cb9565b9150509250929050565b60008060408385031215611d3257600080fd5b50508035926020909101359150565b600080600060608486031215611d5657600080fd5b8335611d6181611b83565b92506020840135611d7181611b83565b929592945050506040919091013590565b60006001600160401b03821115611d9b57611d9b611bc4565b5060051b60200190565b60006020808385031215611db857600080fd5b82356001600160401b03811115611dce57600080fd5b8301601f81018513611ddf57600080fd5b8035611ded611c8982611d82565b81815260059190911b82018301908381019087831115611e0c57600080fd5b928401925b82841015611e33578335611e2481611b83565b82529284019290840190611e11565b979650505050505050565b600060208284031215611e5057600080fd5b81356001600160401b03811115611e6657600080fd5b6117ea84828501611cb9565b600060208284031215611e8457600080fd5b8135611acd81611b83565b60008060408385031215611ea257600080fd5b8235611ead81611b83565b915060208301358015158114611ec257600080fd5b809150509250929050565b60008060008060808587031215611ee357600080fd5b8435611eee81611b83565b93506020850135611efe81611b83565b92506040850135915060608501356001600160401b03811115611f2057600080fd5b8501601f81018713611f3157600080fd5b611f4087823560208401611c7b565b91505092959194509250565b60008060408385031215611f5f57600080fd5b8235611f6a81611b83565b91506020830135611ec281611b83565b600181811c90821680611f8e57607f821691505b602082108103611fae57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b601f82111561094e57600081815260208120601f850160051c81016020861015611ff15750805b601f850160051c820191505b8181101561201057828155600101611ffd565b505050505050565b81516001600160401b0381111561203157612031611bc4565b6120458161203f8454611f7a565b84611fca565b602080601f83116001811461207a57600084156120625750858301515b600019600386901b1c1916600185901b178555612010565b600085815260208120601f198616915b828110156120a95788860151825594840194600190910190840161208a565b50858210156120c75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600083516120e9818460208801611b07565b8351908301906120fd818360208801611b07565b01949350505050565b60006020828403121561211857600080fd5b8151611acd81611b83565b600082601f83011261213457600080fd5b8151612142611c8982611c54565b81815284602083860101111561215757600080fd5b6117ea826020830160208701611b07565b60006020828403121561217a57600080fd5b81516001600160401b0381111561219057600080fd5b6117ea84828501612123565b600081546121a981611f7a565b600182811680156121c157600181146121d657612205565b60ff1984168752821515830287019450612205565b8560005260208060002060005b858110156121fc5781548a8201529084019082016121e3565b50505082870194505b5050505092915050565b600061221b828861219c565b865161222b818360208b01611b07565b6122378183018861219c565b915050845161224a818360208901611b07565b6122568183018661219c565b9998505050505050505050565b600061226f828661219c565b845161227f818360208901611b07565b611e338183018661219c565b6000835161229d818460208801611b07565b6122a98184018561219c565b95945050505050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561082f5761082f6122b2565b600082601f8301126122ec57600080fd5b815160206122fc611c8983611d82565b82815260059290921b8401810191818101908684111561231b57600080fd5b8286015b8481101561233f57805161233281611b83565b835291830191830161231f565b509695505050505050565b600060e0828403121561235c57600080fd5b612364611bda565b90508151815260208201516020820152604082015160408201526060820151606082015260808201516001600160401b03808211156123a257600080fd5b6123ae85838601612123565b608084015260a08401519150808211156123c757600080fd5b6123d385838601612123565b60a084015260c08401519150808211156123ec57600080fd5b506123f9848285016122db565b60c08301525092915050565b6000602080838503121561241857600080fd5b82516001600160401b038082111561242f57600080fd5b908401906040828703121561244357600080fd5b61244b611c02565b82518281111561245a57600080fd5b61246688828601612123565b825250838301518281111561247a57600080fd5b80840193505086601f84011261248f57600080fd5b825161249d611c8982611d82565b81815260059190911b840185019085810190898311156124bc57600080fd5b8686015b838110156124f4578051868111156124d85760008081fd5b6124e68c8a838b010161234a565b8452509187019187016124c0565b5095830195909552509695505050505050565b60008751612519818460208c01611b07565b6125258184018961219c565b90508651612537818360208b01611b07565b6125438183018861219c565b9150508451612556818360208901611b07565b6125628183018661219c565b9a9950505050505050505050565b600060018201612582576125826122b2565b5060010190565b6000845161259b818460208901611b07565b84519083019061227f818360208901611b07565b600085516125c1818460208a01611b07565b6125cd8184018761219c565b905084516125df818360208901611b07565b6125eb8183018661219c565b98975050505050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061262a90830184611b2b565b9695505050505050565b60006020828403121561264657600080fd5b8151611acd81611ad4565b808202811582820484141761082f5761082f6122b2565b6000612674828c61219c565b8a51612684818360208f01611b07565b6126908183018c61219c565b91505088516126a3818360208d01611b07565b6126af8183018a61219c565b91505086516126c2818360208b01611b07565b6126ce8183018861219c565b91505084516126e1818360208901611b07565b6126ed8183018661219c565b9d9c50505050505050505050505050565b60006020828403121561271057600080fd5b81516001600160401b0381111561272657600080fd5b6117ea8482850161234a565b600061273e828b61219c565b895161274e818360208e01611b07565b61275a8183018b61219c565b915050875161276d818360208c01611b07565b6127798183018961219c565b915050855161278c818360208a01611b07565b8082019150507f27207669736962696c6974793d2768696464656e2720687265663d276461746181527f3a696d6167652f706e673b636861727365743d7574662d383b6261736536342c602082015284516127ee816040840160208901611b07565b6127fd6040828401018661219c565b9c9b50505050505050505050505056fea26469706673582212206cc7727e9e475bfde22bf80e19fe84b6ebd3da3fc7280275f05951f2a74f97be64736f6c63430008130033

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.